From ce0037e0ff41a75d0e6c947ef547ef9630c54be9 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 14 Oct 2010 13:38:20 +0200 Subject: Sync with ikiwiki 3.20100926. --- ikiwiki/directive/graph.mdwn | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ikiwiki/directive/graph.mdwn (limited to 'ikiwiki/directive/graph.mdwn') diff --git a/ikiwiki/directive/graph.mdwn b/ikiwiki/directive/graph.mdwn new file mode 100644 index 0000000..7473d3e --- /dev/null +++ b/ikiwiki/directive/graph.mdwn @@ -0,0 +1,24 @@ +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: + + \[[!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. + +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. + +[[!meta robots="noindex, follow"]] -- cgit v1.2.3