返回顶部
s

smartpage智能页面

Auto-fit Markdown to one A4 page. Binary search optimal font size, render with 10 themes, export PDF+PNG+MD.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
93
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

smartpage

工作流程

当用户要求将文档格式化/排版为一页A4纸时:

  1. 1. 初始化(如果仓库不存在):
bash git clone https://github.com/fxjhello/SmartPage.git cd SmartPage npm install
  1. 2. 如有需要,先将源文件(PDF/DOCX/Excel)转换为Markdown格式
  1. 3. 将Markdown写入临时文件
  1. 4. 运行CLI(默认输出至用户桌面):
bash npm smartpage <文件.md> --theme <主题> --output-dir <用户桌面路径>
  1. 5. 读取输出文件(PDF/PNG/MD),发送给用户
  1. 6. 交付后,务必:
- 询问:效果满意吗?如需微调可以帮你打开 Web 编辑器 - 若用户希望调整,启动开发服务器并打开浏览器: bash cd SmartPage npm run dev

然后在浏览器中为用户打开 http://localhost:5173

CLI选项

标志默认值可选值
--themeclassicclassic, warm, academic, editorial, smartisan, noir, mint, ink, tech, kraft
--font
Noto Sans SC | 任意字体族 | | --margin | 20 | 毫米 | | --line-height | 1.5 | 比例 | | --paragraph-spacing | 0.5 | em | | --first-line-indent | 0 | em | | --output-dir | (当前目录) | 路径 | | --output-name | output | 不含扩展名的文件名 |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 smartpage-1775886374 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 smartpage-1775886374 技能

通过命令行安装

skillhub install smartpage-1775886374

下载

⬇ 下载 smartpage v1.0.0(免费)

文件大小: 1.52 KB | 发布时间: 2026-4-12 11:27

v1.0.0 最新 2026-4-12 11:27
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部