-
Notifications
You must be signed in to change notification settings - Fork 45
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
2dd991d
commit 784705c
Showing
8 changed files
with
3,674 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
node_modules | ||
dist-* | ||
tests | ||
docs | ||
jest.config.* |
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,7 @@ | ||
const withNextra = require('nextra')({ | ||
theme: 'nextra-theme-docs', | ||
themeConfig: './theme.config.js', | ||
unstable_staticImage: true, | ||
}) | ||
|
||
module.exports = withNextra() |
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,19 @@ | ||
{ | ||
"name": "docs", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"author": "Prisma Data Inc.", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "next", | ||
"start": "next start", | ||
"build": "next build" | ||
}, | ||
"dependencies": { | ||
"next": "^11.1.0", | ||
"nextra": "^1.1.0", | ||
"nextra-theme-docs": "^1.2.6", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
} | ||
} |
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,5 @@ | ||
import 'nextra-theme-docs/style.css' | ||
|
||
export default function Nextra({ Component, pageProps }) { | ||
return <Component {...pageProps} /> | ||
} |
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 @@ | ||
export default () => 'todo' |
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,26 @@ | ||
export default { | ||
github: 'https://github.com/shuding/nextra', // GitHub link in the navbar | ||
docsRepositoryBase: 'https://github.com/shuding/nextra/blob/master', // base URL for the docs repository | ||
titleSuffix: ' – Nextra', | ||
nextLinks: true, | ||
prevLinks: true, | ||
search: true, | ||
customSearch: null, // customizable, you can use algolia for example | ||
darkMode: true, | ||
footer: true, | ||
footerText: `MIT ${new Date().getFullYear()} © Shu Ding.`, | ||
footerEditLink: `Edit this page on GitHub`, | ||
logo: ( | ||
<> | ||
<svg>...</svg> | ||
<span>Next.js Static Site Generator</span> | ||
</> | ||
), | ||
head: ( | ||
<> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="Nextra: the next docs builder" /> | ||
<meta name="og:title" content="Nextra: the next docs builder" /> | ||
</> | ||
), | ||
} |
Oops, something went wrong.
784705c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: