Commit 9ab6c233 authored by AI Bot's avatar AI Bot

pyftsubset 依赖(fonttools+brotli)纳入 requirements.txt,CI 构建前安装

Co-Authored-By: 's avatarClaude Code <noreply@anthropic.com>
parent 541ac983
...@@ -17,6 +17,7 @@ compile_articles_and_preview: ...@@ -17,6 +17,7 @@ compile_articles_and_preview:
- master - master
script: script:
- yarn - yarn
- pip3 install -r requirements.txt
- node utils/articleAggregate.js - node utils/articleAggregate.js
- sh utils/imageCompress.sh - sh utils/imageCompress.sh
- sh utils/commit.sh - sh utils/commit.sh
......
# 时间线字体子集生成依赖(scripts/build-timeline-font.js 调用 pyftsubset)
fonttools==4.58.1
brotli==1.1.0
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// static/fonts/woff2/MiSans-Timeline-Light.woff2(base.css 中 @font-face 引用)。 // static/fonts/woff2/MiSans-Timeline-Light.woff2(base.css 中 @font-face 引用)。
// //
// 用法: npm run build 时自动执行(或 node scripts/build-timeline-font.js) // 用法: npm run build 时自动执行(或 node scripts/build-timeline-font.js)
// 依赖: python3 + fonttools + brotli (pip install fonttools brotli) // 依赖: python3 + 仓库根目录 requirements.txt (pip3 install -r requirements.txt,CI 已装)
// //
// timeline.md 新增文案后构建时会自动重新子集化;若构建机缺少 pyftsubset, // timeline.md 新增文案后构建时会自动重新子集化;若构建机缺少 pyftsubset,
// 则沿用仓库里已生成的 woff2 继续构建(新字符会回退系统字体,不阻塞发布)。 // 则沿用仓库里已生成的 woff2 继续构建(新字符会回退系统字体,不阻塞发布)。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment