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 about navigation #65

Open
shinji62 opened this issue Dec 23, 2021 · 2 comments
Open

Question about navigation #65

shinji62 opened this issue Dec 23, 2021 · 2 comments

Comments

@shinji62
Copy link

shinji62 commented Dec 23, 2021

Hello there,

First thanks for this incredibly useful plugin, I have a question related to navigation

1- Can we setup the navigations tabs by subdirectory ? if yes how ?

Thanks
cc @iamEAP @wilhelmer

@wilhelmer
Copy link
Contributor

Not sure what you mean, do you need this to be done automatically? E.g., you create subdir1, subdir2, and subdir3, and they automatically appear as navigation tabs? I don't think that's possible.

However, you can easily define that manually in your mkdocs.yml:

nav:
    - Home:
        - Tab 1: '!include ./subdir1/mkdocs.yml'
        - Tab 2: '!include ./subdir2/mkdocs.yml'

@iamEAP
Copy link
Member

iamEAP commented Jan 7, 2022

This proposal is kind of close: #67 ...But it's more about the next layer down than the top-level navigation.

I'm not aware of a way to auto-generate an entire navigation by directory; I'd echo Lars' response.

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

3 participants