Skip to main content

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
_10
This 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:

{1-4}

_10
---
_10
sidebar_label: 'Hi!'
_10
sidebar_position: 3
_10
---
_10
_10
# Hello
_10
_10
This is my **first Docusaurus document**!

It is also possible to create your sidebar explicitly in sidebars.js:


_12
module.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
};