Create a Document
Documents are groups of pages connected through:
- a sidebar
- previous/next navigation
- versioning
Create your first Doc
Create a Markdown file at docs/hello.md
:
_10# Hello_10_10This is my **first Docusaurus document**!
A new document is now available at http://localhost:3000/docs/hello.
Configure the Sidebar
Docusaurus automatically creates a sidebar from the docs
folder.
Add metadata to customize the sidebar label and position:
It is also possible to create your sidebar explicitly in sidebars.js
:
_12module.exports = {_12 tutorialSidebar: [_12 'intro',_12 // highlight-next-line_12 'hello',_12 {_12 type: 'category',_12 label: 'Tutorial',_12 items: ['tutorial-basics/create-a-document'],_12 },_12 ],_12};