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