diff options
| author | Fuwn <[email protected]> | 2021-04-06 20:11:26 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-04-06 20:11:26 -0700 |
| commit | 6e04b1bab644045398b213900b60bf1ac1c0272d (patch) | |
| tree | 0cc17281bbd67244efc3c23e71297c9cbaa9c0d8 /docs/tutorial/create-a-document.md | |
| parent | chore: Create contribution guidelines (diff) | |
| download | site-6e04b1bab644045398b213900b60bf1ac1c0272d.tar.xz site-6e04b1bab644045398b213900b60bf1ac1c0272d.zip | |
major: Furnish repository
Diffstat (limited to 'docs/tutorial/create-a-document.md')
| -rw-r--r-- | docs/tutorial/create-a-document.md | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/tutorial/create-a-document.md b/docs/tutorial/create-a-document.md new file mode 100644 index 0000000..7922129 --- /dev/null +++ b/docs/tutorial/create-a-document.md @@ -0,0 +1,38 @@ +--- +title: Create a Document +--- + +Documents are pages with a **sidebar**, a **previous/next navigation** and many other useful features. + +## Create a Document + +Create a markdown file at `docs/my-doc.md`: + +```mdx title="docs/hello.md" +--- +title: Hello, World! +--- + +## Hello, World! + +This is your first document in **Docusaurus**, Congratulations! +``` + +A new document is now available at `http://localhost:3000/docs/hello`. + +## Add your document to the sidebar + +Add `hello` to the `sidebars.js` file: + +```diff title="sidebars.js" +module.exports = { + docs: [ + { + type: 'category', + label: 'Docusaurus Tutorial', +- items: ['getting-started', 'create-a-doc', ...], ++ items: ['getting-started', 'create-a-doc', 'hello', ...], + }, + ], +}; +``` |