From 0bc55d4f830c49151c1f059888e8ef368e4ba4f3 Mon Sep 17 00:00:00 2001 From: Brian Rosmaita Date: Wed, 28 Jun 2023 20:36:55 -0400 Subject: [PATCH] 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 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 9a19c5b31e..92b6f4b48f 100644 --- a/tox.ini +++ b/tox.ini @@ -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