From 684b036877f09b7d04271c97bf4b1de2ef54a9ad Mon Sep 17 00:00:00 2001 From: Eric Wolf Date: Fri, 15 Dec 2023 23:49:14 +0100 Subject: [PATCH] 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. --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 75335fc..3256fba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]