From 73972e1b60e8c41a4a09c02d7572c1bb53552bc7 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sat, 11 Apr 2015 15:16:18 +0200 Subject: [PATCH] Move taskoverview exec into docs/ --- taskoverview.py => docs/taskoverview.py | 4 ++++ tox.ini | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) rename taskoverview.py => docs/taskoverview.py (95%) diff --git a/taskoverview.py b/docs/taskoverview.py similarity index 95% rename from taskoverview.py rename to docs/taskoverview.py index f9811b1..c1b142f 100755 --- a/taskoverview.py +++ b/docs/taskoverview.py @@ -1,4 +1,8 @@ #!/usr/bin/python +import sys +import os.path + +sys.path.append(os.path.join(os.path.dirname(__file__), '..')) def main(opts): diff --git a/tox.ini b/tox.ini index e229a8d..0ec323d 100644 --- a/tox.ini +++ b/tox.ini @@ -16,11 +16,12 @@ deps = commands = nosetests -v tests/integration --with-coverage --cover-package=bootstrapvz --cover-inclusive [testenv:docs] +changedir = docs deps = sphinx commands = - ./taskoverview.py --output docs/_static/graph.json - sphinx-build -W -b html -d docs/_build/html/doctrees docs docs/_build/html + ./taskoverview.py --output _static/graph.json + sphinx-build -W -b html -d _build/html/doctrees . _build/html [testenv:docs-serve] changedir = docs/_build/html