-
Trying to organize the navigation on my website. I would like to organize the order of the tabs on my website (not in alphabetical) but I can't seem to get the syntax right under the nav: section of my mkdocs.yml As shown in the image above I am doing my best to follow the documentation in https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages
I can't get my tabs to load in a specific order and still load navigation column on the left hand side of the page. I can't figure out I the is a syntax problem or if it's simply not supported without an additional plugin? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Even the documentation site has a custom order of the tabs that is not alphabetical but the column nav bar on the left hand side is left in alphabetical order. This is what I would like to achieve. |
Beta Was this translation helpful? Give feedback.
-
What do you mean with "it goes away"? It doesn't host any content? If there's only a single page behind a tab (e.g. for Home), there will be no content, since there's nothing to render. The sidebar only contains the pages that are below the current section/tab. |
Beta Was this translation helpful? Give feedback.
-
Here is the finished product of the formatting that you need to use with the nav: section of your mkdocs.yml to get everything working as intended.
|
Beta Was this translation helpful? Give feedback.
-
what if i'd just want to organize the top level navigation, and not write the full hierarchy of pages into mkdocs.yml ? bur i fear things get complex to maintain a site with core features delegated to external plugins.... |
Beta Was this translation helpful? Give feedback.
Here is the finished product of the formatting that you need to use with the nav: section of your mkdocs.yml to get everything working as intended.