add custom shortcuts page, including a !commit shortcut to link to a git commit

This commit is contained in:
Joey Hess 2013-11-10 14:03:34 -04:00
parent 59d623c8ad
commit 7767d50324

12
doc/shortcuts.mdwn Normal file
View file

@ -0,0 +1,12 @@
[[!if test="enabled(shortcut)"
then="This wiki has shortcuts **enabled**."
else="This wiki has shortcuts **disabled**."]]
This page controls what shortcut links the wiki supports.
* [[!shortcut name=debbug url="http://bugs.debian.org/%S" desc="Debian bug #%s"]]
* [[!shortcut name=iki url="http://ikiwiki.info/%S/"]]
* [[!shortcut name=rfc url="https://www.ietf.org/rfc/rfc%s.txt" desc="RFC %s"]]
* [[!shortcut name=cve url="https://cve.mitre.org/cgi-bin/cvename.cgi?name=%s"]]
* [[!shortcut name=hackage url="http://hackage.haskell.org/package/%s"]]
* [[!shortcut name=commit url="http://source.git-annex.branchable.com/?p=source.git;a=commitdiff;h=%s"]]