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