X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/840c3b9d649808ac59d72567a96376603cc40ae6..82197bd0eaa216b841caace38c976acc7f6ad3fa:/doc/todo/directive_docs.mdwn?ds=inline diff --git a/doc/todo/directive_docs.mdwn b/doc/todo/directive_docs.mdwn index b130e3d37..2baa61b40 100644 --- a/doc/todo/directive_docs.mdwn +++ b/doc/todo/directive_docs.mdwn @@ -1,4 +1,4 @@ -The current basewiki is not self-documenting. In particular, if +The current basewiki is not [[self-documenting|todo/basewiki_should_be_self_documenting]]. In particular, if [[plugins/listdirectives]] is used, it creates a list with a bunch of broken links to directives/*, pages that do not currently exist in the docwiki or basewiki. @@ -24,6 +24,8 @@ include examples of the plugin in use, which are sometimes rather expensive Either way requires a lot of reorganisation/doc work, and an onging maintenance load. +> Which has now been [[done]]. -- [[Will]] + BTW, this patch would be needed for the second approach, to allow listdirectives to map from preprocessor directives back to the plugin that defined them: --[[Joey]] @@ -38,15 +40,15 @@ defined them: --[[Joey]] index e476521..afe982a 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm - @@ -493,6 +493,7 @@ sub loadplugins () { #{{{ + @@ -493,6 +493,7 @@ sub loadplugins () { return 1; - } #}}} + } +my $loading_plugin; - sub loadplugin ($) { #{{{ + sub loadplugin ($) { my $plugin=shift; - @@ -502,14 +503,18 @@ sub loadplugin ($) { #{{{ + @@ -502,14 +503,18 @@ sub loadplugin ($) { "$installdir/lib/ikiwiki") { if (defined $dir && -x "$dir/plugins/$plugin") { require IkiWiki::Plugin::external; @@ -65,7 +67,7 @@ defined them: --[[Joey]] if ($@) { error("Failed to load plugin $mod: $@"); } - @@ -1429,6 +1434,9 @@ sub hook (@) { # {{{ + @@ -1429,6 +1434,9 @@ sub hook (@) { return if $param{no_override} && exists $hooks{$param{type}}{$param{id}}; @@ -74,4 +76,4 @@ defined them: --[[Joey]] + $hooks{$param{type}}{$param{id}}=\%param; return 1; - } # }}} + }