Add update log page with activity heatmap and timeline#351
Merged
Conversation
参考 Robotics_Notebooks 的 change-log 页面,为本站新增 /updates.html: - scripts/generate_updates_data.py:构建期从 git 历史单遍扫描 papers/**/*.md(跟随重命名),生成 _data/updates.json —— 每日「新增 / 维护」笔记清单与标题元数据(取自 papers.json) - updates.html:GitHub 风格 53 周活跃度热力图(分档取非零日计数 四分位)+ 按日时间线(新增/维护徽章、分类标注、超长日折叠), 点击方格筛选当日;随站点主题与中英文切换整体重渲染 - 配色适配本项目并通过顺序色板校验(亮度单调、相邻 ΔL ≥ 0.06、 最浅档对底色 ≥ 2:1):暗色用 VS Code 蓝,顶档锚定 --link / --link-hover(#569cd6 / #9cdcfe);亮色用 arXiv 红,锚定 #b31b1b / #8b1515 - 主页头部新增「📅 更新记录」入口胶囊链接 - deploy.yml 在 inject_reading_dates 后运行数据生成(复用 fetch-depth: 0 的完整历史);提交 updates.json 快照以便本地预览 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D6GD1AnohThNNJVohDkrch
hero 原为五行居中堆叠(标题/描述/篇数/⭐️图例/更新记录胶囊), 信息冗余且拥挤: - 删除与标题近乎重复的描述行 - 篇数与「📅 更新记录」入口合并为一行并排胶囊芯片 - ⭐️ 开源图例移至搜索框上方右对齐小字,紧邻其注释的卡片区 - hero 底部留白 1.5rem → 1.1rem;清理不再使用的 .subtitle / .index-updates-link / .updates-entry-* 样式 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D6GD1AnohThNNJVohDkrch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new "Update Log" page that displays a GitHub-style activity heatmap and day-by-day timeline of paper note additions and maintenance, derived from the repository's git commit history.
Key Changes
New page:
updates.html— renders an interactive update log with:Data generation:
scripts/generate_updates_data.py— new Python script that:git log --name-status --topo-order) to track note lifecycle_data/updates.jsonwith per-day activity and note metadatatests/test_generate_updates_data.py)Styling: ~400 lines of CSS in
assets/css/style.cssfor:Integration:
index.html.github/workflows/deploy.ymlto regenerate data on each deploy_data/updates.jsonfor local preview supportImplementation Details
https://claude.ai/code/session_01D6GD1AnohThNNJVohDkrch