Skip to content

Commit

Permalink
Merge pull request #92 from andresdelfino/doc_requirements
Browse files Browse the repository at this point in the history
Handle doc dependencies via pyproject.toml
  • Loading branch information
WinnaZ authored Oct 14, 2024
2 parents 97d0f2c + da968ce commit b0b505f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
python-version: '3.10'
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme
python -m pip install --upgrade pip
pip install '.[doc]'
- name: Sphinx build
run: |
sphinx-build -b html docs/source docs/build/html
Expand Down
3 changes: 2 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ build:

python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- doc
system_packages: true

sphinx:
Expand Down
Empty file removed docs/requirements.txt
Empty file.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ dev = [
"freezegun==1.5.1",
"pytest==8.2.2",
]
doc = [
"sphinx==7.3.7",
"sphinx_rtd_theme==2.0.0",
]

0 comments on commit b0b505f

Please sign in to comment.