Fix docs build in tox.ini

This patch is to ensure the old files are not left over
when running these document builds.

Change-Id: I1234a6be4c7f33522c4ad803be9bc4f4777ed102
This commit is contained in:
huangshan 2018-05-14 16:15:46 +08:00
parent b8815031e5
commit 89cdc72aaf
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,9 @@ commands =
diff-cover --fail-under 100 --compare-branch master coverage.xml
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:pep8]
sitepackages = False
@ -71,12 +73,14 @@ whitelist_externals = rm
# This environment is called from CI scripts to test and publish
# the API Guide to developer.openstack.org.
commands =
rm -rf api-guide/build
sphinx-build -W -b html -d api-guide/build/doctrees api-guide/source api-guide/build/html
[testenv:api-ref]
# This environment is called from CI scripts to test and publish
# the API Ref to developer.openstack.org.
commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
[testenv:functional]