move example

master
Joey Hess 2008-09-11 17:41:33 -04:00
parent 5409da80df
commit bb9e397c08
2 changed files with 11 additions and 11 deletions

View File

@ -2,6 +2,12 @@
[[!tag type/meta]] [[!tag type/meta]]
[[!tag type/slow]] [[!tag type/slow]]
This plugin implements the [[ikiwiki/directive/linkmap]] [[ikiwiki/directive]]. This plugin provides the [[ikiwiki/directive/linkmap]] [[ikiwiki/directive]].
The directive uses [graphviz](http://www.graphviz.org/) to generate a graph showing the links between a It uses [graphviz](http://www.graphviz.org/) to generate a graph showing the
set of pages in the wiki. links between a set of pages in the wiki.
[[!if test="enabled(linkmap)" then="""
Here is an example link map, of the index page and all pages it links to:
[[!linkmap pages="index or (backlink(index) and !*.png)"]]
"""]]

View File

@ -1,7 +1,7 @@
The `linkmap` directive is supplied by the [[!iki plugins/linkmap]] plugin. The `linkmap` directive is supplied by the [[!iki plugins/linkmap]] plugin.
This directive uses [graphviz](http://www.graphviz.org/) to generate a graph showing the links between a This directive uses [graphviz](http://www.graphviz.org/) to generate a
set of pages in the wiki. Example usage: graph showing the links between a set of pages in the wiki. Example usage:
\[[!linkmap pages="* and !blog/* and !*/Discussion"]] \[[!linkmap pages="* and !blog/* and !*/Discussion"]]
@ -20,9 +20,3 @@ directive:
* `height`, `width` - Limit the size of the map to a given height and width, * `height`, `width` - Limit the size of the map to a given height and width,
in inches. Both must be specified for the limiting to take effect, otherwise in inches. Both must be specified for the limiting to take effect, otherwise
the map's size is not limited. the map's size is not limited.
[[!if test="enabled(linkmap)" then="""
Here is an example link map, of the index page and all pages it links to:
[[!linkmap pages="index or (backlink(index) and !*.png)"]]
"""]]