X-Git-Url: https://gerrit.onap.org/r/gitweb?p=doc.git;a=blobdiff_plain;f=tox.ini;h=d4352d3034ec9f3c64e3ca1b60bf9db5b908f9c4;hp=a3520183c101ce8121412f37781c9f5a5bc28d0b;hb=21e9ae3affa5621698b299f1b20a323a2e19f423;hpb=2c3fb536d9b52dae5466f64aeeb7cb903f608328 diff --git a/tox.ini b/tox.ini index a3520183c..d4352d303 100644 --- a/tox.ini +++ b/tox.ini @@ -1,25 +1,44 @@ [tox] minversion = 1.6 -envlist = docs +envlist = docs, +# docs-linkcheck, + skipsdist = true [testenv:docs] +basepython = python3 deps = -r{toxinidir}/etc/requirements.txt commands = - sphinx-build -j 4 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + 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 +whitelist_externals = + echo + git + sh [testenv:local] +basepython = python3 deps = -r{toxinidir}/etc/requirements.txt commands = - git submodule update --depth 1 --init - sphinx-build -j 4 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + git submodule update --depth 100 --init + 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 git [testenv:docs-linkcheck] +basepython = python3 deps = -r{toxinidir}/etc/requirements.txt -commands = sphinx-build -j 4 -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck +commands = echo "Link Checking not enforced" +#commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck +whitelist_externals = + echo + +[testenv:spellcheck] +basepython = python3 +deps = + -r{toxinidir}/etc/requirements.txt + sphinxcontrib-spelling +commands = + sphinx-build -b spelling -Dextensions=sphinxcontrib.spelling -Dspelling_word_list_filename=validwords.txt -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spellcheck