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

index.md in subfolders to be the default link in a nested navigation #2217

Closed
emmaindal opened this issue Oct 26, 2020 · 1 comment
Closed

Comments

@emmaindal
Copy link

I have a nav structure like this in my mkdocs.yml

nav:
   - non nested nav item: test.md
   - nested nav item: 
          - test: subfolder/test.md
          - test2: subfolder/test2.md

In my subfolder I have a index.md file. I want that page to be the default link for the "nested nav item" but instead that nav item is not clickable, but rather just responsible for expanding the nested sub nav. And I can not make the "nested nav item" a link since that will be invalid YAML.

Would like to hear thoughts, ideas, solutions to my problem here. Thanks!

@waylan
Copy link
Member

waylan commented Oct 28, 2020

This is a duplicate of #73 and many other issues. Note that an attempt was made to modify the builtin themes to support this in #1042 but it was rejected for the reasons stated there (in short, the UI doesn't work with the existing themes). However, it could certainly be adopted by a third party theme. The basics of how to make it work are described here.

As no modification to MkDocs are necessary for this to work, I'm closing this.

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