A while ago I tried to use sphinx-autoapi, but the experience was simply frustrating. Too many steps, too many dependencies, the tooling required numerous tweaks to generated good output, and errors were difficult to debug.<p>I ended up writing my own script. Now I simply do<p><pre><code> ./docstring2markdown.py modulename [github_master_url] > README.md
</code></pre>
And it generates a Markdown API like this one: <a href="https://github.com/boppreh/keyboard#api" rel="nofollow">https://github.com/boppreh/keyboard#api</a> . Note it includes constants and their values, full method signatures with default values, points out aliases (methods with the same name), keeps everything in the order it was declared, and provides a link to the line number on the source.<p>It's not perfect, but I'm quite happy for a ~100loc script.<p>Hopefully they launch something as easy and I can retire my script.