Skip to content

Commit cf73ae2

Browse files
committed
init project
1 parent 3e08805 commit cf73ae2

15 files changed

+2106
-0
lines changed

.github/screenshot.png

868 KB
Loading

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.next
2+
node_modules

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Nextra Docs Template
2+
3+
This is a template for creating documentation with [Nextra](https://nextra.site).
4+
5+
![](.github/screenshot.png)
6+
7+
## Getting Started
8+
9+
First, run `pnpm i` to install the dependencies.
10+
11+
Then, run `pnpm dev` to start the development server and visit localhost:3000.
12+
13+
## License
14+
15+
This project is licensed under the MIT License.

next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const withNextra = require('nextra')({
2+
theme: 'nextra-theme-docs',
3+
themeConfig: './theme.config.tsx',
4+
})
5+
6+
module.exports = withNextra()

package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "nextra-docs-template",
3+
"version": "0.0.1",
4+
"description": "Nextra docs template",
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/shuding/nextra-docs-template.git"
13+
},
14+
"author": "Shu Ding <[email protected]>",
15+
"license": "MIT",
16+
"bugs": {
17+
"url": "https://github.com/shuding/nextra-docs-template/issues"
18+
},
19+
"homepage": "https://github.com/shuding/nextra-docs-template#readme",
20+
"dependencies": {
21+
"next": "^13.0.6",
22+
"nextra": "^2.0.0-beta.45",
23+
"nextra-theme-docs": "^2.0.0-beta.45",
24+
"react": "^18.2.0",
25+
"react-dom": "^18.2.0"
26+
},
27+
"devDependencies": {
28+
"@types/node": "18.11.10",
29+
"typescript": "^4.9.3"
30+
}
31+
}

pages/_meta.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"index": "Introduction",
3+
"another": "Another Page",
4+
"advanced": "Advanced (A Folder)",
5+
"about": {
6+
"title": "About",
7+
"type": "page"
8+
},
9+
"contact": {
10+
"title": "Contact ↗",
11+
"type": "page",
12+
"href": "https://twitter.com/shuding_",
13+
"newWindow": true
14+
}
15+
}

pages/about.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# About
2+
3+
This is the about page! This page is shown on the navbar.

pages/advanced.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Advanced
2+
3+
This is the index page for the Advanced folder!

pages/advanced/satori.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Satori
2+
3+
Satori (悟り) is a Japanese Buddhist term for awakening, "comprehension; understanding".

0 commit comments

Comments
 (0)