]> sipb.mit.edu Git - ikiwiki.git/commitdiff
listdirectives: Enable use of the directives underlay.
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 11 Sep 2008 22:46:32 +0000 (18:46 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 11 Sep 2008 22:46:32 +0000 (18:46 -0400)
IkiWiki/Plugin/listdirectives.pm
Makefile.PL
debian/changelog
doc/plugins/listdirectives.mdwn

index a5498a20a07b21f63eb5df91fedcd85fe25f868f..6f8ddb06af86faa60a0b028db8f0f1bf7626ae15 100644 (file)
@@ -7,6 +7,7 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
+       add_underlay("directives");
        hook(type => "getsetup", id => "listdirectives", call => \&getsetup);
        hook(type => "checkconfig", id => "listdirectives", call => \&checkconfig);
        hook(type => "needsbuild", id => "listdirectives", call => \&needsbuild);
index 78e659fe6f13a42873dc8c45bf4bfab098488978..95e574c66f370e9ade0816fb92c6c29e03a8ab54 100755 (executable)
@@ -57,6 +57,15 @@ extra_install:
                        install -m 644 $$file $(DESTDIR)$(PREFIX)/share/ikiwiki/$$dir; \
                done; \
        done
+
+       # The directive docs become their own special underlay.
+       install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/directives/ikiwiki/directive
+       for file in doc/ikiwiki/directive/*; do \
+               if [ -f "$$file" ]; then \
+                       install -m 644 $$file $(DESTDIR)$(PREFIX)/share/ikiwiki/directives/ikiwiki/directive; \
+               fi \
+       done
+
        for dir in `find templates -follow -type d ! -regex '.*\.svn.*'`; do \
                install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/$$dir; \
                for file in `find $$dir -follow -maxdepth 1 -type f`; do \
index fd2079368ecd110e6292e7c80d3c5dd20347b0ca..82e1fa4748330e5f0edd16d8ae3c7393076e6500 100644 (file)
@@ -14,6 +14,9 @@ ikiwiki (2.64) UNRELEASED; urgency=low
   * Directive documentation broken out of the plugin documentation and into 
     pages suitable to be used as an underlay. Thanks to Willu for doing most
     of the tedious work.
+  * Move the directive documentation into its own underlay, separate from
+    basewiki, since it's sorta large compared to the rest of basewiki.
+  * listdirectives: Enable use of the directives underlay.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 08 Sep 2008 19:21:20 -0400
 
index 2f6691345e4abcd769cfd2c403342c577f5a1663..2939ff0ee17e42a70ff58fca726ef23c110f5046 100644 (file)
@@ -1,9 +1,15 @@
 [[!template id=plugin name=listdirectives author="Will"]]
 [[!tag type/meta]]
 
-This plugin provides the [[ikiwiki/directive/linkmap]] [[ikiwiki/directive]].
-The linkmap directive inserts a list of currently available directives into the page.
+This plugin provides the [[ikiwiki/directive/linkmap]]
+[[ikiwiki/directive]], which inserts a list of currently available
+directives into the page.
 
-Each directive links to a wiki page with the same name. The location of the
-pages in the wiki can be controlled via the `directive_description_dir`
-setting in the setup file.
+Each directive links to a wiki page with the same name, that should
+document that directive. The location of these pages can be controlled via
+the `directive_description_dir` setting in the setup file, the default is
+"ikiwiki/directive/foo".
+
+When this plugin is enabled, it enables the directives underlay, which
+contains documentation about all the directives included in plugins shipped
+with ikiwiki. This adds about 200 kb to the size of your wiki.