Any way to get PyDoc in Jira Confluence

I use PyDoc to create documentation from my Python code, and I use the Jira Confluence plugin to manage the documentation. Is there a way to generate PyDoc documentation and put it in Confluence?

Googling did not give too many results.

Thank you all

+4
source share
1 answer

You can try something like this:

from pydoc import * import io d = HTMLDoc() content = d.docmodule(sys.modules["mymodule"]) f = io.open('./out.html', 'w') f.write(unicode(content)) f.close() 

You now have an HTML file containing pydoc information. The next trick is to turn it into Confluence so that it looks beautiful. I still tried to import it into Microsoft Word as .rtf and then cut-paste into Confluence.

0
source

All Articles