Skip to content

Center docs landing page#4

Merged
chasehuh merged 1 commit into
mainfrom
codex/center-docs-landing
Jun 25, 2026
Merged

Center docs landing page#4
chasehuh merged 1 commit into
mainfrom
codex/center-docs-landing

Conversation

@chasehuh

Copy link
Copy Markdown
Member

Summary

  • let pages opt out of the docs sidebar through the existing Page hideSidebar prop
  • hide the sidebar on the main docs landing page so its hero/cards/sections are centered in the viewport
  • keep regular docs pages unchanged with the sidebar visible

Visual QA

Before: desktop homepage content center was x=870 on a 1440px viewport because it was centered in the content area after the 300px sidebar.
After: desktop homepage content/card grid center is x=720 on a 1440px viewport; mobile remains centered with no horizontal overflow.
Screenshots captured locally:

  • /tmp/sume-docs-desktop-after.png
  • /tmp/sume-docs-mobile-after.png
  • /tmp/sume-docs-public-api-after.png

Validation

  • pnpm install --frozen-lockfile
  • pnpm exec prettier --write src/pages/_app.tsx src/pages/index.tsx
  • pnpm exec prettier --check src/pages/_app.tsx src/pages/index.tsx
  • pnpm tsc
  • pnpm build
  • git diff --check
  • local route smoke on http://localhost:3013: /, /public-api, /api/cookbook, /api/reference => 200

Note: local commands emitted the existing Node engine warning because this machine is using Node v25.2.1 while package.json declares Node 20.

@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jun 25, 2026 4:10am

Request Review

@chasehuh chasehuh merged commit 972421a into main Jun 25, 2026
3 checks passed
@chasehuh chasehuh deleted the codex/center-docs-landing branch June 25, 2026 04:11
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