Skip to content

Commit

Permalink
docs: setup hello world nextra site
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Aug 30, 2021
1 parent 2dd991d commit 784705c
Show file tree
Hide file tree
Showing 8 changed files with 3,674 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
node_modules
dist-*
tests
docs
jest.config.*
7 changes: 7 additions & 0 deletions docs/nextjs.config.js
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()
19 changes: 19 additions & 0 deletions docs/package.json
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"
}
}
5 changes: 5 additions & 0 deletions docs/pages/_app.js
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} />
}
1 change: 1 addition & 0 deletions docs/pages/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default () => 'todo'
26 changes: 26 additions & 0 deletions docs/theme.config.js
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" />
</>
),
}
Loading

1 comment on commit 784705c

@vercel
Copy link

@vercel vercel bot commented on 784705c Aug 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.