Skip to content

Add Support for Subcategories in Guide#84

Open
ElijahAhianyo wants to merge 5 commits intocot-rs:masterfrom
ElijahAhianyo:elijah/sub-categories
Open

Add Support for Subcategories in Guide#84
ElijahAhianyo wants to merge 5 commits intocot-rs:masterfrom
ElijahAhianyo:elijah/sub-categories

Conversation

@ElijahAhianyo
Copy link
Copy Markdown
Contributor

@ElijahAhianyo ElijahAhianyo commented Apr 2, 2026

With this you should be able to add nested subcategories like this:

vec![
    GuideItem::Page(md_page!("v0.2", "introduction")),
    GuideItem::SubCategory {
      title: "Database",
      pages: vec![
         md_page!("databases/overview"),
         md_page!("databases/queries"),
      ],
   },
],

Refer to the sidebar in this image(cot-rs/cot#515 (comment)) on how this renders

@ElijahAhianyo
Copy link
Copy Markdown
Contributor Author

Depends on #82

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

Successfully merging this pull request may close these issues.

1 participant