Skip to content

Commit 2dfd95a

Browse files
authored
Use new .readthedocs.yml rather than manual pip invocation (ev3dev#729)
It seems that RTD is no longer seeing the installed modules with the way we used to do it.
1 parent 57ab7f0 commit 2dfd95a

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.readthedocs.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
3+
# Build documentation in the docs/ directory with Sphinx
4+
sphinx:
5+
configuration: docs/conf.py
6+
7+
formats: all
8+
9+
python:
10+
version: 3.7
11+
install:
12+
- requirements: docs/requirements.txt

docs/conf.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
2424
from git_version import git_version # noqa: E402
2525

26-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
27-
28-
if on_rtd:
29-
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'sphinx_bootstrap_theme', 'recommonmark', 'evdev'])
30-
3126
# If extensions (or modules to document with autodoc) are in another directory,
3227
# add these directories to sys.path here. If the directory is relative to the
3328
# documentation root, use os.path.abspath to make it absolute, like shown here.

docs/requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
docutils==0.14
1+
docutils==0.14
2+
sphinx_bootstrap_theme
3+
recommonmark
4+
evdev

0 commit comments

Comments
 (0)