How can I incorporate PyDoc output into Atlassian Confluence?

I’m utilizing PyDoc to automatically create documentation from my Python modules and handling my docs through the Confluence setup in Jira. I’m curious if there’s a method to automatically load or embed the PyDoc output within Confluence. My attempts via online searches haven’t produced many useful tutorials. Any pointers or workarounds would be greatly appreciated. Thanks in advance for your help!

i tried something similar - a script that grabs pydoc html and pushes it to confluence via its api. it wasnt perfect but did the trick for me. hope u find a tweak that fits your needs!

I’ve tackled this by formatting the PyDoc HTML output and integrating it with Confluence’s REST API through a custom script in Python. From my experience, although it requires some manual setup initially, the process can be automated with a job that checks for new builds and pushes updates to specific Confluence pages. The key was managing the HTML structure so that Confluence interpreted it correctly, making necessary tweaks to conform with the wiki markup format. While it isn’t a turnkey solution, it definitely streamlines keeping the documentation current automatically.