Kami V1.6.0
Decks now begin in Markdown, and the same quiet rules carry them to PDF, PPTX, or the browser.
Changelog
- Marp Slide Deck Variant: a new Markdown-first deck path (EN/CN) under
assets/templates/marp/. One.mdsource renders to HTML, PDF, or PPTX viamarp-cli, and the theme CSS is self-contained, carrying the full Kami token set (parchment, ink-blue, serif rhythm). It joins WeasyPrint HTML-to-PDF (default) and python-pptx (editable) as a third, user-triggered slide path. Kami's own build pipeline does not callmarp; users runmarp-clithemselves. - Landing-Page Production Companion Files: five
.examplescaffolding files for shipping a generated landing page as a real multilingual site,llms.txt+llms-full.txtfor AI assistants,robots.txtwith an AI allowlist,sitemap.xmlwith hreflang, andvercel.jsonfor rewrites and headers. Documented in SKILL.md and packaged in the skill. - Site Reaches Five Languages: the official site adds Traditional Chinese and Korean pages alongside English, Simplified Chinese, and Japanese, with a collapsible language switcher that auto-detects the browser language.
- Scripts Split + Real Render CI:
build.pydropped from 1062 to 361 lines, split into focusedlint/checks/verify/tokens/optional_depsmodules. A newverify-renderCI job installs WeasyPrint plus Noto CJK and actually renders the strict-page-count templates, so page-count regressions can no longer slip through lint-only CI. The overflow solver gains end-to-end tests. - Robustness & CI Hardening: render verification now accepts DejaVu / Liberation as a serif fallback and adds a
KAMI_ALLOW_FALLBACK_ONLYopt-in so CI (which never has commercial fonts) can still gate page counts; the build warns clearly when Pygments is missing; Marp deck visuals tightened.
更新日志
- Marp 幻灯片: 多了一条用 Markdown 写幻灯片的路子(中英文),放在
assets/templates/marp/。同一份.md用marp-cli就能导出 HTML、PDF 或 PPTX,主题样式自成一体,内置整套 Kami 配色和字体节奏,不用再配额外 CSS。加上默认的 WeasyPrint(HTML 转 PDF)和 python-pptx(可编辑 PPT),出片现在有三种方式,按需挑一个。Kami 自己的构建流程不碰marp,要用时本地跑一下marp-cli就行。 - 落地页上线配套文件: 新增五个
.example脚手架,帮你把生成的落地页真正部署成多语言站点:给 AI 助手读的llms.txt和llms-full.txt、带 AI 抓取白名单的robots.txt、带 hreflang 的sitemap.xml,以及管 rewrite 和响应头的vercel.json。SKILL.md 里有说明,也一并打进了 skill 包。 - 官网支持五种语言: 在英文、简体中文、日文之外,新增繁体中文和韩文页面,配了个可折叠的语言切换器,会按浏览器语言自动跳转。
- 脚本拆分 + 渲染级 CI:
build.py从 1062 行瘦到 361 行,拆成职责清楚的lint、checks、verify、tokens、optional_deps五个模块。新增的verify-render任务会装上 WeasyPrint 和 Noto CJK,把限定页数的模板真正渲染一遍,页数超标再也绕不过只跑 lint 的 CI。溢出 solver 也补齐了端到端测试。 - 稳健性和 CI 加固: 渲染校验现在认 DejaVu、Liberation 作为 serif 回退,还加了
KAMI_ALLOW_FALLBACK_ONLY开关,让本来没有商业字体的 CI 也能卡页数;缺 Pygments 时构建会直接提示;顺手收紧了 Marp 幻灯片的视觉细节。
Kami is a quiet design system for professional documents, one constraint set that any agent can trust. https://github.com/tw93/Kami