diff options
-rw-r--r-- | doc/plugins/linkmap.mdwn | 12 | ||||
-rw-r--r-- | underlays/basewiki/directive/linkmap.mdwn | 10 |
2 files changed, 11 insertions, 11 deletions
diff --git a/doc/plugins/linkmap.mdwn b/doc/plugins/linkmap.mdwn index b52a87da9..89cb9d8ae 100644 --- a/doc/plugins/linkmap.mdwn +++ b/doc/plugins/linkmap.mdwn @@ -2,6 +2,12 @@ [[!tag type/meta]] [[!tag type/slow]] -This plugin implements the [[ikiwiki/directive/linkmap]] [[ikiwiki/directive]]. -The directive uses [graphviz](http://www.graphviz.org/) to generate a graph showing the links between a -set of pages in the wiki. +This plugin provides the [[ikiwiki/directive/linkmap]] [[ikiwiki/directive]]. +It uses [graphviz](http://www.graphviz.org/) to generate a graph showing the +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)"]] +"""]] diff --git a/underlays/basewiki/directive/linkmap.mdwn b/underlays/basewiki/directive/linkmap.mdwn index 8466e0465..e28e1aba2 100644 --- a/underlays/basewiki/directive/linkmap.mdwn +++ b/underlays/basewiki/directive/linkmap.mdwn @@ -1,7 +1,7 @@ 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 -set of pages in the wiki. Example usage: +This directive uses [graphviz](http://www.graphviz.org/) to generate a +graph showing the links between a set of pages in the wiki. Example usage: \[[!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, in inches. Both must be specified for the limiting to take effect, otherwise 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)"]] -"""]] |