Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Make menu header a page #13

Closed
Stanzilla opened this issue Dec 5, 2019 · 2 comments
Closed

[Question] Make menu header a page #13

Stanzilla opened this issue Dec 5, 2019 · 2 comments

Comments

@Stanzilla
Copy link

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
Copy link
Owner

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
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants