Skip to content
My Project
On this page

Writing docs#

These pages use the Sumi theme for MkDocs NG. Everything is plain Markdown, so the files read well on GitHub too.

Preview locally#

pip install -r requirements.txt
mkdocs serve                  # http://127.0.0.1:8000/, Chinese under zh/
mkdocs serve --language zh    # only Chinese, faster

Where things live#

  • docs/English pages
    • index.mdhome page (data in front matter)
    • guide/
    • reference/
    • releases.mdrelease page, filled from releases.yml
    • releases.yml
    • blog/
      • .authors.yml
      • posts/one file per post, named YYYY-MM-DD-slug.md
  • docs-zh/Chinese pages, same layout
  • mkdocs.ymlsettings for both languages

Components#

You write You get
> [!NOTE] A callout. Also TIP, IMPORTANT, WARNING, CAUTION.
A numbered list + {.steps} A procedure with numbered steps. Indent step content by 4 spaces.
A list of links + {.cards} A grid of cards.
Code fences with {tab="…"} Tabs.
A table + {.fields} A parameter reference.
```mermaid A diagram.
```filetree A file tree.
$E = mc^2$ Math.
++Ctrl+K++ Keys.

See the Sumi component guide for all of them.

Before you open a pull request#

mkdocs build --strict

--strict turns broken links and missing pages into errors. CI runs the same command.

Esc
↵ to open ↑↓ to move Esc to close
Keyboard shortcuts
Ctrl K /
Open search and commands
t
Toggle dark mode
[ ]
Previous / next page
j k
Previous / next heading
?
Show this help