You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
smart section titles when no navigation is configured #3356
Given no navigation tree is defined in the configuration, the section titles for sub-directories should be determined by the following logic:
if an index page is defined, use the title of the index page, hereby the title from the meta data of the index page should be prefered to the title from the markdown in order to allow using a different title than the actual page title for the navigation menu.
If no index page is defined, keep the logic "as-is".
The user should be able to turn on/off this behaviour by a configuration option, e.g.
Activity
smart section titles. mkdocs#3356.
zinizhu commentedon Sep 6, 2023
+1 to this feature, the default section titles are not ideal, it's also hard to sort the directory order.
lovelydinosaur commentedon Apr 15, 2024
Perhaps you could provide a short example?
realtimeprojects commentedon Apr 20, 2024
This repository contains a simple example:
https://github.com/realtimeprojects/mkdocs-sample/tree/master
This is how the page looks like at the moment:
Given the feature
smart_section_titlesis enabled, the page should look like this:realtimeprojects commentedon Apr 20, 2024
Here is the PR with a basic implementation:
#3656
oprypin commentedon Apr 20, 2024
oprypin commentedon Apr 20, 2024
fix: only use index page titles for auto-generated nav sections
Use index page titles for auto-generated section names (#54)