Merge "Add doc8 check to docs builds"

This commit is contained in:
Zuul 2022-11-09 19:10:27 +00:00 committed by Gerrit Code Review
commit dcec2f6f01

View File

@ -134,8 +134,10 @@ commands = {posargs}
[testenv:docs] [testenv:docs]
allowlist_externals = rm allowlist_externals = rm
deps = deps =
doc8
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
commands = commands =
doc8
rm -rf doc/source/contributor/api doc/build/html doc/build/doctrees rm -rf doc/source/contributor/api doc/build/html doc/build/doctrees
sphinx-build -W -j auto -b html -d doc/build/doctrees doc/source doc/build/html sphinx-build -W -j auto -b html -d doc/build/doctrees doc/source doc/build/html
# Test the redirects. This must run after the main docs build # Test the redirects. This must run after the main docs build