/ docs / tutorial-basics / create-a-document.mdx
create-a-document.mdx
 1  ---
 2  title: Create a Document
 3  ---
 4  
 5  # Create a Document
 6  
 7  Documents are **groups of pages** connected through:
 8  
 9  - a **sidebar**
10  - **previous/next navigation**
11  - **versioning**
12  
13  ## Create your first Doc
14  
15  Create a Markdown file at `docs/hello.md`:
16  
17  ```markdown
18  # Hello
19  
20  This is my **first Docusaurus document**!
21  ```
22  
23  A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello).
24  
25  ## Configure the Sidebar
26  
27  Docusaurus automatically **creates a sidebar** from the `docs` folder.
28  
29  Add metadata to customize the sidebar label and position:
30  
31  ```md
32  ---
33  sidebar_label: "Hi!"
34  sidebar_position: 3
35  ---
36  
37  # Hello
38  
39  This is my **first Docusaurus document**!
40  ```
41  
42  It is also possible to create your sidebar explicitly in `sidebars.js`:
43  
44  ```js
45  module.exports = {
46    tutorialSidebar: [
47      "intro",
48      // highlight-next-line
49      "hello",
50      {
51        type: "category",
52        label: "Tutorial",
53        items: ["tutorial-basics/create-a-document"],
54      },
55    ],
56  };
57  ```