diff options
Diffstat (limited to 'docs/pages')
| -rw-r--r-- | docs/pages/_meta.json | 15 | ||||
| -rw-r--r-- | docs/pages/about.mdx | 3 | ||||
| -rw-r--r-- | docs/pages/advanced.mdx | 3 | ||||
| -rw-r--r-- | docs/pages/advanced/satori.mdx | 3 | ||||
| -rw-r--r-- | docs/pages/another.mdx | 31 | ||||
| -rw-r--r-- | docs/pages/index.mdx | 11 |
6 files changed, 66 insertions, 0 deletions
diff --git a/docs/pages/_meta.json b/docs/pages/_meta.json new file mode 100644 index 0000000..164927d --- /dev/null +++ b/docs/pages/_meta.json @@ -0,0 +1,15 @@ +{ + "index": "Introduction", + "another": "Another Page", + "advanced": "Advanced (A Folder)", + "about": { + "title": "About", + "type": "page" + }, + "contact": { + "title": "Contact ↗", + "type": "page", + "href": "https://twitter.com/shuding_", + "newWindow": true + } +} diff --git a/docs/pages/about.mdx b/docs/pages/about.mdx new file mode 100644 index 0000000..ec6faed --- /dev/null +++ b/docs/pages/about.mdx @@ -0,0 +1,3 @@ +# About + +This is the about page! This page is shown on the navbar. diff --git a/docs/pages/advanced.mdx b/docs/pages/advanced.mdx new file mode 100644 index 0000000..a1a5148 --- /dev/null +++ b/docs/pages/advanced.mdx @@ -0,0 +1,3 @@ +# Advanced + +This is the index page for the Advanced folder! diff --git a/docs/pages/advanced/satori.mdx b/docs/pages/advanced/satori.mdx new file mode 100644 index 0000000..46eb19f --- /dev/null +++ b/docs/pages/advanced/satori.mdx @@ -0,0 +1,3 @@ +# Satori + +Satori (悟り) is a Japanese Buddhist term for awakening, "comprehension; understanding". diff --git a/docs/pages/another.mdx b/docs/pages/another.mdx new file mode 100644 index 0000000..7fb6a02 --- /dev/null +++ b/docs/pages/another.mdx @@ -0,0 +1,31 @@ +# Another Page + +```js filename="demo.js" {3} copy +let a = 1; + +console.log(a); +``` + +## Component + +import { useState } from 'react' + +{/* Import CSS modules */} +import styles from '../components/counters.module.css' + +export const Counter = () => { + const [count, setCount] = useState(0); + return ( + <div> + <button onClick={() => setCount(count + 1)} className={styles.counter}>Clicked {count} times</button> + </div> + ); +}; + +<Counter/> + +## External Component + +import Counters from '../components/counters' + +<Counters /> diff --git a/docs/pages/index.mdx b/docs/pages/index.mdx new file mode 100644 index 0000000..058465c --- /dev/null +++ b/docs/pages/index.mdx @@ -0,0 +1,11 @@ +# Introduction + +Welcome to Nextra! This is a basic docs template. You can use it as a starting point for your own project :) + +## What is Nextra? + +A **simple**, **powerful** and **flexible** site generation framework with everything you love from Next.js. + +## Documentation + +The documentation is available at [https://nextra.site](https://nextra.site). |
