-
I am using MkDocs with the Material theme. In The entries in the sidebar are built from the filenames of the Markdown files and do not match the first Markdown heading used in these files. I would like to have the first heading in each md file used as entry in the navigation bar. And please not just another plugin. It is a simple task. I really hope that this is material-inbuild. Material itself is a plugin. I don't want to use a plugin for a plugin. I just want to use MkDocs. ❤️ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Is your first heading a level one heading? The construction of the navigation is done by MkDocs. Material is a theme for MkDocs, though it does come with a very nice set of plugins. There are limits to what it can do while staying within the boundaries MkDocs defines and the handling of titles and navigation and page titles is one of them. |
Beta Was this translation helpful? Give feedback.
-
I think there is a misconception here. Material for MkDocs is not a plugin, but a theme that bundles further plugins. The navigation itself is built by MkDocs, the underlying framework. Thus, this must be taken upstream, as navigation title extraction is not something that is theme-dependent – themes only render what they get, as do we. Closing as upstream matter. |
Beta Was this translation helpful? Give feedback.
I think there is a misconception here. Material for MkDocs is not a plugin, but a theme that bundles further plugins. The navigation itself is built by MkDocs, the underlying framework. Thus, this must be taken upstream, as navigation title extraction is not something that is theme-dependent – themes only render what they get, as do we. Closing as upstream matter.