Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions apps/website/docs/_nav.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@
"text": "Playground",
"link": "/playground/",
"activeMatch": "^/playground/"
},
{
"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

"activeMatch": "^/blog/"
}
]
14 changes: 14 additions & 0 deletions apps/website/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@
padding-top: 1rem;
}

@media (width >= 1280px) {
/* Balance the outline rail so the homepage stays centered in the viewport. */
.rp-doc-layout__container:has(.swc-home)
> .rp-doc-layout__sidebar-placeholder {
width: var(--rp-outline-width);
margin-left: var(--rp-outline-margin-right);
}

.rp-doc-layout__doc-container:has(.swc-home) {
padding-right: 1.5rem;
padding-left: 1.5rem;
}
}

.swc-home {
width: 100%;
max-width: 52rem;
Expand Down
Loading