summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@ericsson.com>2018-09-06 10:45:01 +0200
committerDan Xu <xudan16@huawei.com>2018-09-18 03:02:17 +0000
commit16e36edaec487300f1dd154110077d499bf7726e (patch)
treef66ee65b5293d9279270970c1d27f94e8fac7aca /tox.ini
parent01aecb7063ca10bb68a454bf3f324ea1f41b958f (diff)
Adapting local docs build and remove build warnings
The OPNFV docs project will remove its submodules and enable local docs builds. This patch prepares the Dovetail repo according to the official transition guide: https://docs.opnfv.org/en/latest/how-to-use-docs/local-build-transition.html This patch also applies syntactical changes which eliminate the sphinx doc build warnings. Change-Id: Ief8fd2d1c3e39b232d214a9ab392879ee4a492c8 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com> (cherry picked from commit a18e2b0d45c631709e457530f6f9d0b52f552156)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini16
1 files changed, 11 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index 9b94ee72..55a9e847 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,11 @@
[tox]
minversion = 2.5
skipsdist = True
-envlist = pep8,py27
+envlist =
+ pep8,
+ py27,
+ docs,
+ docs-linkcheck
[testenv]
basepython=python2
@@ -34,10 +38,12 @@ ignore = E123,E125,H803,E722
exclude = .tox,dist,docs,*egg,build,.venv,.git
[testenv:docs]
+deps = -rdocs/requirements.txt
commands =
- touch ./docs/index.rst
- - wget -q -nc https://raw.githubusercontent.com/opnfv/opnfvdocs/master/etc/requirements.txt -O ./docs/requirements.txt
- pip install -r ./docs/requirements.txt
- pip install sphinx_opnfv_theme
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