Skip to content

Commit

Permalink
add environment and command for building docs
Browse files Browse the repository at this point in the history
It is not used for building on Read the Docs since
this feature is still in a beta phase.
  • Loading branch information
Deric-W committed Dec 15, 2023
1 parent 48d40a4 commit 684b036
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ release = [
"typecheck"
]

[tool.hatch.envs.docs]
dependencies = [
"sphinx ~= 5.2.0",
"sphinx-pyproject ~= 0.1.0",
"sphinx-rtd-theme ~= 1.0.0"
]

[tool.hatch.envs.docs.scripts]
build = "sphinx-build {args} docs docs/_build"

[tool.hatch.build.targets.sdist]
exclude = ["/.github"]

Expand Down

0 comments on commit 684b036

Please sign in to comment.