Run in the project virtualenv:
$ pip3 install Sphinx
Run in docs/ folder.
$ sphinx-quickstart # make sure to enable autodoc
$ sphinx-apidoc -f -o docs/ <projectdir>
extensions = ['sphinx.ext.napoleon']
napoleon_include_private_with_doc = True
napoleon_include_special_with_doc = True
$ make html
Make sure to install your package beforing generating the documentation.
Installing locally...
$ python3 setup.py develop
Installing in the system ...
$ pip3 install <packagename>
- First Steps with Sphinx
- Support for NumPy and Google style docstrings
- Example Google Style Python Docstrings
- Open Sourcing a Python Project the Right Way
- Read the Docs - Getting Started
- reStructuredText Primer
- How to generate sphinx documentation for python code
- Getting Started with Sphinx / Autodoc: Part 1