Skip to content

Commit 0916a88

Browse files
hanzjlupyuen
authored andcommitted
docs: Fix duplicate toctree references causing build warnings
Several documentation files are referenced in multiple toctrees, causing Sphinx build warnings like: document is referenced in multiple toctrees: [...], selecting: [...] Fix by narrowing glob patterns in parent toctrees to only match subdirectory index files, and replacing a toctree directive with a :doc: cross-reference: - platforms/arm/index.rst: glob */* -> */index - platforms/index.rst: glob */* -> */index - guides/changing_systemclockconfig.rst: toctree -> :doc: ref Fixes #14785 Signed-off-by: hanzj <hanzj@xiaomi.com>
1 parent 8952130 commit 0916a88

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Documentation/guides/changing_systemclockconfig.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,4 @@ recalculate their frequency related settings.
166166

167167
Here is some Power Management documentation:
168168

169-
.. toctree::
170-
:maxdepth: 1
171-
172-
/components/drivers/special/power/pm/index.rst
169+
- :doc:`/components/drivers/special/power/pm/index`

Documentation/platforms/arm/goldfish/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ GOLDFISH
66
:maxdepth: 1
77

88
goldfish_timer.rst
9+
goldfish_sensor.rst
910

1011
Supported Boards
1112
================

Documentation/platforms/arm/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ The following ARM SoC are supported:
88
:maxdepth: 1
99
:glob:
1010

11-
*/*
11+
*/index
12+

Documentation/platforms/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ series and boards supported in NuttX:
1212
:maxdepth: 3
1313
:titlesonly:
1414

15-
*/*
15+
*/index
16+

0 commit comments

Comments
 (0)