diff options
author | Georg Kunz <georg.kunz@ericsson.com> | 2018-09-06 10:45:01 +0200 |
---|---|---|
committer | Georg Kunz <georg.kunz@ericsson.com> | 2018-09-17 12:30:25 +0200 |
commit | a18e2b0d45c631709e457530f6f9d0b52f552156 (patch) | |
tree | f66ee65b5293d9279270970c1d27f94e8fac7aca /tox.ini | |
parent | 60f1c35c294d5d94a862db348315f8f3b9f870ba (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>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -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 |