From 2479af21f6694b07ead68b40e1082ccde760d957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 21 Sep 2023 15:40:44 +0200 Subject: [PATCH] doc: samples: Fix incorrect maxdepth for some toctrees MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The table of contents for the samples' catalog was showing too many levels for some sections. Signed-off-by: Benjamin Cabé --- samples/index.rst | 1 + samples/modules/index.rst | 3 ++- samples/subsys/portability/portability.rst | 2 +- samples/subsys/subsys.rst | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/samples/index.rst b/samples/index.rst index 0ba36eeaeb..8581a330d4 100644 --- a/samples/index.rst +++ b/samples/index.rst @@ -5,6 +5,7 @@ Samples and Demos .. toctree:: + :titlesonly: :maxdepth: 2 :glob: diff --git a/samples/modules/index.rst b/samples/modules/index.rst index 79828d002a..5316bb6e24 100644 --- a/samples/modules/index.rst +++ b/samples/modules/index.rst @@ -4,7 +4,8 @@ External Module Samples ####################### .. toctree:: - :maxdepth: 2 + :titlesonly: + :maxdepth: 1 :glob: **/* diff --git a/samples/subsys/portability/portability.rst b/samples/subsys/portability/portability.rst index 1be238d794..b47ee35edc 100644 --- a/samples/subsys/portability/portability.rst +++ b/samples/subsys/portability/portability.rst @@ -4,7 +4,7 @@ Portability Samples ################### .. toctree:: - :maxdepth: 2 + :maxdepth: 1 :glob: **/* diff --git a/samples/subsys/subsys.rst b/samples/subsys/subsys.rst index 0ea09d7a7d..bf58c7dda6 100644 --- a/samples/subsys/subsys.rst +++ b/samples/subsys/subsys.rst @@ -4,6 +4,7 @@ Various Subsystems Samples ########################## .. toctree:: + :titlesonly: :maxdepth: 2 :glob: