Skip to content

Commit

Permalink
Add more Sphinx builders
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Nov 17, 2023
1 parent 3c79bb5 commit ddc9af3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def _load_theme(
'sphinx.ext.autodoc',
'sphinx.ext.autodoc.typehints',
'sphinx_rtd_theme',
"sphinx.ext.doctest",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ python = ["3.9", "3.11"]
dependencies = ["tmt[docs]"]

[tool.hatch.envs.docs.scripts]
html = "make -C {root}/docs html"
html = "sphinx-build -b html {root}/docs {root}/docs/_build"
linkcheck = "sphinx-build -b linkcheck {root}/docs {root}/docs/_build"
doctest = "sphinx-build -b doctest {root}/docs {root}/docs/_build"
man = [
"cp {root}/docs/header.txt {root}/man.rst",
"tail -n+8 docs/overview.rst >> {root}/man.rst",
Expand Down

0 comments on commit ddc9af3

Please sign in to comment.