Skip to content

Commit 6209285

Browse files
committed
change name all
1 parent fba9707 commit 6209285

36 files changed

+172
-172
lines changed

app/(navbar)/layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function Layout({ children }) {
77
<div className="mx-auto flex max-w-[90rem]">
88
<Sidebar />
99
<Navbar />
10-
<article className="w-full min-w-0 break-words min-h-[calc(100vh-var(--nextra-navbar-height))] dark:text-slate-200 pb-8 px-6 pt-4 md:px-12">
10+
<article className="w-full min-w-0 break-words min-h-[calc(100vh-var(--swr-navbar-height))] dark:text-slate-200 pb-8 px-6 pt-4 md:px-12">
1111
<main className="">{children}</main>
1212
</article>
1313
</div>

app/(navbar)/navbar.jsx

Lines changed: 24 additions & 24 deletions
Large diffs are not rendered by default.

app/(private)/attention/page.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ tags: attention transformer reinforcement-learning
66
author: Lilian
77
---
88

9-
import { Callout } from 'nextra-theme-docs'
9+
import { Callout } from 'swr-theme-docs'
1010
import Features from 'components/features'
11-
import { Bleed } from 'nextra-theme-docs'
11+
import { Bleed } from 'swr-theme-docs'
1212
import CiteGraph from 'components/citegraph/citegraph'
1313

1414
{

app/(private)/layout.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export default function Layout({ children }) {
99
return (
1010
<div className="mx-auto flex max-w-[90rem]">
1111
<Sidebar />
12-
<nav className="nextra-toc order-last max-xl:hidden w-64 shrink-0 print:hidden" aria-label="table of contents"></nav>
13-
<article className="w-full min-w-0 break-words min-h-[calc(100vh-var(--nextra-navbar-height))] text-black dark:text-slate-200 pb-8 px-6 pt-4 md:px-12">
12+
<nav className="swr-toc order-last max-xl:hidden w-64 shrink-0 print:hidden" aria-label="table of contents"></nav>
13+
<article className="w-full min-w-0 break-words min-h-[calc(100vh-var(--swr-navbar-height))] text-black dark:text-slate-200 pb-8 px-6 pt-4 md:px-12">
1414
<main className="">{children}</main>
1515
</article>
1616
</div>

app/(topic)/topic/page.jsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ export default function Page() {
1313

1414
return (
1515
<div>
16-
<div className="mx-auto flex max-w-(--nextra-content-width)">
16+
<div className="mx-auto flex max-w-(--swr-content-width)">
1717
<div className="max-xl:hidden h-0 w-64 shrink-0"></div>
1818
<aside
1919
id="_r_0_"
20-
className="nextra-sidebar print:hidden transition-all ease-in-out max-md:hidden flex flex-col h-[calc(100dvh-var(--nextra-navbar-height))] top-(--nextra-navbar-height) shrink-0 w-64 hidden"
20+
className="swr-sidebar print:hidden transition-all ease-in-out max-md:hidden flex flex-col h-[calc(100dvh-var(--swr-navbar-height))] top-(--swr-navbar-height) shrink-0 w-64 hidden"
2121
>
22-
<div className="p-4 overflow-y-auto nextra-scrollbar nextra-mask grow"></div>
23-
<div className="sticky bottom-0 bg-nextra-bg nextra-sidebar-footer border-t nextra-border flex items-center gap-2 py-4 mx-4">
22+
<div className="p-4 overflow-y-auto swr-scrollbar swr-mask grow"></div>
23+
<div className="sticky bottom-0 bg-swr-bg swr-sidebar-footer border-t swr-border flex items-center gap-2 py-4 mx-4">
2424
<button
2525
title="Change theme"
2626
className="cursor-pointer h-7 rounded-md px-2 text-xs font-medium transition-colors text-gray-600 dark:text-gray-400 flex items-center gap-2 grow"
@@ -53,9 +53,9 @@ export default function Page() {
5353
</button>
5454
</div>
5555
</aside>
56-
<nav className="nextra-toc order-last max-xl:hidden w-64 shrink-0 print:hidden" aria-label="table of contents"></nav>
57-
<article className="w-full min-w-0 break-words min-h-[calc(100vh-var(--nextra-navbar-height))] text-slate-700 dark:text-slate-200 pb-8 px-4 pt-4 md:px-12 nextra-body-typesetting-article">
58-
<div className="border inline-flex rounded-md items-stretch nextra-border float-end overflow-hidden">
56+
<nav className="swr-toc order-last max-xl:hidden w-64 shrink-0 print:hidden" aria-label="table of contents"></nav>
57+
<article className="w-full min-w-0 break-words min-h-[calc(100vh-var(--swr-navbar-height))] text-slate-700 dark:text-slate-200 pb-8 px-4 pt-4 md:px-12 swr-body-typesetting-article">
58+
<div className="border inline-flex rounded-md items-stretch swr-border float-end overflow-hidden">
5959
<button className="transition cursor-pointer ps-2 pe-1 flex gap-2 text-sm font-medium items-center" type="button" data-headlessui-state="">
6060
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" width="16">
6161
<rect x="9" y="9" width="13" height="13" rx="2"></rect>
@@ -76,19 +76,19 @@ export default function Page() {
7676
</svg>
7777
</button>
7878
</div>
79-
<div id="nextra-skip-nav"></div>
79+
<div id="swr-skip-nav"></div>
8080
<main data-pagefind-body="true">
8181
<h1 className="tracking-tight dark:text-slate-100 font-bold mt-2 text-4xl">Blog</h1>
8282
<div className="mt-12">
8383
<h3 className="text-2xl font-semibold">Nextra 4</h3>
8484
<p className="my-6 leading-7 opacity-80">
8585
App Router support, Turbopack support, compiled by React Compiler, new Rust-powered search Pagefind, RSC i18n, server/client components, smallest bundle size EVER
86-
for a Nextra-powered website, GitHub Alert Syntax, new _meta.global file and more.{" "}
86+
for a swr-powered website, GitHub Alert Syntax, new _meta.global file and more.{" "}
8787
<a
88-
href="https://the-guild.dev/blog/nextra-4?utm_source=nextra.site&amp;utm_campaign=blog_page&amp;utm_content=blog_link"
88+
href="https://the-guild.dev/blog/swr-4?utm_source=nextra.site&amp;utm_campaign=blog_page&amp;utm_content=blog_link"
8989
target="_blank"
9090
rel="noreferrer"
91-
className="focus-visible:nextra-focus text-primary-600 underline hover:no-underline decoration-from-font [text-underline-position:from-font]"
91+
className="focus-visible:swr-focus text-primary-600 underline hover:no-underline decoration-from-font [text-underline-position:from-font]"
9292
>
9393
Read more&nbsp;
9494
<svg
@@ -115,10 +115,10 @@ export default function Page() {
115115
<p className="my-6 leading-7 opacity-80">
116116
MDX 3, new i18n, new _meta files with JSX support, more powerful TOC, remote MDX, better bundle size, MathJax, new code block styles, shikiji, ESM-only and more.{" "}
117117
<a
118-
href="https://the-guild.dev/blog/nextra-3?utm_source=nextra.site&amp;utm_campaign=blog_page&amp;utm_content=blog_link"
118+
href="https://the-guild.dev/blog/swr-3?utm_source=nextra.site&amp;utm_campaign=blog_page&amp;utm_content=blog_link"
119119
target="_blank"
120120
rel="noreferrer"
121-
className="focus-visible:nextra-focus text-primary-600 underline hover:no-underline decoration-from-font [text-underline-position:from-font]"
121+
className="focus-visible:swr-focus text-primary-600 underline hover:no-underline decoration-from-font [text-underline-position:from-font]"
122122
>
123123
Read more&nbsp;
124124
<svg
@@ -145,10 +145,10 @@ export default function Page() {
145145
<p className="my-6 leading-7 opacity-80">
146146
Here are what the new version of Nextra 2 Framework includes.{" "}
147147
<a
148-
href="https://the-guild.dev/blog/nextra-2?utm_source=nextra.site&amp;utm_campaign=blog_page&amp;utm_content=blog_link"
148+
href="https://the-guild.dev/blog/swr-2?utm_source=nextra.site&amp;utm_campaign=blog_page&amp;utm_content=blog_link"
149149
target="_blank"
150150
rel="noreferrer"
151-
className="focus-visible:nextra-focus text-primary-600 underline hover:no-underline decoration-from-font [text-underline-position:from-font]"
151+
className="focus-visible:swr-focus text-primary-600 underline hover:no-underline decoration-from-font [text-underline-position:from-font]"
152152
>
153153
Read more&nbsp;
154154
<svg

app/colors.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
@variant dark (&:where(.dark *));
22

33
@theme {
4-
--color-nextra-bg: rgb(var(--nextra-bg));
5-
--color-primary-50: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) calc(var(--nextra-primary-lightness) + 52%));
6-
--color-primary-100: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) calc(var(--nextra-primary-lightness) + 49%));
7-
--color-primary-200: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) calc(var(--nextra-primary-lightness) + 41%));
8-
--color-primary-300: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) calc(var(--nextra-primary-lightness) + 32%));
9-
--color-primary-400: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) calc(var(--nextra-primary-lightness) + 21%));
10-
--color-primary-500: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) calc(var(--nextra-primary-lightness) + 5%));
11-
--color-primary-600: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) var(--nextra-primary-lightness));
12-
--color-primary-700: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) calc(var(--nextra-primary-lightness) - 6%));
13-
--color-primary-800: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) calc(var(--nextra-primary-lightness) - 13%));
14-
--color-primary-900: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) calc(var(--nextra-primary-lightness) - 21%));
4+
--color-swr-bg: rgb(var(--swr-bg));
5+
--color-primary-50: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) calc(var(--swr-primary-lightness) + 52%));
6+
--color-primary-100: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) calc(var(--swr-primary-lightness) + 49%));
7+
--color-primary-200: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) calc(var(--swr-primary-lightness) + 41%));
8+
--color-primary-300: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) calc(var(--swr-primary-lightness) + 32%));
9+
--color-primary-400: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) calc(var(--swr-primary-lightness) + 21%));
10+
--color-primary-500: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) calc(var(--swr-primary-lightness) + 5%));
11+
--color-primary-600: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) var(--swr-primary-lightness));
12+
--color-primary-700: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) calc(var(--swr-primary-lightness) - 6%));
13+
--color-primary-800: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) calc(var(--swr-primary-lightness) - 13%));
14+
--color-primary-900: hsl(var(--swr-primary-hue) var(--swr-primary-saturation) calc(var(--swr-primary-lightness) - 21%));
1515
}
1616

1717
[data-headlessui-state="selected"] > h3[style^="visibility:"] + * {

app/globals.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@
2121

2222
@layer base {
2323
:root {
24-
--nextra-primary-hue: 212deg;
25-
--nextra-primary-saturation: 100%;
26-
--nextra-navbar-height: 3.5rem;
27-
--nextra-menu-height: 3.75rem;
28-
--nextra-banner-height: 2.5rem;
29-
--nextra-bg: 255, 255, 255;
30-
--nextra-primary-lightness: 45%;
24+
--swr-primary-hue: 212deg;
25+
--swr-primary-saturation: 100%;
26+
--swr-navbar-height: 3.5rem;
27+
--swr-menu-height: 3.75rem;
28+
--swr-banner-height: 2.5rem;
29+
--swr-bg: 255, 255, 255;
30+
--swr-primary-lightness: 45%;
3131

3232
/* --default-mono-font-family: 'TTT'; */
3333
}
3434

3535
.dark {
36-
--nextra-primary-hue: 204deg;
37-
--nextra-primary-saturation: 100%;
38-
--nextra-bg: 1, 1, 1;
36+
--swr-primary-hue: 204deg;
37+
--swr-primary-saturation: 100%;
38+
--swr-bg: 1, 1, 1;
3939
}
4040

4141
*,

app/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ a.cta:active span {
7373
}
7474
a.cta:focus-visible {
7575
outline: 2px solid
76-
hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) 77%);
76+
hsl(var(--swr-primary-hue) var(--swr-primary-saturation) 77%);
7777
outline-offset: 2px;
7878
}
7979
a.cta:focus-visible span {

app/layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default async function RootLayout({ children }) {
8080
<link rel="preload" href="/serif/SurveyWithCode-Regular.woff2" as="font" type="font/woff2"></link>
8181
<link rel="preload" href="/serif/SurveyWithCode-Italic.woff2" as="font" type="font/woff2"></link> */}
8282
</head>
83-
<body className="nextra-banner-hidden overflow-x-hidden">
83+
<body className="swr-banner-hidden overflow-x-hidden">
8484
<ErrorBoundary>
8585
<ThemeProvider attribute="class" defaultTheme="light" enableSystem>
8686
<AuthProvider>

components/auth/auth-button.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ const AuthButton = memo(function AuthButton() {
5959
anchor="bottom"
6060
transition="true"
6161
className={cn(
62-
"focus-visible:nextra-focus",
62+
"focus-visible:swr-focus",
6363
"px-2 py-1",
64-
"nextra-scrollbar transition-opacity motion-reduce:transition-none",
64+
"swr-scrollbar transition-opacity motion-reduce:transition-none",
6565
"border border-black/5 dark:border-white/20",
66-
"backdrop-blur-md bg-nextra-bg/70",
66+
"backdrop-blur-md bg-swr-bg/70",
6767
"z-20 rounded-md py-1 text-sm shadow-lg",
6868
"max-h-[min(calc(100vh-5rem),256px)]!"
6969
)}

0 commit comments

Comments
 (0)