Clean up stale auto-generated autodoc files.

This avoid modules that have been moved/removed from continuing to have
documentation generated for them.  We use git clean to allow us to have
other files in there.

Possibly not an issue on the build hosts, but definitely irritating
locally.

Change-Id: I3403e8227913904a25b6a0866adfcc628d60419e
This commit is contained in:
Daniel Watkins 2015-06-12 17:12:22 +01:00 committed by Scott Moser
parent 0f723a9772
commit 2557d66fa4
2 changed files with 5 additions and 0 deletions

View File

@ -1 +1,4 @@
Don't put files in here, it's intended only for auto-generated output!
Specifically, files which aren't known to git will be cleaned out of
this directory before the docs are generated by tox.

View File

@ -25,7 +25,9 @@ commands = {envpython} {toxinidir}/tools/noproxy nosetests --with-coverage --cov
commands = flake8 {posargs}
[testenv:docs]
whitelist_externals = git
commands =
git clean -fx doc/source/api
python setup.py build_sphinx
doc8 doc/source