aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-11 17:31:26 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-11 17:31:26 -0400
commit5409da80df4700378cd2a6645af7dbc5a8daae11 (patch)
treedf1a56a1ddd9c2e25cbb8e22529e61b80a79b1ee
parent1b55d7879489a11ed37cb339f5f64bc2a362c721 (diff)
downloadikiwiki-5409da80df4700378cd2a6645af7dbc5a8daae11.tar
ikiwiki-5409da80df4700378cd2a6645af7dbc5a8daae11.tar.gz
move example back
-rw-r--r--doc/plugins/graphviz.mdwn9
-rw-r--r--underlays/basewiki/directive/graph.mdwn7
2 files changed, 8 insertions, 8 deletions
diff --git a/doc/plugins/graphviz.mdwn b/doc/plugins/graphviz.mdwn
index 51b06ebab..b89f16b59 100644
--- a/doc/plugins/graphviz.mdwn
+++ b/doc/plugins/graphviz.mdwn
@@ -1,7 +1,7 @@
[[!template id=plugin name=graphviz author="[[JoshTriplett]]"]]
[[!tag type/chrome type/format]]
-This plugin implements the [[ikiwiki/directive/graph]] [[ikiwiki/directive]].
+This plugin provides the [[ikiwiki/directive/graph]] [[ikiwiki/directive]].
This directive allows embedding [graphviz](http://www.graphviz.org/) graphs in a
page.
@@ -15,4 +15,11 @@ already do these things with just the core of ikiwiki, but the graphviz plugin
allows for an amplification attack, since users can send less data to use large
amounts of processing time and disk usage.
+[[!if test="enabled(graphviz)" then="""
+Some example graphs:
+
+[[!graph src="a -> b -> c; a -> b;"]]
+[[!graph src="a -- b -- c -- a;" prog="circo" type="graph"]]
+"""]]
+
This plugin uses the [[!cpan Digest::SHA1]] perl module.
diff --git a/underlays/basewiki/directive/graph.mdwn b/underlays/basewiki/directive/graph.mdwn
index f45af3e04..b669c2e80 100644
--- a/underlays/basewiki/directive/graph.mdwn
+++ b/underlays/basewiki/directive/graph.mdwn
@@ -19,10 +19,3 @@ The `graph` directive supports the following parameters:
- `height`, `width` - Limit the size of the graph to a given height and width,
in inches. You must specify both to limit the size; otherwise, graphviz will
choose a size, without any limit.
-
-[[!if test="enabled(graphviz)" then="""
-Some example graphs:
-
-[[!graph src="a -> b -> c; a -> b;"]]
-[[!graph src="a -- b -- c -- a;" prog="circo" type="graph"]]
-"""]]