git-remote-mediawiki: add preview subcommand into git mw
commit0078a7fa05b3d671739aefba5265da809ea32e55
authorBenoit Person <benoit.person@ensimag.fr>
Thu, 4 Jul 2013 20:39:00 +0000 (4 22:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Jul 2013 15:56:14 +0000 (8 08:56 -0700)
tree6655668814b361d1303787948c72f213b4482566
parent07a263b9056ac7135ed84d64cabf80c5a6b1972e
git-remote-mediawiki: add preview subcommand into git mw

In the current state, a user of git-remote-mediawiki can edit the markup text
locally, but has to push to the remote wiki to see how the page is rendererd.
Add a new 'git mw preview' command that allows rendering the markup text on
the remote wiki without actually pushing any change on the wiki.

This uses Mediawiki's API to render the markup and inserts it in an actual
HTML page from the wiki so that CSS can be rendered properly. Most links
should work when the page exists on the remote.

Signed-off-by: Benoit Person <benoit.person@ensimag.fr>
Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/mw-to-git/Git/Mediawiki.pm
contrib/mw-to-git/git-mw.perl