Clean generated source RST files

The tox docs env generates RST files in doc/source/contributor/api/
and these aren't updated when modules are removed from the glance
source code, and can cause errors trying to build the docs.  So
clean this dir out (like we do with doc/build/) before building
the docs.

Change-Id: I47e8ceccecadb469c27cbf203fe77528cc38d95d
This commit is contained in:
Brian Rosmaita 2023-06-28 20:36:55 -04:00
parent 2fd57d68f5
commit 0bc55d4f83
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ deps =
-r{toxinidir}/doc/requirements.txt
commands =
rm -fr doc/build
rm -fr doc/source/contributor/api
sphinx-build -W -b html doc/source doc/build/html
whereto doc/source/_extra/.htaccess doc/test/redirect-tests.txt