aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/graphviz.mdwn
diff options
context:
space:
mode:
authorWilliam Uther <willu@cse.unsw.edu.au>2008-09-11 17:05:51 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-11 17:05:51 -0400
commitc69a7f758590c91bd137a8d1cfa99f37bf28045a (patch)
tree16cbc730e9b63528b6a608856e8221b4fba40390 /doc/plugins/graphviz.mdwn
parent4f0ac7fe59c196a602e07cc6c4abfc248999ec6b (diff)
downloadikiwiki-c69a7f758590c91bd137a8d1cfa99f37bf28045a.tar
ikiwiki-c69a7f758590c91bd137a8d1cfa99f37bf28045a.tar.gz
patch plugin documentation to refer to directive pages
Diffstat (limited to 'doc/plugins/graphviz.mdwn')
-rw-r--r--doc/plugins/graphviz.mdwn27
1 files changed, 2 insertions, 25 deletions
diff --git a/doc/plugins/graphviz.mdwn b/doc/plugins/graphviz.mdwn
index f8cf094f4..51b06ebab 100644
--- a/doc/plugins/graphviz.mdwn
+++ b/doc/plugins/graphviz.mdwn
@@ -1,13 +1,8 @@
[[!template id=plugin name=graphviz author="[[JoshTriplett]]"]]
[[!tag type/chrome type/format]]
-This plugin 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
+This plugin implements the [[ikiwiki/directive/graph]] [[ikiwiki/directive]].
+This directive allows embedding [graphviz](http://www.graphviz.org/) graphs in a
page.
Security implications: graphviz does not seem to have any syntax exploitable to
@@ -20,22 +15,4 @@ 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.
-The `graph` directive supports the following parameters:
-
-- `src` - The graphviz source to render.
-- `type` - The type of graph to render: `graph` or `digraph`. Defaults to
- `digraph`.
-- `prog` - The graphviz program to render with: `dot`, `neato`, `fdp`, `twopi`,
- or `circo`. Defaults to `dot`.
-- `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"]]
-"""]]
-
This plugin uses the [[!cpan Digest::SHA1]] perl module.