Skip to content

Commit 684b036

Browse files
committed
add environment and command for building docs
It is not used for building on Read the Docs since this feature is still in a beta phase.
1 parent 48d40a4 commit 684b036

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ release = [
6969
"typecheck"
7070
]
7171

72+
[tool.hatch.envs.docs]
73+
dependencies = [
74+
"sphinx ~= 5.2.0",
75+
"sphinx-pyproject ~= 0.1.0",
76+
"sphinx-rtd-theme ~= 1.0.0"
77+
]
78+
79+
[tool.hatch.envs.docs.scripts]
80+
build = "sphinx-build {args} docs docs/_build"
81+
7282
[tool.hatch.build.targets.sdist]
7383
exclude = ["/.github"]
7484

0 commit comments

Comments
 (0)