]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins.mdwn
add
[ikiwiki.git] / doc / plugins.mdwn
1 There's documentation if you want to [[write]] your own plugins, or you can
2 install and use plugins contributed by others. 
3
4 The [[inline]] and [[htmlscrubber]] plugins are enabled by default.
5
6 To enable other plugins, use the `--plugin` switch described in [[usage]],
7 or the equivalent line in [[ikiwiki.setup]].
8
9 # Plugin directory
10
11 Add all plugins here. Or add ideas to the [[todo|todo/plugin]] page.
12
13 [[inline pages="plugins/* !plugins/write !*/Discussion" archive="yes" rootpage="plugins/contrib" show="60"]]
14
15 # Installing third party plugins
16
17 Plugins are perl modules and should be installed somewhere in the perl
18 module search path. See the @INC list at the end of the output of `perl -V`
19 for a list of the directories in that path. All plugins are in the
20 IkiWiki::Plugin namespace, so they go in a IkiWiki/Plugin subdirectory
21 inside the perl search path. For example, if your perl looks in
22 `/usr/local/lib/site_perl` for modules, you can locally install ikiwiki
23 plugins to `/usr/local/lib/site_perl/IkiWiki/Plugin`