Jose Guzman schrieb: > I was wondering if somebody is using Pydoc to create the documentation > for python modules. I usually create html versions of every python > module I write, but I would need to have .txt or .rst versions to > include them in the Sphinx documentation. > > Is there any way to create at list a rest file with Pydoc, so that I can > include the documentation with sphinx?
No, but Pydoc does have a "text" writer whose output you should be able to convert into reST pretty easily -- use pydoc.TextDoc.document(). Alternately, you could write a custom subclass of pydoc.Doc to write reStructuredText. cheers, Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
