-
Notifications
You must be signed in to change notification settings - Fork 4k
Support site section groups #3664
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
Support site section groups #3664
Conversation
🦋 Changeset detectedLatest commit: 7120605 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for nested site section groups by restructuring the data model from a flat sections
array to a hierarchical children
structure, and updates the UI components to handle multiple levels of nesting in both tab and sidebar list views.
- Refactors site section groups to use
children
instead ofsections
for hierarchical structure - Updates UI components to recursively render nested section groups
- Improves styling for section group tiles with better visual hierarchy
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
packages/gitbook/src/lib/sites.ts | Adds recursive flattening utilities and updates site structure traversal logic |
packages/gitbook/src/components/SiteSections/encodeClientSiteSections.ts | Changes data model from sections to children and adds recursive encoding |
packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx | Updates tab component to handle nested groups with improved styling and layout |
packages/gitbook/src/components/SiteSections/SiteSectionList.tsx | Updates sidebar list to support nested groups with proper indentation |
package.json | Updates @gitbook/api dependency version |
.changeset/fluffy-clouds-tap.md | Adds changeset entry for the feature |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx
Outdated
Show resolved
Hide resolved
packages/gitbook/src/components/SiteSections/SiteSectionList.tsx
Outdated
Show resolved
Hide resolved
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
This PR restyles the site section group items and adds support for multiple section groups within a section group.
Restyle site section group items
Before
After
Improved column support
Before
After

Support nested section groups
In Tabs
Sidebar list also supported