Skip to content

Commit b0b505f

Browse files
authored
Merge pull request #92 from andresdelfino/doc_requirements
Handle doc dependencies via pyproject.toml
2 parents 97d0f2c + da968ce commit b0b505f

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
python-version: '3.10'
1313
- name: Install dependencies
1414
run: |
15-
pip install sphinx sphinx_rtd_theme
15+
python -m pip install --upgrade pip
16+
pip install '.[doc]'
1617
- name: Sphinx build
1718
run: |
1819
sphinx-build -b html docs/source docs/build/html

.readthedocs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ build:
77

88
python:
99
install:
10-
- requirements: docs/requirements.txt
1110
- method: pip
1211
path: .
12+
extra_requirements:
13+
- doc
1314
system_packages: true
1415

1516
sphinx:

docs/requirements.txt

Whitespace-only changes.

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ dev = [
2424
"freezegun==1.5.1",
2525
"pytest==8.2.2",
2626
]
27+
doc = [
28+
"sphinx==7.3.7",
29+
"sphinx_rtd_theme==2.0.0",
30+
]

0 commit comments

Comments
 (0)