Ask HN: How do people generate documentation from Python comments?
1–5 of 5 posts
Re: Ask HN: How do people generate documentation from Python comments?
#2Re: Ask HN: How do people generate documentation from Python comments?
#3https://docutils.sourceforge.io/
Note also that the "help()" function
https://docs.python.org/3/library/functions.html#help
reads out these comments and prints them on the interactive console.
Re: Ask HN: How do people generate documentation from Python comments?
#4It used to be that Sphinx [1] was the go-to solution, possibly something else has emerged since I was doing this sort of thing. Some example output at [2] [1] https://www.sphinx-doc.org/en/master/ [2] http://soliton.vm.bytemark.co.uk/pub/docs/mvpoly/
Re: Ask HN: How do people generate documentation from Python comments?
#5It used to be that Sphinx [1] was the go-to solution, possibly something else has emerged since I was doing this sort of thing. Some example output at [2] [1] https://www.sphinx-doc.org/en/master/ [2] http://soliton.vm.bytemark.co.uk/pub/docs/mvpoly/
I'm in the process of setting up docs for a Python based CLI and Sphinx has continually come up as the best option. Ran through the setup today and it was straightforward, next step is figuring out how to auto-generate the docs from docstrings.