From ddc9af3602d77de5d963ca157ea8846248a96c8b Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Fri, 17 Nov 2023 16:36:59 +0100 Subject: [PATCH] Add more Sphinx builders Signed-off-by: Cristian Le --- docs/conf.py | 1 + pyproject.toml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index a5fd53e08b..558096e278 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/pyproject.toml b/pyproject.toml index 6d7f40458c..b32dfc9b33 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",