moin2rst -- convert a MoinMoin Wiki page to reStructuredText syntax
Use MoinMoin action RenderAsRestructuredtext
moin2rst.py [<option>]... page
moin2rst contains a MoinMoin formatter plugin which formats a MoinMoin Wiki page as reStructuredText.
It is accompanied by a MoinMoin action plugin to use it inside a MoinMoin Wiki and by a script to be used from the command line.
If the action plugin is installed each page should come with an additional action RenderAsRestructuredtext in the list of possible actions. Using this action renders the page as text/x-rst
and returns it to the browser where it can be saved for further use.
See INSTALLATION for instructions for installing the action plugin.
The command line interface is implemented by moin2rst.py
and can be used together with an existing Wiki installation.
See OPTIONS for the options of the script.
- -d dir, --directory=dir Directory where the configuration file
of the wiki lives; defaults to '..'.
- -r rev, --revision=rev Revision of the page to fetch (1-based),
defaults to current revision.
- -u template, --url-template=template If the wiki given by
-d
/--directory
is part of a wiki farm then this gives a template to generate an URL from. The URL must be matched by one of the regular expressions found in wikis in the respectivefarmconfig.py
. May contain at most one %. The % is replaced by page to form a valid URL. If % is omitted it is assumed at the end. Defaults to the empty string.
page
The page named page is used as input. Output is to
stdout
.
The package contains two plugins: The formatter plugin which is needed always and the action plugin which is needed if the formatter should be used as an action.
Simply put RenderAsRestructuredtext.py
to MoinMoin's plugin/formatter
directory.
Simply put RenderAsRestructuredtext.py
to MoinMoin's plugin/action
directory.
The script does not need installation.
Stefan Merten <smerten@oekonux.de> (original author)
David Warde-Farley <dwf at cs dot toronto dot edu> (updated for Moin 1.8.4)
moin2rst is licensed under the terms of the GPL. See http://www.gnu.org/licenses/gpl.txt