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

Multilevel side-menu #178

Closed
VladimirChumack opened this issue Mar 22, 2023 · 4 comments
Closed

Multilevel side-menu #178

VladimirChumack opened this issue Mar 22, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@VladimirChumack
Copy link

VladimirChumack commented Mar 22, 2023

Is your feature request related to a problem? Please describe.

I am working on a documentation site for multiple products (more than 2000 pages in total)

Describe the solution you'd like

I want to create a side menu for every product like

└── product
├── folder 1
│ ├── subfolder 1
│ ├── subfolder 2
│ └── subfolder 3
├── folder 2

Folders and subfolders may have multiple pages and subfolders

I have tried modifying the menu yaml file without any luck

  • title: Product 1
    • title: Title1
      pages:
      • title: Introduction
      • title: Requirements
    • title: Title2
      pages:
      • title: Page 1
      • title: Page 2

Thank you

@VladimirChumack VladimirChumack added the enhancement New feature or request label Mar 22, 2023
@markdumay
Copy link
Collaborator

I released v0.11.1 with support for nested menus. You can define nesting in the following way:

- title: A
  pages:
    - title: B
      pages:
        - title: C
          pages:
            - title: First
            - title: Second
            - title: Third

There might be still a few bugs to iron out. Looking forward to your feedback!

@VladimirChumack
Copy link
Author

Thank you. That will help us a lot

@markdumay markdumay self-assigned this Apr 5, 2023
@markdumay
Copy link
Collaborator

I published a new release v0.11.2. The sidebar documentation has been updated too. The following changes have been made:

  • Content pages no longer need a group parameter in their front matter
  • Sections now support optional versioning

@markdumay
Copy link
Collaborator

I'll close the issue for now. Feel free to re-open it in case you encounter any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants