DocForge

English · 繁體中文

狀態:預發布版(v0.1.0)。 CLI、schema、lint 與 DOCX 匯出已可使用,並在 Word 中驗證過。詳見路線圖與變更紀錄。

DocForge 是一個讓 AI 能穩定產生**可編輯 Word(DOCX)**文件的框架,是 SlideForge(HTML/CSS → PPTX)的文件版姊妹專案:AI 只撰寫嚴格驗證的 JSON 內容,由 DocForge 負責渲染、預覽、lint 與匯出。

嚴格 JSON ─► 驗證 + lint ─► HTML ─► gordon-doc (Pandoc) ─► DOCX ─► 結構驗證
                    └─► HTML 預覽                       └─► PDF + PNG 頁面(Word)

快速開始

npm install && npm run build
node dist/cli/index.js init document.json
node dist/cli/index.js check document.json
node dist/cli/index.js export document.json --output document.docx
node dist/cli/index.js preview document.json --engine word-com

需求:Node.js 24+、Pandoc、gordon-doc。詳見 docs/zh-TW/guide.md。

原則

文件

繁體中文指南 · CLI · schema · 範本 · 驗證 · AI 工作流程 · 限制 · 路線圖 · 變更紀錄(其餘文件為英文)。