一键导入
docs-writer
Patterns and conventions for writing Zensical (Material for MkDocs) documentation for this project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Patterns and conventions for writing Zensical (Material for MkDocs) documentation for this project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | docs-writer |
| description | Patterns and conventions for writing Zensical (Material for MkDocs) documentation for this project |
This project's documentation is built with Zensical, which is fully compatible with Material for MkDocs. All Material for MkDocs markdown extensions apply.
docs/.zensical.toml.docs/ is excluded from Prettier (.prettierignore) because Prettier mangles
MkDocs admonition syntax. Do not run Prettier on docs files.docs/
index.md # Home page
documentation.md
license.md
getting-started/
index.md # Getting-started landing
installation.md
usage.md
settings.md
unlinked-tasks-panel.md
contributing/
index.md # Contributing landing
development.md
ci-releases.md
opencode.md
Add new pages to the nav array in zensical.toml as well as creating the file.
---
title: Custom Page Title
description: One-sentence description for SEO / social cards.
---
Basic admonition — type keyword followed by body indented 4 spaces:
!!! note
Body text here.
With a custom title:
!!! tip "Pro tip"
Body text here.
No title (title bar hidden):
!!! warning ""
Body text here.
Collapsible (closed by default):
??? info "Click to expand"
Body text here.
Collapsible open by default:
???+ info "Expanded by default"
Body text here.
Inline (floats right, text wraps around):
!!! info inline end "Side note"
Body text here.
Inline left:
!!! info inline "Side note"
Body text here.
Available types: note, abstract, info, tip, success, question,
warning, failure, danger, bug, example, quote.
Plain fenced block:
```python
print("hello")
```
With a filename title:
```python title="src/example.py"
print("hello")
```
With line numbers:
```python linenums="1"
print("hello")
```
With highlighted lines:
```python hl_lines="2 3"
line 1
line 2 # highlighted
line 3 # highlighted
```
Highlighting a range:
```python hl_lines="3-5"
...
```
=== "Tab one"
Content for tab one indented 4 spaces.
=== "Tab two"
Content for tab two.
Tabs can be nested inside admonitions (indent the === lines 4 spaces).
| Column A | Column B |
| -------- | -------- |
| value | value |
# H1 title per file (matches the nav label).## sections and ### subsections — avoid going deeper.!!! note — neutral extra information the reader should know.!!! tip — optional shortcut or best practice.!!! warning — something that could cause data loss or unexpected behaviour.!!! info — background context that is not strictly required.title= when the filename helps the reader locate the file.Prettier reformats ordered lists in ways that break MkDocs rendering. Wrap any
ordered list that contains multi-sentence items or nested content in a
<!-- prettier-ignore --> comment:
<!-- prettier-ignore -->
1. First step with a longer explanation.
2. Second step.
This is only needed when the list items are complex. Simple single-line ordered lists do not require it.