doc: samples: Fix incorrect maxdepth for some toctrees

The table of contents for the samples' catalog was showing too many
levels for some sections.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2023-09-21 15:40:44 +02:00 committed by Carles Cufí
parent 7a6f251edb
commit 2479af21f6
4 changed files with 5 additions and 2 deletions

View file

@ -5,6 +5,7 @@ Samples and Demos
.. toctree:: .. toctree::
:titlesonly:
:maxdepth: 2 :maxdepth: 2
:glob: :glob:

View file

@ -4,7 +4,8 @@ External Module Samples
####################### #######################
.. toctree:: .. toctree::
:maxdepth: 2 :titlesonly:
:maxdepth: 1
:glob: :glob:
**/* **/*

View file

@ -4,7 +4,7 @@ Portability Samples
################### ###################
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 1
:glob: :glob:
**/* **/*

View file

@ -4,6 +4,7 @@ Various Subsystems Samples
########################## ##########################
.. toctree:: .. toctree::
:titlesonly:
:maxdepth: 2 :maxdepth: 2
:glob: :glob: