summaryrefslogtreecommitdiff
path: root/ikiwiki/directive/graph.mdwn
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-02-16 19:17:27 +0100
committerJonas Smedegaard <dr@jones.dk>2012-02-16 19:17:27 +0100
commit310150aea29904bc6a929ddcfbc191362ec19714 (patch)
treed3c9408f8a99acb78d376bfd38a35a3962446c1f /ikiwiki/directive/graph.mdwn
parent57bccb327efdb9fff0ff55ff07be3aed5b31e63f (diff)
Sync with ikiwiki 3.20120202.
Diffstat (limited to 'ikiwiki/directive/graph.mdwn')
-rw-r--r--ikiwiki/directive/graph.mdwn19
1 files changed, 14 insertions, 5 deletions
diff --git a/ikiwiki/directive/graph.mdwn b/ikiwiki/directive/graph.mdwn
index 4331872..8b066c2 100644
--- a/ikiwiki/directive/graph.mdwn
+++ b/ikiwiki/directive/graph.mdwn
@@ -1,13 +1,22 @@
The `graph` directive is supplied by the [[!iki plugins/graphviz desc=graphviz]] plugin.
-This directive allows embedding [graphviz](http://www.graphviz.org/) graphs in a
-page. Example usage:
+This directive allows embedding [graphviz](http://www.graphviz.org/)
+graphs in a page. Example usage:
\[[!graph src="a -> b -> c; a -> c;"]]
-Note that graphs will only show up in previews if your browser has
-[[!wikipedia data: URI]] support, or if the same graph already exists on that
-page.
+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: