-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
725de72
commit fd5b74b
Showing
32 changed files
with
2,408 additions
and
1,103 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -12,4 +12,4 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- name: Run prettier | ||
run: |- | ||
npx prettier --check . | ||
npx prettier --check . |
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ jobs: | |
|
||
vale: | ||
name: Run vale | ||
uses: ./.github/workflows/vale.yml | ||
uses: ./.github/workflows/vale.yml |
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
import Image from 'next/image' | ||
import { useTheme } from 'next-themes' | ||
import Image from "next/image"; | ||
import { useTheme } from "next-themes"; | ||
|
||
const LightorDarkImage = ({ lightModeSrc, darkModeSrc, alt, width = 800, height = 600 }) => { | ||
const { theme } = useTheme() | ||
const LightorDarkImage = ({ | ||
lightModeSrc, | ||
darkModeSrc, | ||
alt, | ||
width = 800, | ||
height = 600, | ||
}) => { | ||
const { theme } = useTheme(); | ||
|
||
const imageSrc = theme === 'dark' ? darkModeSrc : lightModeSrc | ||
const imageSrc = theme === "dark" ? darkModeSrc : lightModeSrc; | ||
|
||
return ( | ||
<Image | ||
src={imageSrc} | ||
alt={alt} | ||
width={width} | ||
height={height} | ||
/> | ||
) | ||
} | ||
return <Image src={imageSrc} alt={alt} width={width} height={height} />; | ||
}; | ||
|
||
export default LightorDarkImage | ||
export default LightorDarkImage; |
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 |
---|---|---|
@@ -1 +1 @@ | ||
export { locales as middleware } from 'nextra/locales' | ||
export { locales as middleware } from "nextra/locales"; |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
const withNextra = require('nextra')({ | ||
theme: 'nextra-theme-docs', | ||
themeConfig: './theme.config.tsx', | ||
}) | ||
const withNextra = require("nextra")({ | ||
theme: "nextra-theme-docs", | ||
themeConfig: "./theme.config.tsx", | ||
}); | ||
|
||
module.exports = withNextra({ | ||
i18n: { | ||
locales: ['en', 'zh-CN'], | ||
defaultLocale: 'en' | ||
} | ||
}) | ||
i18n: { | ||
locales: ["en", "zh-CN"], | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ | |
"tutorials-devnet": { | ||
"title": "Devnet" | ||
}, | ||
|
||
"+++ ABOUT": { | ||
"title": "", | ||
"type": "separator" | ||
|
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.