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

Possible to collapse to a custom heading? #121

Open
Austin1 opened this issue Feb 25, 2025 · 1 comment
Open

Possible to collapse to a custom heading? #121

Austin1 opened this issue Feb 25, 2025 · 1 comment

Comments

@Austin1
Copy link

Austin1 commented Feb 25, 2025

Using the first demo example - is it possible for "More Resources" to be collapsed by default?

nav:
  - getting-started.md 
  - guides 
  - More Resources: 
    - "*" 
    - MkDocs: https://mkdocs.org
    - Google: https://google.com

E.g., I want to collapse "More Resources:" section and when pressed it would then show the sub pages. I think this is proabbly totally outside the scope of this nav feature but figured I'd checkto make sure I wasn't missing something.

@lukasgeiter
Copy link
Owner

This is indeed outside the scope of this plugin. The theme decides how to render the navigation and how collapsing behaves.

That said, assuming you use mkdocs-material (because most people do), this should actually be the default. There's actually an option to expand sections by default.

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