From eaeba9a0b0adb0dd7fb994f3ea78eddc25bc2faf Mon Sep 17 00:00:00 2001 From: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon, 19 Dec 2022 15:04:22 +0100 Subject: [PATCH] docs: Include module indices only when building standalone package doc In order to remove warnings about /apidoc/*.rst files being included multiple times in toc when building full swh documentation, prefer to include module indices only when building standalone package documentation. Also include them the proper sphinx way. Related to T4496 --- docs/index.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 8ad09ac0..23ef1e45 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -12,4 +12,12 @@ Implementation of the :ref:`data-model` to archive source code artifacts. data-model persistent-identifiers cli - /apidoc/swh.model + +.. only:: standalone_package_doc + + Indices and tables + ------------------ + + * :ref:`genindex` + * :ref:`modindex` + * :ref:`search` -- GitLab