ikiwiki/doc/plugins/shortcut/discussion.mdwn

28 lines
1.1 KiB
Plaintext
Raw Normal View History

The plugin depends on [[mdwn]]. If you have
2009-02-12 09:31:02 +01:00
disabled [[mdwn]], to get [[shortcut]] work, you need
commit in a shortcuts.ext (ext is `rcs|creole|html|txt|etc`),
and edit/patch [[shortcut]].
2009-02-12 09:31:02 +01:00
Maybe use the $default_pageext is better than hardcode .mdwn?
2009-02-12 09:31:02 +01:00
<pre>
--- shortcut.pm.orig 2009-02-12 02:05:22.000000000 -0600
+++ shortcut.pm 2009-02-12 04:41:30.000000000 -0600
@@ -23,9 +23,9 @@
if (defined $config{srcdir}) {
# Preprocess the shortcuts page to get all the available shortcuts
# defined before other pages are rendered.
- my $srcfile=srcfile("shortcuts.mdwn", 1);
+ my $srcfile=srcfile("shortcuts.$config{default_pageext}", 1);
if (! defined $srcfile) {
- error(gettext("shortcut plugin will not work without a shortcuts.mdwn"));
+ error(gettext("shortcut plugin will not work without a shortcuts.$config{default_pageext}"));
}
IkiWiki::preprocess("shortcuts", "shortcuts", readfile($srcfile));
}
</pre>
2009-02-12 09:31:02 +01:00
--[[weakish]]
2009-02-12 09:31:02 +01:00