Skip to content

Commit

Permalink
Migrate rtd docs to python3
Browse files Browse the repository at this point in the history
RTD builds have been failing on python2 since the required version
sphinx is not found in lftools-conf. Moving to python3 resolves the
issue.

Signed-off-by: Anil Belur <[email protected]>
Change-Id: I4094a2b704a9e2b5b5cc9882550a4e7c14169732
Signed-off-by: Anil Belur <[email protected]>
  • Loading branch information
askb committed Mar 1, 2020
1 parent 98e0392 commit 939531b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 939531b

Please sign in to comment.