]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Include a list of all directives if we don't have a list of currently enabled directives
authorhttp://www.cse.unsw.edu.au/~willu/ <http://www.cse.unsw.edu.au/~willu/@web>
Fri, 19 Sep 2008 01:52:38 +0000 (21:52 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 19 Sep 2008 01:52:38 +0000 (21:52 -0400)
doc/ikiwiki/directive.mdwn

index c4342dee8a644ff1778672a3b1ff89ca1d4c2668..607da4451a5dae72fc1da3ce0608228654bc6db2 100644 (file)
@@ -43,3 +43,10 @@ Here is a list of currently available directives in this wiki:
 
 [[!listdirectives ]]
 """]]
 
 [[!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]]
+"""]]