How to create and edit docs
This guide is for the documentation team. If you have never worked with a code repository before, that is fine—there are only a few fixed steps, listed below in order.
Where do the docs live?
- All documentation pages live in the
docsfolder at the project root. - Each page is usually one file with a
.md(Markdown) extension. - After you save the file and the site is published, that same content appears as a web page.
Create a new page
Step 1: Add a file
- Open the
docsfolder. - Create a new file—for example
my-page.md.- Use an English file name with no spaces (for example
backup-guide.md).
- Use an English file name with no spaces (for example
- Start the file with these first lines (this block is called front matter):
---
title: Your page title
sidebar_position: 10
---
Page content starts here.
title: The title shown in the sidebar and at the top of the page.sidebar_position: A smaller number appears higher in the sidebar (for example1,2,10).
Step 2: Write content in Markdown
Common patterns:
| You want to write | In your .md file |
|---|---|
| Large heading | # Title |
| Medium heading | ## Subtitle |
| Bullet list | Lines starting with - or * |
| Numbered list | 1. , 2., and so on |
| Bold | **word** |
| Link | [link text](https://example.com) |
| Inline code | `command` |
| Multi-line code block | Three backticks above and below the code |
For more detail, see the Markdown Guide (optional).
Add images
- Copy the image into
static/img(for examplestatic/img/screenshot.png). - Reference it in your doc like this:

Paths always start from the site root with /img/....
Put a page under a category (like VPS)
If you want several pages grouped together:
- Create a folder under
docs, for exampledocs/my-section/. - Add a
_category_.jsonfile in that folder so the group label appears in the sidebar:
{
"label": "Category name",
"position": 5
}
- Add your
.mdfiles inside that folder (for exampledocs/my-section/page-one.md).
A real example in this project is the docs/vps/ folder.
Preview before you publish
If you run the project on your machine (requires Node.js installed):
npm install
npm start
Your browser should open; find the new page in the sidebar and check that everything looks correct.
If you only hand off files through Git and another team builds the site, make sure you commit the
.mdfile in the correct path.
Quick recap
- Create a
.mdfile underdocs(or a subfolder). - Fill in
titleand, if needed,sidebar_positionat the top of the file. - Write the body in Markdown; put images in
static/img. - Use a folder +
_category_.jsonwhen you need a sidebar group.
You do not have to write Markdown from day one inside a .md file. Draft your text in whatever editor you prefer—Word, Google Docs, Notion, or a phone notes app—then copy the full text into ChatGPT, DeepSeek, or a similar tool and ask it to convert the content to Markdown.
Sample prompt (click to expand)
Convert the text below into clean Markdown; use ## and ### for headings and format lists properly.
Shorter version: “Turn this into Markdown.” Then review the output once, add front matter (title, and so on) at the top of the file, and save it under docs.
Always read the AI output yourself. It sometimes formats links, tables, or code blocks incorrectly.
If anything is unclear, ask your repository owner or tech lead for the right file path and branch name.