-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(suspensive.org): nextra 3 (#1301)
# Overview <!-- A clear and concise description of what this pr is about. --> 1. Nextra v2 -> v3 done! 2. Some framer-motion is added ![chrome-capture-2024-10-11](https://github.com/user-attachments/assets/aa7f1dd3-1ab7-4328-98fc-44014fd3f8b9) ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md) 2. I added documents and tests. --------- Co-authored-by: Gwansik Kim <[email protected]>
- Loading branch information
Showing
113 changed files
with
2,044 additions
and
1,383 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import nextra from 'nextra' | ||
import { remarkSandpack } from 'remark-sandpack' | ||
|
||
const withNextra = nextra({ | ||
autoImportThemeStyle: true, | ||
theme: 'nextra-theme-docs', | ||
themeConfig: './theme.config.tsx', | ||
defaultShowCopyCode: true, | ||
latex: true, | ||
mdxOptions: { | ||
remarkPlugins: [remarkSandpack], | ||
rehypePlugins: [], | ||
rehypePrettyCodeOptions: { | ||
theme: 'github-dark-default', | ||
keepBackground: false, | ||
}, | ||
}, | ||
search: { | ||
codeblocks: true, | ||
}, | ||
codeHighlight: true, | ||
readingTime: true, | ||
}) | ||
|
||
/** | ||
* @type {import('next').NextConfig} | ||
*/ | ||
export default withNextra({ | ||
reactStrictMode: true, | ||
i18n: { | ||
locales: ['en', 'ko'], | ||
defaultLocale: 'en', | ||
}, | ||
}) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Script from 'next/script' | ||
|
||
import './styles/globals.css' | ||
|
||
export default function App({ Component, pageProps }) { | ||
return ( | ||
<> | ||
<Component {...pageProps} /> | ||
<Script src="https://www.googletagmanager.com/gtag/js?id=G-NYQZGKRL0Y" /> | ||
<Script id="google-analytics"> | ||
{` | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', 'G-NYQZGKRL0Y'); | ||
`} | ||
</Script> | ||
<Script id="microsoft-clarity" type="text/javascript"> | ||
{` | ||
(function(c,l,a,r,i,t,y){ | ||
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; | ||
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; | ||
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); | ||
})(window, document, "clarity", "script", "jnyd3uxeuz"); | ||
`} | ||
</Script> | ||
</> | ||
) | ||
} |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
export default { | ||
index: { | ||
type: 'page', | ||
display: 'hidden', | ||
theme: { | ||
layout: 'full', | ||
}, | ||
}, | ||
docs: { | ||
type: 'page', | ||
title: '문서보기', | ||
}, | ||
visualization: { | ||
type: 'page', | ||
title: '시각화 자료', | ||
href: 'https://visualization.suspensive.org', | ||
newWindow: true, | ||
}, | ||
versions: { | ||
type: 'menu', | ||
title: 'latest', | ||
items: { | ||
latest: { | ||
title: 'latest', | ||
href: 'https://suspensive.org/ko', | ||
}, | ||
v2: { | ||
title: 'v2', | ||
href: 'https://v2.suspensive.org/ko', | ||
}, | ||
v1: { | ||
title: 'v1', | ||
href: 'https://v1.suspensive.org/ko', | ||
}, | ||
}, | ||
}, | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.