lukasgeiter / mkdocs-awesome-pages-plugin

An MkDocs plugin that simplifies configuring page titles and their order
MIT License
452 stars 35 forks source link

Feature request : Standalone Navigation for sub sections #67

Open Noobzik opened 1 year ago

Noobzik commented 1 year ago
docs
|______ index.md
|______ subdir/
              |_____ index.md
              |_____ subsubdir/
                           |_____ index.md
                           |_____ ....
|______ Teachings/
              |_____ .pages
              |_____ index.md
              |_____ CoursTAI/
                           |_____ .pages
                           |_____ index.md
                           |_____ ....
                           |_____ subsubdir222/
              |_____ SQL/
                           |_____ .pages
                           |_____ index.md
                           |_____ ....
                           |_____ subsubdir222/
                                       |_____ index.md
                                       |_____ ....

What I am trying to achieve : I want to create a sub-directory with it's own navigation that doesn't show other upper section navigation

In example: The navigation for CoursTAI should only include all pages under CoursTAI Teaching and SQL should not be visible

image

lukasgeiter commented 1 year ago

What should happen to the tabs at the top? Those are part of the navigation as well.

Also am I correct in assuming that when the user is on the SQL page, CoursTAI should not be visible in the navigation?

Noobzik commented 1 year ago

Also am I correct in assuming that when the user is on the SQL page, CoursTAI should not be visible in the navigation?

Yes, when the user is on the SQL page, CoursTAI should not be visible.

What should happen to the tabs at the top?

Anything related to CoursTAI, SQL... will not be shown at the tabs on the top

Actually, I used an custom tabs nav with .pages.

Based on the example, this is the content of my .pages located at docs folder

nav:
    - Home: index.md
    - know-me
    - Teachings
    - Projects