Skip to content

Commit defe461

Browse files
committed
Add a .readthedocs.yml file
1 parent 85c977f commit defe461

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.readthedocs.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
formats: all
3+
sphinx:
4+
configuration: docs/conf.py
5+
fail_on_warning: true
6+
7+
build:
8+
os: ubuntu-20.04
9+
tools:
10+
# For available versions, see:
11+
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
12+
python: "3.12" # Keep in sync with .github/workflows/main.yml
13+
14+
python:
15+
install:
16+
- requirements: docs/requirements.txt
17+
- path: .

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Sphinx
2+
sphinx_rtd_theme

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ commands =
3838
[docs]
3939
changedir = docs
4040
deps =
41-
Sphinx
42-
sphinx_rtd_theme
41+
-rdocs/requirements.txt
4342

4443
[testenv:docs]
4544
changedir = {[docs]changedir}

0 commit comments

Comments
 (0)