w-api-docs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUpdate API documentation from the source of truth (TypeBox/Fastify routes, or the repo's documented generator). Never edit generated OpenAPI, generated clients, or generated SQL directly.
- Read the API docs MDX and the generator README. Identify the owning source and the generate script in package.json.
- Change the owning schema or route, not the generated artifact.
- Run the documented generate command. Check drift scripts if the repo has them.
- Update adopter MDX only for behavior that changed. Do not invent auth, rate-limit, or versioning policy.
- Docs: if behavior or commands changed.
/w-docs
从事实来源(TypeBox/Fastify 路由,或仓库中记录的生成器)更新 API 文档。切勿直接编辑生成的 OpenAPI、生成的客户端或生成的 SQL。
- 阅读 API 文档 MDX 和生成器 README。确定所属来源以及 package.json 中的生成脚本。
- 修改所属 schema 或路由,而不是生成产物。
- 运行文档中规定的生成命令。如果仓库有 drift 检查脚本,则运行检查。
- 仅针对发生变更的行为更新接入方 MDX。不得自行编造 auth、rate-limit 或 versioning 策略。
- 文档:如果行为或命令发生变化,更新 。
/w-docs