Wiki style question...

Douglas Philips dgou at mac.com
Sun Apr 20 14:39:48 UTC 2008


On 2008 Apr 20, at 8:12 AM, Adrian Buehlmann wrote:
> An idea on this:
>
> MoinMoin allows writing own macros in Python. See wiki page
> HelpOnMacros, heading "Writing your own macro".
>
> For example it might be possible to write a macro, let's say
> "MercurialHelpText" that could be used on a wiki page like
> this:
>
> [[MercurialHelpText(clone)]]
>
> which would insert the help text for the clone command
> (inside "<pre>" html elements?).
>
> MercurialHelpText.py could then directly call the Mercurial
> API.
>
> Of course, this would consume yet another time slice from
> Matt (assuming he's the wiki admin in charge)...


Why not just use:
http://www.selenic.com/mercurial/wiki/index.cgi/HelpOnMacros/Include

I have to go offline now, but it might even be that the existing
man pages are stylized enough to make that work. I'll check later
today when I'm back online.

IMHO it would be better to tweak the html conversion of the man pages
to make them amenable to the kinds of delimiting that Include can
pull off than to cut-n-paste parts of them in all the category command
wiki entries.

--Doug






More information about the Mercurial mailing list