aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-28 01:59:01 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-28 01:59:01 +0000
commit9c5f4761d8bf785ca98d5fda66fbbe9dbe11897c (patch)
tree6e2c8fab91dd051a7acc2cf0ab7c71fc58f6c278 /doc/plugins
parent21c4bd8444480d6038d217fa2892d13ecce500ff (diff)
downloadikiwiki-9c5f4761d8bf785ca98d5fda66fbbe9dbe11897c.tar
ikiwiki-9c5f4761d8bf785ca98d5fda66fbbe9dbe11897c.tar.gz
* Support for looking in multiple directories for underlay files.
* Plugins can add new directories to the search path with the add_underlay function. * Split out smiley underlay files into a separate underlay, so if the plugin isn't used, the wiki isn't bloated with all those files.
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/write.mdwn12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 0c192eb64..4ec9e8c7b 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -461,8 +461,16 @@ that corresponds to that file.
#### `srcfile($)`
Given the name of a source file in the wiki, searches for the file in
-the source directory and the underlay directory, and returns the full
-path to the first file found.
+the source directory and the underlay directories (most recently added
+underlays first), and returns the full path to the first file found.
+
+#### `add_underlay($)`
+
+Adds a directory to the set of underlay directories that ikiwiki will
+search for files.
+
+If the directory name is not absolute, ikiwiki will assume it is in
+the parent directory of the configured underlaydir.
#### `displaytime($)`