]> sipb.mit.edu Git - ikiwiki.git/commitdiff
move example back
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 11 Sep 2008 21:31:26 +0000 (17:31 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 11 Sep 2008 21:31:26 +0000 (17:31 -0400)
doc/plugins/graphviz.mdwn
underlays/basewiki/directive/graph.mdwn

index 51b06ebab341d2c682d8769115ea1e919187563f..b89f16b59512092fb9512462bd5bd2e1c09d1a6e 100644 (file)
@@ -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.
index f45af3e04b5115339a6c2c9010dff7524ce070c8..b669c2e806dbd0f2ed7e7eb78c99edfa55bfcbad 100644 (file)
@@ -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"]]
-"""]]