lukasgeiter / mkdocs-awesome-pages-plugin

An MkDocs plugin that simplifies configuring page titles and their order
MIT License
472 stars 36 forks source link

[Question] Make menu header a page #13

Closed Stanzilla closed 4 years ago

Stanzilla commented 4 years ago

Hey there, I'm currently looking for a way to have clicking a menu header open to a page in addition to expanding the submenu. Any idea how to best do that?

Example:

-index.md
-category: category.md
  - sub-page: sub-page.md
  - sub-page2: sub-page2.md
- category2: category2.md
  - sub-page: sub-page.md
  - sub-page2: sub-page2.md
lukasgeiter commented 4 years ago

This is something that would have to be supported by a theme, because it requires changing how the navigation is rendered.

Here's a discussion about such a feature over at mkdocs-material: squidfunk/mkdocs-material#1008

If you don't find a theme that supports this, the only way to achieve this is probably implementing your own theme (or forking an existing theme and modifying it).

Stanzilla commented 4 years ago

Thank you!