I have created a demo project which uses setuptools and has the following structure:
project/
|- pizza/
| |- __init__.py
| `- margherita.py
|
|- README.rst
|- setup.cfg
`- setup.py
I'm trying to autogenerate documentation for this project using Sphinx. So far I've tried:
# Generate a sphinx template
sphinx-quickstart
# Use default settings, except for project name, etc.
sphinx-apidoc -o source .
./setup.py build_sphinx
I feel there has to be an easier way to autogenerate this documentation using the README
, setup.py
and docstrings.
Ultimately I'd like to autogenerate apidocs for another project where I use the Python C-api as well. I couldn't find anything for this.
My main question is: Is there an easier way to autogenerate this documentation?