From afb3add52e2483a13686f99bc4bc495712c24729 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Fri, 5 May 2023 15:11:27 -0400 Subject: [PATCH] Use `.readthedocs.yaml` file to install pynidm in RTD environment --- .readthedocs.yaml | 14 ++++++++++++++ docs/requirements.txt | 2 ++ tox.ini | 4 +--- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .readthedocs.yaml create mode 100644 docs/requirements.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..bd412f8 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,14 @@ +version: 2 +formats: all +python: + install: + - requirements: docs/requirements.txt + - method: pip + path: . +build: + os: ubuntu-22.04 + tools: + python: "3" +sphinx: + configuration: docs/source/conf.py + fail_on_warning: true diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000..6b104fb --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,2 @@ +Sphinx +sphinx-rtd-theme diff --git a/tox.ini b/tox.ini index d0d6444..aefe85d 100644 --- a/tox.ini +++ b/tox.ini @@ -21,9 +21,7 @@ commands = [testenv:docs] basepython = python3 -deps = - Sphinx - sphinx-rtd-theme +deps = -rdocs/requirements.txt changedir = docs commands = sphinx-build -E -W -b html source build