fix(website): center homepage and hide blog navigation#326
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
@Nsttt is attempting to deploy a commit to the SWC Project Team on Vercel. A member of the Team first needs to authorize it. |
SoonIter
reviewed
Jul 10, 2026
| }, | ||
| { | ||
| "text": "Blog", | ||
| "link": "/blog/perf-swc-vs-babel", |
Contributor
There was a problem hiding this comment.
Just curious—could you share the reasoning behind hiding the blog?
kdy1
pushed a commit
that referenced
this pull request
Jul 10, 2026
## Summary - center the homepage while preserving its on-page outline - hide Blog from the primary navigation without removing blog routes ## Why Rspress reserves different widths for the hidden left sidebar and visible right outline, shifting the homepage content left. The homepage now mirrors the outline rail on desktop so its content stays centered without affecting documentation pages. ## Validation - `pnpm --filter swc-site build` - `pnpm exec prettier --check apps/website/docs/index.mdx apps/website/docs/_nav.json apps/website/src/styles/index.css` - generated HTML confirms the outline remains and Blog is absent from navigation Repo-wide `turbo run lint test` remains blocked in the untouched plugins app by `@next/next/no-html-link-for-pages`: `The "path" argument must be of type string. Received undefined`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
Rspress reserves different widths for the hidden left sidebar and visible right outline, shifting the homepage content left. The homepage now mirrors the outline rail on desktop so its content stays centered without affecting documentation pages.
Validation
pnpm --filter swc-site buildpnpm exec prettier --check apps/website/docs/index.mdx apps/website/docs/_nav.json apps/website/src/styles/index.cssRepo-wide
turbo run lint testremains blocked in the untouched plugins app by@next/next/no-html-link-for-pages:The "path" argument must be of type string. Received undefined.