rendering mercurial tests in a nice way

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Sun Mar 13 09:34:42 CDT 2011


On Sun, Mar 13, 2011 at 2:44 PM, Alexander Solovyov
<alexander at solovyov.net> wrote:
> Hi,
>
> I've created small dirty script [1] which converts hg/tests contents
> into .rst files and generates index.rst for sphinx to render those
> files. You can see result of its work at [2].
>
> Sometimes it fails a bit, like [3], but mostly works. :) I don't know
> if anybody is interested, but anyway here it is. :)
>
> [1]: http://hg.piranha.org.ua/sphinxedhg/file/tip/test2rst.py
> [2]: http://hg.piranha.org.ua/sphinxedhg/docs/
> [3]: http://hg.piranha.org.ua/sphinxedhg/docs/test-update-branches.html

I like it! Now we could maybe use something like this to have test
examples in our help and other docs. Either by citing them from test
scripts, or by running help sources as test scripts.
-parren


More information about the Mercurial-devel mailing list