Verification · Static analysis · Documentation build
Strict docs build
Treat warnings as errors (sphinx -W, mkdocs --strict).
How to build it
- Run sphinx-build with -W or mkdocs build with --strict in CI.
- Fix existing warnings before turning the flag on.
- Fail the docs job on broken references, missing navigation entries and bad markup.
Signals in a repository
- A docs job in CI running sphinx-build -W or mkdocs build --strict.
- A docs/conf.py or mkdocs.yml file in the repository.
In practice
19 repositories run a tool for this check in the scanned set.
sphinx· 9 reposmkdocs· 11 repos
Examples
-
TheAlgorithms/Python ·
sphinxsphinx-build -c docs . docs/_build/html -
pallets/flask ·
sphinxsphinx-build -E -W -b dirhtml docs docs/_build/dirhtml -
traefik/traefik ·
mkdocsmkdocs build --strict -
astral-sh/ruff ·
mkdocsmkdocs build --strict -f mkdocs.yml -
celery/celery ·
sphinxsphinx-build -j2 -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck