A demo of the sphinx.ext.coverage extension found in core Sphinx.
Note
There's an open issue regarding the C coverage support, which is currently broken in Sphinx 7.x (and likely much earlier versions). As such, the C parts of this demo won't work until that's addressed.
Install Sphinx:
virtualenv .venv
source .venv/bin/activate
pip install sphinx
Once done, build documentation using the coverage builder:
make -C docs coverage
Coverage reports can be found in the docs/build/coverage
directory. You'll note that two APIs - one from the C API docs and one Python API docs -are noted as undocumented. If you go into the docs/source/api.rst
file you will see these are documented but commented out. Uncomment these are run the build again:
make -C docs coverage
You will now see no undocumented methods.