我是怎么用DocKit Pro把100页产品文档整理好的 | How I Organized 100 Pages of Product Docs With DocKit Pro
我的文档问题,在项目进入第三个月时爆发了。
一个API改了,三个地方有文档,只更新了两个。客户发邮件问一个参数的用法,我翻了20分钟才找到。
这不是罕见情况。这是每个项目到一定规模都会遇到的墙。
文档混乱的根本原因
不是懒。
是文档工具和写代码工具是两套系统。
写代码在VS Code/Cursor,文档在Notion/Confluence/Google Docs/随便哪里。两套工具之间没有连接,代码更新的时候文档更新不了,因为你根本不知道文档在哪里。
DocKit Pro的核心设计思路
DocKit Pro的设计是:文档和代码共存。
具体来说:
- 文档以Markdown格式存在代码仓库里
- 每个模块有对应的文档文件
- 改代码的同时改文档,在同一个commit里
这不是新想法——很多团队在做。DocKit Pro做的是给这套工作流加脚手架:模板、结构、链接、搜索、导出。
实际用法
第一步:项目初始化
dockit init
生成标准目录结构:
docs/
api/ # API参考
guides/ # 操作指南
architecture/ # 架构文档
changelog/ # 变更记录
第二步:模板驱动写作
每种文档类型有对应模板。API文档模板自动包含:
- 接口描述
- 参数说明(类型、是否必填、默认值)
- 请求/响应示例
- 错误码列表
你填内容,结构是固定的。
第三步:链接检查
DocKit Pro有内置的链接验证器,运行 dockit check 会扫描所有文档内链接,报告失效链接。
这个功能在文档多了以后非常有用。
我的100页文档整理过程
分三个阶段做了两周:
第一周:把散落各处的文档统一导入到Markdown格式,放进Git仓库。
第一周后半:按DocKit Pro的目录结构重新分类,把API文档和指南文档分开。
第二周:逐个检查链接、补缺失章节、统一格式。
完成后的状态:文档和代码在同一个仓库,修改代码时能看到对应文档在哪里,链接全部有效,可以用GitHub Pages一键发布文档站。
诚实说:哪里还不够好
DocKit Pro没有像Notion那样漂亮的在线编辑界面。它的工作方式更接近代码工具——文本编辑器+命令行。
对习惯可视化文档工具的人,有学习成本。
但如果你本来就在用Markdown写文档,DocKit Pro能帮你把这件事做得更系统。
DocKit Pro 已在以下平台上架:
- Gumroad:segauser.gumroad.com
- Payhip:payhip.com/b/dockit
How I Organized 100 Pages of Product Docs With DocKit Pro
My documentation problem exploded at month three: one API changed, three places had docs, only two got updated. A customer asked about a parameter, I spent 20 minutes finding the answer.
The root cause: Docs and code are in two separate systems. Code in VS Code/Cursor, docs in Notion/Confluence/wherever. No connection means docs fall out of sync the moment code changes.
DocKit Pro’s core design: Docs live in the same repository as code, in Markdown format. Each module has a corresponding doc file. Code change + doc change = same commit.
The workflow:
dockit init— generates standard docs/ directory structure (api/, guides/, architecture/, changelog/)- Template-driven writing — API doc templates pre-include parameter tables, request/response examples, error codes
dockit check— built-in link validator catches dead links before they confuse users
My 100-page organization process (2 weeks):
- Week 1: Import scattered docs to Markdown, commit to Git
- Week 1 (second half): Reclassify using DocKit Pro’s directory structure
- Week 2: Fix links, fill gaps, standardize formatting
Result: Docs and code in one repo, documentation visible during code changes, all links valid, one-command GitHub Pages publish.
Honest limitation: No pretty visual editor like Notion. It’s a code-tool-style workflow (text editor + CLI). Learning curve for teams used to visual doc tools. But if you’re already writing Markdown, DocKit Pro makes it systematic.
Available on Gumroad and Payhip.
Deskless Daily — AI-compiled tech intelligence, updated daily. Full analysis: https://wdsega.github.io