From 6e04b1bab644045398b213900b60bf1ac1c0272d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 6 Apr 2021 20:11:26 -0700 Subject: major: Furnish repository --- docs/tutorial/create-a-document.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/tutorial/create-a-document.md (limited to 'docs/tutorial/create-a-document.md') 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', ...], + }, + ], +}; +``` -- cgit v1.2.3