From: Anil Belur Date: Sun, 1 Mar 2020 03:44:19 +0000 (+1000) Subject: Migrate rtd docs to python3 X-Git-Tag: 2.0.0~178^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=commitdiff_plain;h=refs%2Fchanges%2F81%2F88181%2F1 Migrate rtd docs to python3 RTD builds have been failing on python2 since the required version sphinx is not found in lftools-conf. Migrate to python3 resolves the issue. Signed-off-by: Anil Belur Change-Id: I48ecbff0a5498f12c0511d6fce2bbd0ed58d1c3f --- diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 000000000..5ff506fb9 --- /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 1ca5c9c4f..325dc7d09 100644 --- a/tox.ini +++ b/tox.ini @@ -53,11 +53,13 @@ commands = {gnpy}: - sudo docker container rm -f gnpy_tpce_rest1 [testenv:docs] +basepython = python3 deps = -rdocs/requirements.txt commands = sphinx-build -W -b html -n -d {envtmpdir}/doctrees ../docs/ {toxinidir}/docs/_build/html [testenv:docs-linkcheck] +basepython = python3 deps = -rdocs/requirements.txt commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ../docs/ {toxinidir}/docs/_build/linkcheck