Skip to content

Commit 42a0633

Browse files
linawolfjaapio
authored andcommitted
[FEATURE] Handle Global Menu depth independently from toc
If the toctree on the root page is limited to a certain level count, like `:maxdepth: 1` still the complete page tree is displayed in Sphinx. However as not ever project needs a full document tree and the creation of the document tree is time-consuming, an option for the guides.xml, max-menu-depth, was introduced. `max-menu-depth = 0` disables the global menu all together.
1 parent 8074557 commit 42a0633

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/schema/guides.xsd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<xsd:attribute name="theme" type="xsd:string"/>
2929
<xsd:attribute name="default-code-language" type="xsd:string"/>
3030
<xsd:attribute name="links-are-relative" type="xsd:string"/>
31+
<xsd:attribute name="max-menu-depth" type="xsd:int"/>
3132

3233
</xsd:complexType>
3334

0 commit comments

Comments
 (0)