oprypin / mkdocs-section-index

MkDocs plugin to allow clickable sections that lead to an index page
https://oprypin.github.io/mkdocs-section-index
MIT License
74 stars 7 forks source link

The plugin only works for the first level title in the navigation bar #11

Closed garylavayou closed 1 year ago

garylavayou commented 1 year ago

If I use the plugin with the following example,

nav:
    - Home: index.md
    - H1:
          - H2:
                - doc_to_h2.md
                - H3: doc_to_h3.md
                - ...

The H2 title is still not clickable, and the H3 and the following subsections are hided in the navigation bar.

oprypin commented 1 year ago

I think it works at any level, it's just that maybe you're using a theme that doesn't support 3-level nesting. Which both of MkDocs' built-in themes don't.