Skip to content

fix(website): center homepage and hide blog navigation#326

Merged
kdy1 merged 1 commit into
swc-project:rspressfrom
Nsttt:remove-navigation-main-page
Jul 10, 2026
Merged

fix(website): center homepage and hide blog navigation#326
kdy1 merged 1 commit into
swc-project:rspressfrom
Nsttt:remove-navigation-main-page

Conversation

@Nsttt

@Nsttt Nsttt commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

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.

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
website Ready Ready Preview, Comment Jul 10, 2026 9:42am

Request Review

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown
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.

},
{
"text": "Blog",
"link": "/blog/perf-swc-vs-babel",

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.

Just curious—could you share the reasoning behind hiding the blog?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah @kdy wanted it removed haha

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah @kdy wanted it removed haha

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeap. I requested the removal

@kdy1 kdy1 merged commit b44a621 into swc-project:rspress Jul 10, 2026
13 of 15 checks passed
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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants