Repository navigation
Lighten and narrow the docs sidebar - #1392
Conversation
Sidebar links drop to 14px regular weight (active stays 500) so the nav reads as secondary to body text. Vertical padding goes through the Infima variable so category caret rows match page rows. Category carets use a thin outline chevron at a smaller size in place of Infima's filled icon, inside the same 1.25rem box. The sidebar narrows from 300px to 280px to suit the smaller text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
Adds short sidebar_label values so ToolHive and enterprise pages don't wrap in the narrower sidebar. Page titles are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the sidebar styling and documentation label updates.
No open issues 🎉
What changed in this PR
Makes site-wide documentation sidebars less visually prominent while preserving page titles and URLs.
Changes:
- Narrows the sidebar to 280px and uses smaller, lighter link text.
- Replaces filled category arrows with smaller outline chevrons.
- Shortens sidebar labels on 15 documentation pages.
| File | Description |
|---|---|
src/css/custom.css |
Updates sidebar width, typography, spacing, and chevrons. |
docs/toolhive/tutorials/mcp-optimizer.mdx |
Uses “Reduce token usage.” |
docs/toolhive/integrations/vmcp-okta.mdx |
Uses “Okta.” |
docs/toolhive/integrations/vmcp-entra-id.mdx |
Uses “Microsoft Entra ID.” |
docs/toolhive/integrations/ingress-ngrok.mdx |
Uses “Ingress with ngrok.” |
docs/toolhive/integrations/aws-sts.mdx |
Uses “AWS STS authentication.” |
docs/toolhive/guides-vmcp/tool-aggregation.mdx |
Uses “Tool aggregation.” |
docs/toolhive/guides-vmcp/delegate-agent-identity.mdx |
Uses “Agent identity delegation.” |
docs/toolhive/guides-vmcp/code-mode.mdx |
Uses “Code mode.” |
docs/toolhive/guides-vmcp/accept-workload-assertions.mdx |
Uses “Workload assertions.” |
docs/toolhive/guides-k8s/token-exchange-k8s.mdx |
Uses “Token exchange.” |
docs/toolhive/guides-cli/token-exchange.mdx |
Uses “Token exchange.” |
docs/platform/enterprise-platform/airgap-install.mdx |
Uses “Air-gapped install.” |
docs/platform/enterprise-authz/quickstart-entra.mdx |
Uses “Quickstart with Entra ID.” |
docs/platform/enterprise-authz/namespace-self-service.mdx |
Uses “Delegate by namespace.” |
docs/platform/enterprise-authz/intro.mdx |
Uses “Introduction.” |
Review effort: Balanced
|
/update-snapshots |
|
📸 Regenerated visual baselines per your |
samuv
left a comment
There was a problem hiding this comment.
The CSS changes in src/css/custom.css are minimal, clean, and visibly improve visual hierarchy across light/dark desktop and mobile snapshots without breaking alignment, dark-mode chevron contrast, or section headings. All 15 sidebar_label additions accurately represent their pages, keep titles and URLs unchanged, and fit naturally alongside sibling labels (especially shortening Connect ToolHive to Okta to Okta for symmetry with Microsoft Entra ID, and surfacing ngrok in Ingress with ngrok).
Non-blocking note
- Defensive
background-repeat: no-repeaton the resized caret (src/css/custom.css, lines 288-291): Infima's default shorthand (background: var(--ifm-menu-link-sublist-icon) 50% / 2rem 2rem) omitsno-repeat, which did not matter when2remexceeded the1.25rempseudo-element box. At1.125rem, tiling is avoided only because the24x24SVG path (M6 15l6-6 6 6) has 25% empty padding around it. Addingbackground-repeat: no-repeat;keeps it safe against future icon or size tweaks.
Follow-up candidates (out of scope)
A few other hand-written labels are as long as (or longer than) ones shortened here for their nesting depth and are worth a quick follow-up pass:
sidebars.ts(line 642,ai-gateway/legacy/indexat level 2 underLegacy gateway): explicitlabel: 'Overview and deployment identification'(38 chars) could be shortened toOvervieworOverview and identification.docs/toolhive/integrations/opentelemetry.mdx(level 2 underIntegrations):title: Collect telemetry for MCP workloads(35 chars) is also the only entry inIntegrationswhose label does not name the third-party tool;sidebar_label: OpenTelemetry(orTelemetry with OpenTelemetry) would both shorten it and align it with its siblings.docs/toolhive/guides-registry/deploy-operator.mdx(level 3 underRegistry Server > Deploy the Registry Server):title: Deploy with the ToolHive Operator(33 chars at level 3) could usesidebar_label: Deploy with the Operatorto sit cleanly alongsideDeploy with HelmandDeploy manually.
Description
Makes the docs sidebar read as secondary navigation instead of competing with page content. Applies to every sidebar on the site.
sidebar_labelfront matter to 15 ToolHive and Stacklok Enterprise pages whose long titles wrapped in the sidebar, for example "Token exchange" for "Configure token exchange for backend authentication." Page titles and URLs are unchanged.A few auto-generated CLI and CRD reference labels still wrap, since those pages can't be edited by hand.
Type of change
Related issues/PRs
None
Screenshots
🤖 Generated with Claude Code
Visual regression screenshots
Auto-generated by CI from
scripts/pr-screenshot-summary.mjs— edits inside this block are overwritten on the next push.🟡 Changed
/theme-previewdiff
diff
/toolhive/guides-mcp/context7diff
diff
/theme-previewdiff
diff