Skip to content

Nesting multiple navigation levels #3547

Answered by kamilkrzyskow
rmscode asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @rmscode,
your third example shows a section nested in a page:

      - hardware/dell-emc/dell-emc.md
        - S4048-ON: # <-- Not allowed here

so this isn't allowed. Only sections can have subsections. Pages can't be sections at the same time.
mkdocs-material plugin uses a trick and allows to merge index pages into the section in the navigation, but this still wouldn't let you use the example provided: https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages

Remove a bit of the indentation from - S4048-ON: so it has the same indentation level as - hardware/dell-emc/dell-emc.md and adjust the rest of the entries.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kamilkrzyskow
Comment options

@rmscode
Comment options

Answer selected by rmscode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants