From 75714b60ca2490a518bbb0f5390ac6eefe06d6b6 Mon Sep 17 00:00:00 2001 From: bendikro Date: Wed, 19 Oct 2016 13:53:32 +0200 Subject: [PATCH] [Docs] Clean module sources dir before generating docs If old and outdated sources are present in docs/sources/modules, python setup.py build_docs will fail to generate docs. --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 341fce3ac..3ff0bb2b7 100644 --- a/tox.ini +++ b/tox.ini @@ -186,7 +186,10 @@ whitelist_externals = [testenv:docs] sitepackages = {[docsbase]sitepackages} deps = {[docsbase]deps} +whitelist_externals = + bash commands = + bash -c 'rm -f docs/source/modules/*.rst' python -c "print '> sphinx-apidoc --force -o docs/source/modules/ deluge deluge/plugins\n'\ '> sphinx-build -v -E -T -b html -d docs/build/doctrees docs/source docs/build/html';\ import subprocess, sys; proc = subprocess.Popen(\