Embed Dot Graphics
Allow the user to embed dot graphics definitions in the page and render them as images. The graphics definitions are embedded in HTML comments.
The parameter after GRAPH: is the filename where the image is stored and determines the type of image to generate (.gif, .jpg, .png). The image filename must be unique within the wiki site.
This image is generated from the following source
<!--GRAPH:demo.png
digraph G {
Hello->World
}
-->
Images with client-side maps
If you add URLs to nodes or links, a client-side image map is generated
This image is generated from the following source
<!--GRAPH:mapped.png
digraph G {
Home [URL="FrontPage"] ;
Graphics [URL="EmbedDotGraphics"];
Home ->Graphics
}
-->
You need to configure the plugin in site/scripts/CgiOptions.rb in the #initialize method
To download the software and read the documentation on the dot language, visit the Graphviz site, especially the dot language specification and dot users guide.
|