diff options
-rw-r--r-- | .readthedocs.yaml | 3 | ||||
-rw-r--r-- | docs/tox.ini | 44 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 55bc765b1..f35ca0461 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -17,5 +17,8 @@ python: install: - requirements: etc/requirements.txt +submodules: + include: all + sphinx: configuration: docs/conf.py diff --git a/docs/tox.ini b/docs/tox.ini new file mode 100644 index 000000000..9d8bf531a --- /dev/null +++ b/docs/tox.ini @@ -0,0 +1,44 @@ +[tox] +minversion = 1.6 +envlist = docs, +# docs-linkcheck, + +skipsdist = true + +[testenv:docs] +basepython = python3 +deps = -r{toxinidir}/../etc/requirements.txt +commands = + sphinx-build -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html + echo "Generated docs available in {toxinidir}/docs/_build/html" +whitelist_externals = + echo + git + sh + +[testenv:local] +basepython = python3 +deps = -r{toxinidir}/../etc/requirements.txt +commands = + git submodule update --depth 100 --init + sphinx-build -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html + echo "Generated docs available in {toxinidir}/_build/html" +whitelist_externals = + echo + git + +[testenv:docs-linkcheck] +basepython = python3 +deps = -r{toxinidir}/../etc/requirements.txt +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 ./ {toxinidir}/_build/spellcheck |