Sphinx¶
What Sphinx Is¶
Sphinx is a Python application for generating documentation. It uses reStructuredText as its markup language.
Visit the Sphinx website http://sphinx-doc.org/
Why Sphinx is Used¶
- To generate API documentation from source code docstrings.
- To generate HTML pages from the reStructuredText files.
How Sphinx is Used¶
Create valid docstrings for code
Create a docs folder
Navigate to the docs folder
Put a copy of the modified Sphinx Makefile
Put a copy of the modified Sphinx Config (conf.py)
Create an index file: index.rs_
- This is the main page of the documentation and must include a table of contents
- The file extension is required for non-code based files to work with the modified Sphinx Makefile
- Generate the documenation
make html