master
Joey Hess 2008-10-29 18:06:00 -04:00
parent 3d72fd8f26
commit 3b8740ebee
3 changed files with 24 additions and 12 deletions

View File

@ -28,4 +28,16 @@ Does the Perl version of this plugin still exist? There appears to be no "rst.p
> No, only the python version exists. It does have `raw_enabled` set. > No, only the python version exists. It does have `raw_enabled` set.
> --[[Joey]] > --[[Joey]]
I am sorry, but I am confused. Does this mean that I can use Ikiwiki features that translate to HTML in rst files? For example, when I use a \[[pagename]]-style link in a rst file, the page generated by Ikiwiki's rst plugin says <a href="./../pagename/">pagename</a> as text. The link is expanded correctly, but the result isn't interpreted as HTML. Is that what is supposed to happen? --Peter I am sorry, but I am confused. Does this mean that I can use Ikiwiki
features that translate to HTML in rst files? For example, when I use a
\[[pagename]]-style link in a rst file, the page generated by Ikiwiki's rst
plugin says <a href="./../pagename/">pagename</a> as text. The link
is expanded correctly, but the result isn't interpreted as HTML. Is that
what is supposed to happen? --Peter
> `raw_enabled` allows you to use the
> [raw directive](http://docutils.sourceforge.net/docs/ref/rst/directives.html),
> but this is not used by ikiwiki for wikilinks or anything else.
> That's why the [[plugin_page|plugins/rst]] has its note about
> issues with wikilinks and directives. You'd have to put those inside
> raw directives yourself to avoid rst escaping their result. --[[Joey]]

View File

@ -15,5 +15,5 @@ use IkiWiki::Setup::Standard {
userdir => "users", userdir => "users",
usedirs => 0, usedirs => 0,
prefix_directives => 1, prefix_directives => 1,
add_plugins => [qw{goodstuff version haiku polygen fortune}], add_plugins => [qw{goodstuff version haiku polygen fortune rst}],
} }

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-10-26 20:44-0400\n" "POT-Creation-Date: 2008-10-29 17:42-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -129,7 +129,7 @@ msgstr ""
msgid "deleting bucket.." msgid "deleting bucket.."
msgstr "" msgstr ""
#: ../IkiWiki/Plugin/amazon_s3.pm:38 ../ikiwiki.in:205 #: ../IkiWiki/Plugin/amazon_s3.pm:38 ../ikiwiki.in:206
msgid "done" msgid "done"
msgstr "" msgstr ""
@ -250,18 +250,18 @@ msgstr ""
msgid "fortune failed" msgid "fortune failed"
msgstr "" msgstr ""
#: ../IkiWiki/Plugin/git.pm:617 ../IkiWiki/Plugin/git.pm:635 #: ../IkiWiki/Plugin/git.pm:618 ../IkiWiki/Plugin/git.pm:636
#: ../IkiWiki/Receive.pm:129 #: ../IkiWiki/Receive.pm:129
#, perl-format #, perl-format
msgid "you are not allowed to change %s" msgid "you are not allowed to change %s"
msgstr "" msgstr ""
#: ../IkiWiki/Plugin/git.pm:657 #: ../IkiWiki/Plugin/git.pm:658
#, perl-format #, perl-format
msgid "you cannot act on a file with mode %s" msgid "you cannot act on a file with mode %s"
msgstr "" msgstr ""
#: ../IkiWiki/Plugin/git.pm:661 #: ../IkiWiki/Plugin/git.pm:662
msgid "you are not allowed to change file modes" msgid "you are not allowed to change file modes"
msgstr "" msgstr ""
@ -660,18 +660,18 @@ msgstr ""
msgid "search" msgid "search"
msgstr "" msgstr ""
#: ../IkiWiki/Plugin/shortcut.pm:27 #: ../IkiWiki/Plugin/shortcut.pm:28
msgid "shortcut plugin will not work without a shortcuts.mdwn" msgid "shortcut plugin will not work without a shortcuts.mdwn"
msgstr "" msgstr ""
#: ../IkiWiki/Plugin/shortcut.pm:36 #: ../IkiWiki/Plugin/shortcut.pm:38
msgid "missing name or url parameter" msgid "missing name or url parameter"
msgstr "" msgstr ""
#. translators: This is used to display what shortcuts are defined. #. translators: This is used to display what shortcuts are defined.
#. translators: First parameter is the name of the shortcut, the second #. translators: First parameter is the name of the shortcut, the second
#. translators: is an URL. #. translators: is an URL.
#: ../IkiWiki/Plugin/shortcut.pm:45 #: ../IkiWiki/Plugin/shortcut.pm:47
#, perl-format #, perl-format
msgid "shortcut %s points to <i>%s</i>" msgid "shortcut %s points to <i>%s</i>"
msgstr "" msgstr ""
@ -934,11 +934,11 @@ msgstr ""
msgid "generating wrappers.." msgid "generating wrappers.."
msgstr "" msgstr ""
#: ../ikiwiki.in:194 #: ../ikiwiki.in:195
msgid "rebuilding wiki.." msgid "rebuilding wiki.."
msgstr "" msgstr ""
#: ../ikiwiki.in:197 #: ../ikiwiki.in:198
msgid "refreshing wiki.." msgid "refreshing wiki.."
msgstr "" msgstr ""