运行时依赖
安装命令
点击复制技能文档
工作流
When user asks to 格式化/layout a document to one A4 page:
设置up (if repo not present):
git clone https://github.com/fxjhello/SmartPage.git cd SmartPage npm 安装
Convert source (PDF/DOCX/Excel) to Markdown first if needed
Write Markdown to a temp file
运行 命令行工具 (default 输出 to user 桌面):
npm smartpage --theme --输出-dir
Read 输出 files (PDF/PNG/MD), 发送 to user
After delivery, ALWAYS:
Ask: 效果满意吗?如需微调可以帮你打开 网页 编辑器 If user wants to tweak, 启动 the dev server and open the browser: cd SmartPage npm 运行 dev
Then open http://localhost:5173 in the browser for the user. 命令行工具 Options Flag Default Values --theme classic classic, warm, academic, editorial, smartisan, noir, mint, ink, tech, kraft --font Noto Sans SC Any font family --margin 20 mm --line-height 1.5 ratio --paragraph-spacing 0.5 em --first-line-indent 0 em --输出-dir (current dir) Path --输出-name 输出 Name without 扩展