Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

docs(github): 统一项目入口并启用每日 Star 图

longmeidaod5af063f4611
diff --git a/.github/workflows/star-history.yml b/.github/workflows/star-history.yml
new file mode 100644
index 000000000..141ebfcbe
--- /dev/null
+++ b/.github/workflows/star-history.yml
@@ -0,0 +1,83 @@
+name: Star History
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '43 5 * * *'
+ push:
+ branches: [master]
+ paths: [.github/workflows/star-history.yml]
+
+permissions:
+ contents: read
+
+concurrency:
+ group: star-history
+ cancel-in-progress: false
+
+jobs:
+ render:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v7
+ - name: 生成蜜桃色绝对值图表
+ uses: leereilly/star-chart@e7fa78bdf8f78da6c3feeb3a97b528fd97d62727 # v0.3
+ with:
+ repository: ${{ github.repository }}
+ output: build/star-history.svg
+ style: neon-glow-stream
+ dual_theme: 'true'
+ scale: absolute
+ period: all
+ width: '900'
+ animation: none
+ level_1_color: '#ffded4'
+ level_2_color: '#ffb099'
+ level_3_color: '#f68168'
+ level_4_color: '#df533b'
+ - name: 保留渲染器许可
+ run: curl --fail --location https://raw.githubusercontent.com/leereilly/star-chart/e7fa78bdf8f78da6c3feeb3a97b528fd97d62727/LICENSE --output build/star-chart-LICENSE.txt
+ - uses: actions/upload-artifact@v7
+ with:
+ name: star-history
+ path: |
+ build/star-history-light.svg
+ build/star-history-dark.svg
+ build/star-chart-LICENSE.txt
+ if-no-files-found: error
+
+ publish:
+ needs: render
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v7
+ with:
+ path: publication
+ - uses: actions/download-artifact@v8
+ with:
+ name: star-history
+ path: incoming
+ - name: 发布到独立图表分支
+ working-directory: publication
+ shell: bash
+ run: |
+ branch_ref=$(git ls-remote --heads origin refs/heads/star-history)
+ if [ -n "$branch_ref" ]; then
+ git fetch --depth=1 origin star-history
+ git switch -C star-history FETCH_HEAD
+ else
+ git switch --orphan star-history
+ fi
+ cp ../incoming/star-history-light.svg star-history-light.svg
+ cp ../incoming/star-history-dark.svg star-history-dark.svg
+ cp ../incoming/star-chart-LICENSE.txt star-chart-LICENSE.txt
+ git add -- star-history-light.svg star-history-dark.svg star-chart-LICENSE.txt
+ if git diff --cached --quiet; then
+ exit 0
+ fi
+ git config user.name 'github-actions[bot]'
+ git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
+ git commit -m 'docs(stats): 更新 Star 图'
+ git push origin HEAD:refs/heads/star-history
diff --git a/docs/README_MAINTENANCE.md b/docs/README_MAINTENANCE.md
index d2d3b1c9f..39a7f1086 100644
--- a/docs/README_MAINTENANCE.md
+++ b/docs/README_MAINTENANCE.md
@@ -118,4 +118,4 @@ SHA-256 对不上是硬错误,不降级放行。
- **演示素材**:README 里任何截图或视频都按上面「演示数据集」一节的边界取图,换素材时重新核对
那几条边界。
- **篇幅取舍(2026-10-27)**:参考 amane 的一行一功能与安装入口,以及 SakuraMedia 的主图与折叠截图。README 保留六条特色、安装表、文档导航和必要限制;参数、缓存、任务恢复、诊断与升级细节由专题文档承载。当前原文版本见 `docs/reference-sources.json`,不复制外部文案或使用条款。
-- **截图与 Star 历史(2026-10-27)**:五张电影演示库截图保留,首页主图直接展示,其余四张折叠;WebP 均链接 PNG 原图。Star History 使用 `/svg`,按用户要求展示累计 Star 数的线性坐标,图表与交互页均不传 `logscale`;保留深浅主题。接口缓存不代表实时数据,README 不承诺即时刷新。
+- **截图与 Star 历史(2026-10-27)**:五张电影演示库截图保留,首页主图直接展示,其余四张折叠;WebP 均链接 PNG 原图。Star History 使用 MIT 许可的 Star Chart,采用蜜桃色 `neon-glow-stream`、线性绝对值坐标和深浅主题。独立 GitHub Actions 每日生成 SVG,仅写入 `star-history` 分支,README 不承诺即时刷新;渲染器版本和许可见 [复用记录](REUSE.md)。
diff --git a/docs/REUSE.md b/docs/REUSE.md
index 2ec2593b3..41b872197 100644
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@ -1,5 +1,11 @@
# 复用清单
+## README Star 图
+
+复用 [Star Chart](https://github.com/leereilly/star-chart) 的稳定版 v0.3,固定提交 `e7fa78bdf8f78da6c3feeb3a97b528fd97d62727`,MIT,版权为 Lee Reilly。使用 `neon-glow-stream` 霓虹流图、线性绝对值坐标、浅深双主题与蜜桃粉橙配色;不新增应用运行依赖。数据来自 GitHub 原生公开 Star 历史,不补造缺失记录,也不把历史累计增加数当作完整取消 Star 的净变化账本。
+
+独立 `Star History` 工作流生成 SVG 并保留上游许可,只在 `star-history` 分支保存产物,不触发主线测试或阻塞发版。静态 SVG 发布思路参考 SakuraMedia;未复制其受 PolyForm Noncommercial 约束的生成脚本。
+
## 复核字段筛选与文本差异
复核文本差异复用 [jsdiff](https://github.com/kpdecker/jsdiff) 的 `diffChars`,前端精确固定 `[email protected]`(BSD-3-Clause,自带类型),按 Unicode 码点比较并仅展示当前文本中的差异片段。当前值和候选相互对照,尚无当前值时对照其他来源;来源依据只比较同名字段。Peach 保留参照选择、语义高亮与字段筛选,不自行实现通用差异算法;原始候选值、提交契约和 ledger 均不改变。