From: http://www.cse.unsw.edu.au/~willu/ Date: Fri, 19 Sep 2008 01:52:38 +0000 (-0400) Subject: Include a list of all directives if we don't have a list of currently enabled directives X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/1861190e2187329431dbd5577f436e1b9fd712dc Include a list of all directives if we don't have a list of currently enabled directives --- diff --git a/doc/ikiwiki/directive.mdwn b/doc/ikiwiki/directive.mdwn index c4342dee8..607da4451 100644 --- a/doc/ikiwiki/directive.mdwn +++ b/doc/ikiwiki/directive.mdwn @@ -43,3 +43,10 @@ Here is a list of currently available directives in this wiki: [[!listdirectives ]] """]] + +[[!if test="!enabled(listdirectives)" then=""" +Here is a list of all directives documented in this wiki. Not all of them may be enabled: + +[[!inline pages="/ikiwiki/directive/* and !*/Discussion" archive="yes" sort=title +rootpage="/ikiwiki/directive/contrib" postformtext="Add a new directive named:" show=0]] +"""]]