Skip to content

Commit 25d014a

Browse files
committed
Switch to docs/requirements.txt file
1 parent d68290c commit 25d014a

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ build:
55
tools:
66
python: "3.11"
77

8-
sphinx:
9-
configuration: docs/conf.py
10-
118
python:
129
install:
10+
- requirements: docs/requirements.txt
1311
- method: pip
1412
path: .
1513
extra_requirements:
1614
- develop
15+
16+
sphinx:
17+
fail_on_warning: true

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

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def lint(session):
7373

7474
@nox.session()
7575
def docs(session):
76+
session.install("-r", "docs/requirements.txt")
7677
session.install(".[develop]")
7778

78-
session.run("sphinx-build", "docs/", "docs/_build", "-b", "html")
79+
session.run("sphinx-build", "docs/", "docs/_build", "-b", "html", "-W")

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
"pytest-mock",
3939
"pytz",
4040
"coverage",
41-
"sphinx>5",
42-
"sphinx-rtd-theme>=1.3.0",
4341
]
4442

4543
setup(

0 commit comments

Comments
 (0)