Add doc8 check to docs builds

Currently, doc8 only runs in the pep8 testenv.  Add it to the docs
testenv to make it easier not to submit a patch with an error.

Change-Id: Id8f348109443a7829b5dae91c74dd03c1ea89376
This commit is contained in:
Brian Rosmaita 2022-07-21 17:38:59 -04:00
parent f8fa57a8b9
commit 4bfd1c93a5
1 changed files with 2 additions and 0 deletions

View File

@ -123,8 +123,10 @@ commands = {posargs}
[testenv:docs]
allowlist_externals = rm
deps =
doc8
-r{toxinidir}/doc/requirements.txt
commands =
doc8
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
# Test the redirects. This must run after the main docs build