diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000..5ff506f --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,14 @@ +# .readthedocs.yml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +sphinx: + configuration: docs/conf.py + +python: + version: 3.7 + install: + - requirements: docs/requirements.txt diff --git a/tox.ini b/tox.ini index 76daa14..c9063f6 100644 --- a/tox.ini +++ b/tox.ini @@ -50,10 +50,12 @@ max-line-length = 120 exclude = build, dist, .tox, .github, *.egg, docs [testenv:docs] +basepython = python3 deps = -rdocs/requirements.txt commands = sphinx-build -W -n -b html -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/html [testenv:docs-linkcheck] +basepython = python3 deps = {[testenv:docs]deps} commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/linkcheck