Skip to content

Lighten and narrow the docs sidebar - #1392

Merged
danbarr merged 3 commits into
mainfrom
lighten-sidebar-nav
Dec 3, 2026
Merged

danbarr merged 3 commits into
mainfrom
lighten-sidebar-nav

Conversation

@danbarr

@danbarr danbarr commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Makes the docs sidebar read as secondary navigation instead of competing with page content. Applies to every sidebar on the site.

  • Lighter link text: links drop from 16px medium (500) to 14px regular (400). The active page stays at 500. Section headings are unchanged.
  • Thinner category arrows: the filled Infima chevron is replaced with a thin outline chevron at a smaller size. Rows with and without arrows are the same height.
  • Narrower sidebar: 300px to 280px, sized for the smaller text.
  • Shorter sidebar labels: adds sidebar_label front 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

  • Navigation/structure 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

Mobile Navigation Open 🔀
/theme-preview
BeforeAfter
☀️
diff
Before (light)➡️After (light)
🌙
diff
Before (dark)➡️After (dark)
Mcp Guide Context7 Metadata Expanded 🔀
/toolhive/guides-mcp/context7
BeforeAfter
☀️
diff
Before (light)➡️After (light)
🌙
diff
Before (dark)➡️After (dark)
Theme Preview Page 🔀
/theme-preview
BeforeAfter
☀️
diff
Before (light)➡️After (light)
🌙
diff
Before (dark)➡️After (dark)

danbarr and others added 2 commits December 2, 2026 18:33
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>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 23:36
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs-website Ready Ready Preview Dec 2, 2026 11:48pm UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@danbarr

danbarr commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

/update-snapshots

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

📸 Regenerated visual baselines per your /update-snapshots request and pushed a new commit.

@samuv samuv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-repeat on the resized caret (src/css/custom.css, lines 288-291): Infima's default shorthand (background: var(--ifm-menu-link-sublist-icon) 50% / 2rem 2rem) omits no-repeat, which did not matter when 2rem exceeded the 1.25rem pseudo-element box. At 1.125rem, tiling is avoided only because the 24x24 SVG path (M6 15l6-6 6 6) has 25% empty padding around it. Adding background-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/index at level 2 under Legacy gateway): explicit label: 'Overview and deployment identification' (38 chars) could be shortened to Overview or Overview and identification.
  • docs/toolhive/integrations/opentelemetry.mdx (level 2 under Integrations): title: Collect telemetry for MCP workloads (35 chars) is also the only entry in Integrations whose label does not name the third-party tool; sidebar_label: OpenTelemetry (or Telemetry with OpenTelemetry) would both shorten it and align it with its siblings.
  • docs/toolhive/guides-registry/deploy-operator.mdx (level 3 under Registry Server > Deploy the Registry Server): title: Deploy with the ToolHive Operator (33 chars at level 3) could use sidebar_label: Deploy with the Operator to sit cleanly alongside Deploy with Helm and Deploy manually.

@danbarr
danbarr merged commit 5707920 into main Dec 3, 2026
4 checks passed
@danbarr
danbarr deleted the lighten-sidebar-nav branch December 3, 2026 13:08

This branch was successfully deployed

1 active deployment
Preview — d3e647ae Deployed Dec 2, 2026 by vercel[bot]
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