diff --git a/.gitignore b/.gitignore index 80cb2b24..c6e218ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,35 @@ -node_modules -.next +# deps +/node_modules + +# generated content +.contentlayer +.content-collections +.source + +# test & build +/coverage +/.next/ +/out/ +/build +*.tsbuildinfo + +# misc .DS_Store -yarn-error.log -.yalc -yalc.lock +*.pem +/.pnp +.pnp.js +npm-debug.log* +yarn-debug.log* +yarn-error.log* -public/*.st -public/*.toml -public/.nextra +# others +.env +.env*.local .vercel +next-env.d.ts + +certificates +.turbo + +# Fumadocs +.source diff --git a/README.md b/README.md index 00640d65..7b9057d1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The official website for [SWR](https://github.com/vercel/swr). -The project uses [pnpm](https://pnpm.io), [Nextra](https://nextra.vercel.app) and deploys via [Vercel](https://vercel.com). To develop it locally, clone this repository and run the following command to start the local dev server: +The project uses [pnpm](https://pnpm.io), [Geistdocs](https://preview.geistdocs.com) and deploys via [Vercel](https://vercel.com). To develop it locally, clone this repository and run the following command to start the local dev server: ```bash pnpm install @@ -24,4 +24,4 @@ When making a change, or creating a new page, please make sure to edit all langu - Korean translation done by SeulGi Choi ([@cs09g](https://github.com/cs09g)) - Russian translation done by Valentin Politov ([@valentinpolitov](https://github.com/valentinpolitov)) - Brazilian Portuguese translation done by Guilherme Sousa ([@guilherssousa](https://github.com/guilherssousa)) -- French translation done by [@Olafr9500](https://github.com/Olafr9500) +- French translation done by [@Olafr9500](https://github.com/Olafr9500) \ No newline at end of file diff --git a/app/[lang]/(home)/components/centered-section.tsx b/app/[lang]/(home)/components/centered-section.tsx new file mode 100644 index 00000000..859fa2ca --- /dev/null +++ b/app/[lang]/(home)/components/centered-section.tsx @@ -0,0 +1,26 @@ +import type { ReactNode } from 'react' + +type CenteredSectionProps = { + title: string + description: string + children?: ReactNode +} + +export const CenteredSection = ({ + title, + description, + children +}: CenteredSectionProps) => ( +
+ {description} +
+{badge}
++ {description} +
++ {description} +
++ {description} +
++ {item.description} +
+{item.description}
+{description}
+ )} +{tooltip}
+{attachmentLabel}
++ {data.mediaType} +
+ )} +Used {count} sources
+- {page.frontMatter?.description}{" "} - - - {more + " →"} - - -
- {page.frontMatter?.date ? ( -- {page.frontMatter.date} -
- ) : null} -{title}
-
+ Tip: You can open and close chat with{" "}
+
+ {localPrompt.length} / 1000 +
+code]:grid",
+ className,
+ props.className
+ )}
+ ref={ref}
+ style={style}
+ tabIndex={tabIndex}
+ >
+ {children}
+
+ ),
+ [children, style, tabIndex, className]
+ );
+
+ if (!title) {
+ return (
+ Thank you for your feedback!
+Used {sources.length} sources
+