Skip to content

Commit

Permalink
setting up docs installation via pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Feb 15, 2024
1 parent c72acfa commit 0c6a663
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ version: 2
build:
os: "ubuntu-20.04"
tools:
python: "3.11"
python: "3.12"

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: docs/rtd-requirements.txt
- method: pip
path: .
extra_requirements:
- docs
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ pre-commit = {version = "*", optional = true}
pytest = {version = "*", optional = true}
ruff = {version = ">=0.2.0", optional = true}
sphinx = {version = "*", optional = true}
sphinx-rtd-theme = {version = "*", optional = true}
tox = {version = "*", optional = true}

[tool.poetry.extras]
Expand All @@ -191,9 +192,14 @@ dev = [
"pytest",
"ruff",
"sphinx",
"sphinx-rtd-theme",
"tox",
]
test = [
"coverage",
"pytest",
]
docs = [
"sphinx",
"sphinx-rtd-theme",
]

0 comments on commit 0c6a663

Please sign in to comment.