Fix releasenotes build in tox
This patch is to ensure the old files are not left over when running these document builds. Change-Id: I2941a006fd44447931cfde63af7da26363e3a352
This commit is contained in:
@@ -154,6 +154,7 @@ The basic steps are:
|
|||||||
[testenv:api-ref]
|
[testenv:api-ref]
|
||||||
# This environment is called from CI scripts to test and publish
|
# This environment is called from CI scripts to test and publish
|
||||||
# the API Ref to developer.openstack.org.
|
# the API Ref to developer.openstack.org.
|
||||||
|
whitelist_externals = rm
|
||||||
commands =
|
commands =
|
||||||
rm -rf api-ref/build
|
rm -rf api-ref/build
|
||||||
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
||||||
|
|||||||
@@ -50,7 +50,10 @@ Setting up
|
|||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
[testenv:deploy-guide]
|
[testenv:deploy-guide]
|
||||||
commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees -b html deploy-guide/source deploy-guide/build/html
|
whitelist_externals = rm
|
||||||
|
commands =
|
||||||
|
rm -rf deploy-guide/build
|
||||||
|
sphinx-build -a -E -W -d deploy-guide/build/doctrees -b html deploy-guide/source deploy-guide/build/html
|
||||||
|
|
||||||
|
|
||||||
#. Add your deployment guide content, and test the build locally with ``tox``:
|
#. Add your deployment guide content, and test the build locally with ``tox``:
|
||||||
|
|||||||
@@ -77,7 +77,10 @@ Set up project specific installation guides:
|
|||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
[testenv:install-guide]
|
[testenv:install-guide]
|
||||||
commands = sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html
|
whitelist_externals = rm
|
||||||
|
commands =
|
||||||
|
rm -rf install-guide/build
|
||||||
|
sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html
|
||||||
|
|
||||||
#. Add the python package ``openstackdocstheme`` to the
|
#. Add the python package ``openstackdocstheme`` to the
|
||||||
``test-requirements.txt`` file. Copy the exact requirement line from the
|
``test-requirements.txt`` file. Copy the exact requirement line from the
|
||||||
|
|||||||
Reference in New Issue
Block a user