Clear cached autogenerated docs before docs build
Leftover data in the autogenerated docs can result in build
failure. Remove these files before every build to be safe.
Closes-bug:
@@ -93,6 +93,7 @@ commands = {posargs}
[testenv:docs]
commands =
+ rm -fr 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/
