This adds configuration for performing local documentation builds
with the following simple command:
tox -e docs
Change-Id: Ifb8fce66e59432863d042a96308e6c3a89fb11a8
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
.testrepository/
cover/
.*.sw?
-/docs_build/
/docs_output/
/docs/apidocs/yardstick*.rst
#PyCharm IDE project configuration files
# work env
work/
.pytest_cache
+docs/_build/*
--- /dev/null
+from docs_conf.conf import *
--- /dev/null
+---
+project_cfg: opnfv
+project: CLOVER
--- /dev/null
+lfdocs-conf
+sphinx_opnfv_theme
--- /dev/null
+[tox]
+minversion = 1.6
+envlist =
+ docs,
+ docs-linkcheck
+skipsdist = true
+
+[testenv:docs]
+deps = -rdocs/requirements.txt
+commands =
+ sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+ echo "Generated docs available in {toxinidir}/docs/_build/html"
+whitelist_externals = echo
+
+[testenv:docs-linkcheck]
+deps = -rdocs/requirements.txt
+commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck