TOC/Navigation Depth #5801
-
First off, let me say I love MkDocs and the Material framework. It's really made my life a whole lot easier. That said, I've been trying to get TOC depth (or navigation depth) to work in my Material MkDocs project, but don't seem to be getting far. I would like to limit the number of headers shown in the TOC/sidebar navigation, but using the below (as suggested by MkDocs) does not seem to do the trick.
Does anyone know how I can limit the number of headers in the sidebar navigation to only show level 1 to 3? For reference, this is (part of) my config:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks! If I understand correctly, your exact use case is mentioned in our documentation: markdown_extensions:
- toc:
toc_depth: 3 We'll be reworking our documentation to make it more apparent. |
Beta Was this translation helpful? Give feedback.
Thanks! If I understand correctly, your exact use case is mentioned in our documentation:
We'll be reworking our documentation to make it more apparent.