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
I would like to request a feature enhancement for the mkdocs-awesome-pages-plugin that allows directory titles in the navigation to be directly clickable and link to a specific Markdown file within that directory.
Current Behavior:
Currently, when using the plugin without defining nav in the mkdocs.yml file, directory titles appear in the navigation, but they are not directly clickable. To achieve a clickable directory title, an index.md file must be added to the directory. However, this approach has limitations:
An index.md file may interfere with existing wikilinks or other internal linking structures.
It results in both the directory title and the specific file (e.g., overview.md) being listed separately in the navigation.
Proposed Feature:
Introduce an option in the .pages file that allows the directory title to be clickable and link directly to a specific Markdown file (like overview.md) within that directory without requiring an index.md file or manually defining the nav in mkdocs.yml.
For example, in the .pages file:
index: overview.md # This would make the "Overview" directoryfiles:
- setup.md
- usage.md
Benefits:
Provides greater flexibility and control over the navigation structure.
Simplifies navigation configuration, particularly for users who rely on the automatic generation of navigation.
Avoids redundant entries and improves usability when organizing content.
I would like the "Overview" title in the navigation to be clickable and link directly to overview.md without needing an index.md file and without explicitly defining the nav in mkdocs.yml.
The text was updated successfully, but these errors were encountered:
To achieve a clickable directory title, an index.md file must be added to the directory.
That's not actually the default behavior of MkDocs, are you using mkdocs-material and have navigation.indexes turned on by any chance?
In any case, I'm afraid such a feature is out of scope for this plugin. Changing what happens when you click a section depends on the theme and this plugin is purely about creating the navigation structure.
As mentioned above, mkdocs-materialhas an option to make section headers navigate to the index page, but as far as I can tell it only works with index.md.
Description:
I would like to request a feature enhancement for the
mkdocs-awesome-pages-plugin
that allows directory titles in the navigation to be directly clickable and link to a specific Markdown file within that directory.Current Behavior:
Currently, when using the plugin without defining
nav
in themkdocs.yml
file, directory titles appear in the navigation, but they are not directly clickable. To achieve a clickable directory title, anindex.md
file must be added to the directory. However, this approach has limitations:index.md
file may interfere with existing wikilinks or other internal linking structures.overview.md
) being listed separately in the navigation.Proposed Feature:
Introduce an option in the
.pages
file that allows the directory title to be clickable and link directly to a specific Markdown file (likeoverview.md
) within that directory without requiring anindex.md
file or manually defining thenav
inmkdocs.yml
.For example, in the
.pages
file:Benefits:
Use Case Example:
Given a structure like:
I would like the "Overview" title in the navigation to be clickable and link directly to
overview.md
without needing anindex.md
file and without explicitly defining the nav inmkdocs.yml
.The text was updated successfully, but these errors were encountered: