]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/localstyle.mdwn
localstyle: New plugin, allows overrding the toplevel local.css with one that is...
[ikiwiki.git] / doc / plugins / localstyle.mdwn
diff --git a/doc/plugins/localstyle.mdwn b/doc/plugins/localstyle.mdwn
new file mode 100644 (file)
index 0000000..70a909d
--- /dev/null
@@ -0,0 +1,12 @@
+[[!template id=plugin name=localstyle author="[[Joey]]"]]
+[[!tag type/chrome]]
+
+This plugin allows styling different sections of a wiki using different
+versions of the local.css [[CSS]] file. Normally this file is read from the
+top level of the wiki, but with this plugin enabled, standard
+[[ikiwiki/subpage/LinkingRules]] are used to find the closest local.css
+file to each page.
+
+So, for example, to use different styling for page `foo`, as well as all
+of its [[SubPages|ikiwiki/subpage]], such as `foo/bar`, create a
+`foo/local.css`.