Remove doc/build before running docs job
Clear doc/build directory before running docs job may better guarantee
each building output the newest docs.
@@ -105,7 +105,7 @@ commands = {posargs}
[testenv:docs]
commands =
- rm -fr doc/source/contributor/api/ .autogenerated
+ rm -fr doc/build doc/source/contributor/api/ .autogenerated
python setup.py build_sphinx
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html/
