blob: d4352d3034ec9f3c64e3ca1b60bf9db5b908f9c4 [file] [log] [blame]
Rich Bennett22ef0852017-07-19 18:05:55 -04001[tox]
2minversion = 1.6
Aric Gardnerdd7413d2020-02-05 13:15:34 -05003envlist = docs,
4# docs-linkcheck,
5
Rich Bennett22ef0852017-07-19 18:05:55 -04006skipsdist = true
7
8[testenv:docs]
mrichommeeb7de502019-11-29 11:11:27 +01009basepython = python3
Aric Gardnerdd7413d2020-02-05 13:15:34 -050010deps = -r{toxinidir}/etc/requirements.txt
Rich Bennett22ef0852017-07-19 18:05:55 -040011commands =
mrichomme4de8b082019-11-29 15:14:23 +010012 sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
Rich Bennett22ef0852017-07-19 18:05:55 -040013 echo "Generated docs available in {toxinidir}/docs/_build/html"
Rich Bennett169c1342018-11-02 06:47:43 -040014whitelist_externals =
15 echo
16 git
17 sh
Rich Bennett22ef0852017-07-19 18:05:55 -040018
Cédric Ollivier268209c2017-11-10 11:31:53 +010019[testenv:local]
mrichommeeb7de502019-11-29 11:11:27 +010020basepython = python3
Aric Gardnerdd7413d2020-02-05 13:15:34 -050021deps = -r{toxinidir}/etc/requirements.txt
Cédric Ollivier268209c2017-11-10 11:31:53 +010022commands =
Hagop Bozawglanian4cc3e882019-09-04 21:17:28 +000023 git submodule update --depth 100 --init
mrichomme4de8b082019-11-29 15:14:23 +010024 sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
Cédric Ollivier268209c2017-11-10 11:31:53 +010025 echo "Generated docs available in {toxinidir}/docs/_build/html"
26whitelist_externals =
27 echo
28 git
29
Aric Gardnerdd7413d2020-02-05 13:15:34 -050030[testenv:docs-linkcheck]
mrichommeeb7de502019-11-29 11:11:27 +010031basepython = python3
Rich Bennett22ef0852017-07-19 18:05:55 -040032deps = -r{toxinidir}/etc/requirements.txt
Aric Gardnerdd7413d2020-02-05 13:15:34 -050033commands = echo "Link Checking not enforced"
34#commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
35whitelist_externals =
36 echo
Rich Bennett9c3af502018-04-26 09:30:57 -040037
38[testenv:spellcheck]
mrichommeeb7de502019-11-29 11:11:27 +010039basepython = python3
Rich Bennett9c3af502018-04-26 09:30:57 -040040deps =
41 -r{toxinidir}/etc/requirements.txt
42 sphinxcontrib-spelling
43commands =
44 sphinx-build -b spelling -Dextensions=sphinxcontrib.spelling -Dspelling_word_list_filename=validwords.txt -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spellcheck