Make Sphinx generate RST class documentation from pydoc

Posted by Michal Cihar on Stack Overflow See other posts from Stack Overflow or by Michal Cihar
Published on 2010-04-19T14:28:46Z Indexed on 2010/04/24 16:13 UTC
Read the original article Hit count: 289

Filed under:
|
|

I'm currently migrating all existing (incomplete) documentation to Sphinx.

The problem is that the documentation uses Python docstrings (the module is written in C, but it probably does not matter) and the class documentation must be converted into a form usable for Sphinx.

There is sphinx.ext.autodoc, but it automatically puts current docstrings to the document. I want to generate source (RST) file based on current docstrings, which I could edit and improve manually.

How would you transform docstrings into RST for Sphinx?

© Stack Overflow or respective owner

Related posts about python

Related posts about sphinx