Skip to content

Conversation

@codyde
Copy link
Contributor

@codyde codyde commented Nov 10, 2025

  • Add section_end_divider frontmatter field
  • Add SidebarSeparator component to render horizontal dividers
  • Add separator styles (.sidebar-separator)
  • Update dynamicNav to render separators after items with section_end_divider
  • Update platformSidebar to map section_end_divider from frontmatter

This allows documentation pages to add visual separators in the sidebar by setting section_end_divider: true in their frontmatter, helping to visually group related navigation sections.

CleanShot 2025-11-09 at 10  00 46@2x

- Add section_end_divider frontmatter field
- Add SidebarSeparator component to render horizontal dividers
- Add separator styles (.sidebar-separator)
- Update dynamicNav to render separators after items with section_end_divider
- Update platformSidebar to map section_end_divider from frontmatter

This allows documentation pages to add visual separators in the sidebar
by setting section_end_divider: true in their frontmatter, helping to
visually group related navigation sections.
@vercel
Copy link

vercel bot commented Nov 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
develop-docs Ready Ready Preview Comment Nov 10, 2025 5:05pm
sentry-docs Ready Ready Preview Comment Nov 10, 2025 5:05pm

@codecov
Copy link

codecov bot commented Nov 10, 2025

Bundle Report

Changes will decrease total bundle size by 1.43kB (-0.01%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 10.16MB -14 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 12.6MB -1.41kB (-0.01%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/css/*.css -32 bytes 16.5kB -0.19%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
static/chunks/4145-*.js 24 bytes 51.2kB 0.05%
static/uifr4ZhytK-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/uifr4ZhytK-*.js (New) 684 bytes 684 bytes 100.0% 🚀
static/TTuPb42nLar4SI98MvTbQ/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/TTuPb42nLar4SI98MvTbQ/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.74MB -0.0%
../instrumentation.js -3 bytes 1.07MB -0.0%
9523.js -3 bytes 1.04MB -0.0%
../app/[[...path]]/page.js.nft.json -525 bytes 766.54kB -0.07%
../app/platform-redirect/page.js.nft.json -525 bytes 766.46kB -0.07%
../app/sitemap.xml/route.js.nft.json -525 bytes 763.69kB -0.07%
4873.js 172 bytes 92.54kB 0.19%

Files in 4873.js:

  • ./src/components/sidebar/dynamicNav.tsx → Total Size: 4.58kB

  • ./src/components/sidebar/platformSidebar.tsx → Total Size: 2.12kB

  • ./src/components/sidebar/style.module.scss → Total Size: 500 bytes

  • ./src/components/sidebar/style.module.scss → Total Size: 500 bytes

@codyde codyde marked this pull request as ready for review November 10, 2025 16:23
Resolved conflicts by combining sidebar separator feature with beta/new badge features:
- Added section_end_divider field alongside beta/new fields in Node type
- Kept beta/new badge rendering in sidebar links
- Merged CSS styles for both badge types and separator
- Both features are now compatible and working together
@codyde codyde force-pushed the feat/sidebar-section-separators branch from e4340ba to e846669 Compare November 10, 2025 16:49
@codyde codyde enabled auto-merge (squash) November 10, 2025 16:49
@codyde codyde merged commit 7027388 into master Nov 10, 2025
16 checks passed
@codyde codyde deleted the feat/sidebar-section-separators branch November 10, 2025 17:05
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.

3 participants