一键导入
chinese-markdown-style
House style for Chinese Markdown docs, and how to enforce it with the cndocstyle package from cn-doc-style-guide.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
House style for Chinese Markdown docs, and how to enforce it with the cndocstyle package from cn-doc-style-guide.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
A TRefCountPtr/TSharedPtr member in a UE class needs the pointee's full definition, not a forward decl.
When WSL's mirrored networking fails and falls back to "None", plus /etc/wsl.conf has generateResolvConf=false, the distro has no DNS; fix both layers.
When a Windows shell (PowerShell/cmd) feeds a bash script into WSL, CRLF line endings can corrupt the first shell builtin; force LF or pipe via a temp file.
Before "fixing" a recurring error, check git log to see if it was already fixed upstream — the working tree may just be stale.
Always add a space after URL brackets in Markdown to prevent 404 errors with special characters.
Plan a Python 3 modernization sweep (f-strings, super(), type hints) as a series of mechanical PRs, not one mega-PR.
| name | chinese-markdown-style |
| description | House style for Chinese Markdown docs, and how to enforce it with the cndocstyle package from cn-doc-style-guide. |
| tags | ["markdown","chinese","style","i18n"] |
Any time you edit, review, or generate Chinese documentation — READMEs, design docs, tutorials. Especially relevant when the repo has mixed Chinese + English + code.
Chinese Markdown drifts in predictable ways:
使用Python3 instead of 使用 Python 3).你好,世界 instead of
你好,世界).github, Macos,
scons).These accumulate quietly and make diffs noisy later.
Follow chen3feng/cn-doc-style-guide
and lean on its tooling. The checker / previewer / formatter now ship as a
stdlib-only Python package cndocstyle (src-layout under src/), so invoke
them with python3 -m cndocstyle.<module>:
# 1. Clone the guide as a sibling of your doc repo
git clone https://github.com/chen3feng/cn-doc-style-guide.git
# 2. Make the package importable (src-layout). Pick ONE:
export PYTHONPATH=../cn-doc-style-guide/src # for this shell, or
cd ../cn-doc-style-guide && pip install -e . # editable install
# 3. Check — reports every violation, exits non-zero if any
python3 -m cndocstyle.check path/to/docs
# 4. Preview what an auto-fix would change (dry-run diff)
python3 -m cndocstyle.preview path/to/docs
# 5. Dry-run the formatter (default) — lists files that would change
python3 -m cndocstyle.formatter path/to/docs
# 6. Apply the safe subset of fixes
python3 -m cndocstyle.formatter --apply path/to/docs
The old
tools/check.py/tools/preview.py/tools/format.pyscripts have been removed — use the module form above.
Core rules you should apply even without the tool:
,。:;?!、""'' ()《》 and …… for ellipsis.10 MB, 3.6+.Wrong: 使用Python3运行blade build,依赖scons.
Right: 使用 Python 3 运行 `blade build`,依赖 Scons。
C++ next to a Han character. Don't "finish the job"
by hand without checking — see
safe-markdown-auto-fix.