summaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-08 12:22:10 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-08 12:22:10 -0400
commit79312b2754571ac80253993217da2b0899086342 (patch)
tree18b89856d4d1a997410994ff07307f87aa264b23 /doc/plugins
parent548ab7a1258c8633cabc69c942470475374c2c0d (diff)
parentf5322fa912250cb2859bb63aeae419a405f74544 (diff)
Merge commit 'smcv/ready/getsource'
Conflicts: debian/changelog
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/getsource.mdwn13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/plugins/getsource.mdwn b/doc/plugins/getsource.mdwn
new file mode 100644
index 000000000..4fbf4be98
--- /dev/null
+++ b/doc/plugins/getsource.mdwn
@@ -0,0 +1,13 @@
+[[!template id=plugin name=getsource author="[[Will_Uther|Will]]"]]
+
+This plugin adds a `getsource` action to the IkiWiki CGI, and a "Source" link
+that uses it to display pages' source.
+
+Configuration for this plugin in the setup file:
+
+* `getsource_mimetype => "text/plain; charset=utf-8"`
+
+ Sets the MIME type used when page source is requested. The default is
+ usually appropriate, but you could set this to `application/octet-stream`
+ to encourage browsers to download the source to a file rather than showing
+ it in the browser.