graphviz: Support wikilinks embedded in the graph.
[ikiwiki.git] / doc / ikiwiki / directive / graph.mdwn
index 2828921d715e4172bfba7d9d13521e51a771fe48..6584a2178fe82a90cf1eb1df97ef59a46ce231ac 100644 (file)
@@ -5,6 +5,19 @@ graphs in a page.  Example usage:
 
        \[[!graph src="a -> b -> c; a -> c;"]]
 
+Nodes on the graph can link to external urls using regular graphviz syntax,
+and a clickable imagemap will be created. As a special extension for
+ikiwiki, [[WikiLinks|ikiwiki/wikilink]] can also be used. For example:
+
+       \[[!graph src=""""
+       google [ href="http://google.com/" ]
+       sandbox [ href=[[SandBox]] ]
+       help [ href=[[ikiwiki/formatting]] ]
+       newpage [ href=[[NewPage]] ]
+       
+       google -> sandbox -> help -> newpage -> help -> google;
+       """"]]
+
 The `graph` directive supports the following parameters:
 
 - `src` - The graphviz source to render.