aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/install.mdwn
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-13 17:22:15 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-13 17:22:15 +0000
commit75a11e6a8d92f7ff221eb4b1270526d57ef537bc (patch)
tree2018639f693f1424750790f038bf2363e7292eab /doc/plugins/install.mdwn
parent15f393584a799473fa17dccd53df5fc2dcf694a8 (diff)
downloadikiwiki-75a11e6a8d92f7ff221eb4b1270526d57ef537bc.tar
ikiwiki-75a11e6a8d92f7ff221eb4b1270526d57ef537bc.tar.gz
improved docs, add a tutorial for writing plugins
Diffstat (limited to 'doc/plugins/install.mdwn')
-rw-r--r--doc/plugins/install.mdwn19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/plugins/install.mdwn b/doc/plugins/install.mdwn
new file mode 100644
index 000000000..aa1c932bc
--- /dev/null
+++ b/doc/plugins/install.mdwn
@@ -0,0 +1,19 @@
+[[meta title="Installing third party plugins"]]
+
+Most ikiwiki plugins are perl modules and should be installed somewhere in
+the perl module search path. See the @INC list at the end of the output of
+`perl -V` for a list of the directories in that path. All plugins are in
+the IkiWiki::Plugin namespace, so they go in a IkiWiki/Plugin subdirectory
+inside the perl search path. For example, if your perl looks in
+`/usr/local/lib/site_perl` for modules, you can locally install ikiwiki
+plugins to `/usr/local/lib/site_perl/IkiWiki/Plugin`
+
+You can use the `libdir` configuration option to add a directory to the
+search path. For example, if you set `libdir` to `/home/you/.ikiwiki/`,
+then ikiwiki will look for plugins in `/home/you/.ikiwiki/IkiWiki/Plugins`.
+
+Ikiwiki also supports plugins that are external programs. These are
+typically written in some other language than perl. Ikiwiki searches for
+these in `/usr/lib/ikiwiki/plugins` by default. If `libdir` is set, it will
+also look under that directory, for example in `/home/you/.ikiwiki/plugins`.
+Note that this type of plugin has to be executable for ikiwiki to use it.