[PATCH 0 of 3] Html help in hg serve when docutils is available.

Erik Zielke ez at aragost.com
Mon Oct 25 07:42:17 UTC 2010


I have looked into the issue on import cycles, mentioned on irc, but just
had to have a better understanding of imports, so it took some time. I am
still relatively new to Python.

But now I just realised that I can just pass the commandtable as a parameter
to the _helphtml function from help in webcommands. That would be better,
right?



2010/10/22 Erik Zielke <ez at aragost.com>

> Second version of patch series, changes since first version:
>  - Corrected some mistakes.
>  - A bit more doc.
>  - A better commit message.
>  - Made help available for command aliases when entering url, e.g.
> /help/history shows help for hg log.
>
>
> This patch series contains of three patches:
>
> - First two patches refactors the code to generate html help, so it
>  can be used by 'hg serve'
>
>  - Third patch uses this to generate html help in 'hg serve' when
>   docutils is available, otherwise as before.
>
> This requires a change in the templates. I have only edited the paper
> template, because would like to get comments before I edit the others.
>
> I am not too happy about the line with html tags in the code, another
> solution could be having to keywords in the template, e.g. doc and
> htmldoc, where there is always only one of them that is not an empty
> string. Better solutions? If not, which of them is best?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20101025/a9db4d68/attachment.html>


More information about the Mercurial-devel mailing list