From 9b46d7659982a448f52a3e6c2b47b5fceb60d952 Mon Sep 17 00:00:00 2001 From: Kaelin Laundry Date: Sun, 22 Mar 2020 20:21:49 -0700 Subject: [PATCH] Use new .readthedocs.yml rather than manual pip invocation It seems that RTD is no longer seeing the installed modules with the way we used to do it. --- .readthedocs.yml | 12 ++++++++++++ docs/conf.py | 5 ----- docs/requirements.txt | 5 ++++- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 .readthedocs.yml diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000..75c0d10 --- /dev/null +++ b/.readthedocs.yml @@ -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 \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 6019681..b9e9a8b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/docs/requirements.txt b/docs/requirements.txt index 341fd90..1d58f15 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1 +1,4 @@ -docutils==0.14 \ No newline at end of file +docutils==0.14 +sphinx_bootstrap_theme +recommonmark +evdev \ No newline at end of file