Skip to content

Commit cf73ae2

Browse files
committedDec 2, 2022
init project
1 parent 3e08805 commit cf73ae2

15 files changed

+2106
-0
lines changed
 

‎.github/screenshot.png

868 KB
Loading

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.next
2+
node_modules

‎README.md

+15
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

+5
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

+6
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

+31
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 <g@shud.in>",
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

+15
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

+3
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

+3
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

+3
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".

‎pages/another.mdx

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Another Page
2+
3+
```js filename="demo.js" {3} copy
4+
let a = 1;
5+
6+
console.log(a);
7+
```

‎pages/index.mdx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Introduction
2+
3+
Welcome to Nextra! This is a basic docs template. You can use it as a starting point for your own project :)
4+
5+
## What is Nextra?
6+
7+
A **simple**, **powerful** and **flexible** site generation framework with everything you love from Next.js.
8+
9+
## Documentation
10+
11+
The documentation is available at [https://nextra.site](https://nextra.site).

‎pnpm-lock.yaml

+1,967
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎theme.config.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react'
2+
import { DocsThemeConfig } from 'nextra-theme-docs'
3+
4+
const config: DocsThemeConfig = {
5+
logo: <span>My Project</span>,
6+
project: {
7+
link: 'https://github.com/shuding/nextra-docs-template',
8+
},
9+
chat: {
10+
link: 'https://discord.com',
11+
},
12+
docsRepositoryBase: 'https://github.com/shuding/nextra-docs-template',
13+
footer: {
14+
text: 'Nextra Docs Template',
15+
},
16+
}
17+
18+
export default config

‎tsconfig.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": false,
8+
"forceConsistentCasingInFileNames": true,
9+
"noEmit": true,
10+
"incremental": true,
11+
"esModuleInterop": true,
12+
"module": "esnext",
13+
"moduleResolution": "node",
14+
"resolveJsonModule": true,
15+
"isolatedModules": true,
16+
"jsx": "preserve"
17+
},
18+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
19+
"exclude": ["node_modules"]
20+
}

0 commit comments

Comments
 (0)
Please sign in to comment.