mkdocs-monorepo-plugin icon indicating copy to clipboard operation
mkdocs-monorepo-plugin copied to clipboard

Question about navigation

Open shinji62 opened this issue 3 years ago • 2 comments

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

shinji62 avatar Dec 23 '21 04:12 shinji62

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'

wilhelmer avatar Jan 06 '22 15:01 wilhelmer

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.

iamEAP avatar Jan 07 '22 15:01 iamEAP