If someone has ever written a script to convert the Python
Language Reference and Library Reference to man format, I'm

Thanks in advance.

Andr? Majorel http://www.teaser.fr/~amajorel/
"The object of this year's expedition is to see if we can find
trace of last year's expedition."

Search Discussions

  • Andrew cooke at Apr 20, 2011 at 8:14 pm
    (1) Python's docs use Sphinx, which uses restructured text as a markup. You can generate man pages from restructured text using rst2man (which is installed on my computer, probably as part of python/docutils).

    HOWEVER I imagine it's not going to work very well, if at all, because Sphinx uses lots of fancy extensions. But...

    (2) Sphinx itself has a "builder" for man pages. It's described at http://sphinx.pocoo.org/builders.html#sphinx.builders.manpage.ManualPageBuilder So you should be able to configure Sphinx to use that. So you will need to download the docs package, install Sphinx, and then tweak the Sphinx configuration as described at the link above and at http://sphinx.pocoo.org/config.html#confval-man_pages

    This second approach should work.


Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
postedApr 20, '11 at 9:52a
activeApr 20, '11 at 8:14p

2 users in discussion

Andrew cooke: 1 post Andre Majorel: 1 post



site design / logo © 2022 Grokbase