Skip to content

Commit

Permalink
Use new .readthedocs.yml rather than manual pip invocation (#729)
Browse files Browse the repository at this point in the history
It seems that RTD is no longer seeing the installed modules with the way we used to do it.
  • Loading branch information
WasabiFan authored Mar 23, 2020
1 parent 57ab7f0 commit 2dfd95a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

formats: all

python:
version: 3.7
install:
- requirements: docs/requirements.txt
5 changes: 0 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from git_version import git_version # noqa: E402

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if on_rtd:
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'sphinx_bootstrap_theme', 'recommonmark', 'evdev'])

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
docutils==0.14
docutils==0.14
sphinx_bootstrap_theme
recommonmark
evdev

0 comments on commit 2dfd95a

Please sign in to comment.