aboutsummaryrefslogtreecommitdiff
path: root/doc
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
parent548ab7a1258c8633cabc69c942470475374c2c0d (diff)
parentf5322fa912250cb2859bb63aeae419a405f74544 (diff)
downloadikiwiki-79312b2754571ac80253993217da2b0899086342.tar
ikiwiki-79312b2754571ac80253993217da2b0899086342.tar.gz
Merge commit 'smcv/ready/getsource'
Conflicts: debian/changelog
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins/getsource.mdwn13
-rw-r--r--doc/todo/source_link.mdwn2
2 files changed, 15 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.
diff --git a/doc/todo/source_link.mdwn b/doc/todo/source_link.mdwn
index 4a8285948..0c639a314 100644
--- a/doc/todo/source_link.mdwn
+++ b/doc/todo/source_link.mdwn
@@ -132,3 +132,5 @@ All of this code is licensed under the GPLv2+. -- [[Will]]
}
1
+
+[[done]] --[[smcv]]