The src/docs
directory contains a Sphinx project that generates
HTML documentation for the Python
codebase. Sphinx is a
documentation generator that converts reStructuredText files and
Python docstrings into HTML documentation with cross-references,
search functionality, and more.
make.bat
- Batch file to build the project on Windows.Makefile
- Used bymake
(see Make Commands below) -Makefile
README.md
- This documentsource
- Contains Sphinx configuration and source files._static
- Directory for static resources (images, CSS, etc.).Images
- Our own custom images, Sphinx can find.
_templates
- Directory for custom HTML templates.themes
- Directory for custom Sphinx themes.pronouns2
- Our own Sphinx theme
conf.py
- Contains Sphinx configuration fileindex.rst
- Main Sphinx documentation index.faq.rst
- FAQ section in reStructuredText format.*.rst
- Generated bysphinx-apidoc -f -o ./docs/source .
build
- Sphinx generated HTML documentationdoctrees
- Directory for cached doctree files.html
- Directory for generated HTML documentation._sources
- Directory for plaintext .rst source links in HTML._static
- Static resources copied during HTML build.Images
- Copied custom images.
*.htm
- HTML files generated bymake html
The following make targets are available:
make help
- Print this helpmake view
- Build everything; view HTML docmake all
- Clean everything and rebuild HTML documentationmake apidoc
- Generate API documentationmake linkcheck
- Check external links for integritymake html
- Generate HTML documentationmake clean
- Remove intermediate build filesmake distclean
- Remove non-shipping files, including the build directorymake maintainer-clean
- Remove all generated files, including shipped HTML files
For a complete rebuild of the HTML documentation, simply run:
make all
The generated HTML documentation will be available in build/html/index.htm
.
If you've made changes to Python docstrings or documentation source files:
- The
make all
command will handle everything automatically - Individual steps can be run manually if needed using the commands above
- The documentation is automatically generated from:
- Python docstrings in the source code
- ReStructuredText (.rst) files in the source directory
- Configuration in source/conf.py
This documentation system integrates with the project's main
build system. Higher-level makefiles can simply call make all
in this directory to generate complete documentation.