Skip to content

Commit d3b0e38

Browse files
xpqiuclaude
andcommitted
Publish site content; unify intro typography, prune dead code, automate cache-busting
- Copy: move "深入探索智能的本质与边界" into the hero line; "OpenMOSS 团队" wording - Typography: unify every intro/description paragraph to one .intro style (16px muted); bold page titles (h1) and home section title - Dead code: remove unreachable renderResearch() and ~74 unused CSS rules (style.css ~23% smaller); drop stale "research" route branch - Cache-busting: add scripts/bump_version.py + CI step stamping one uniform ?v= on all assets per deploy - Also commits site content: blog/, self-hosted fonts, GitHub-stars pipeline, .nojekyll; ignore __pycache__ Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0186a2e commit d3b0e38

353 files changed

Lines changed: 152243 additions & 561 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/static.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Deploy static content to Pages
33
on:
44
push:
55
branches: ["main"]
6+
schedule:
7+
# 每周一 12:00 北京时间 = 04:00 UTC(周一),刷新开源项目的 GitHub star 数据
8+
- cron: '0 4 * * 1'
69
workflow_dispatch:
710

811
permissions:
@@ -20,7 +23,22 @@ jobs:
2023
steps:
2124
- name: Checkout
2225
uses: actions/checkout@v4
23-
26+
27+
# 抓取 GitHub star,生成 assets/js/gh-stars-data.js(仅用 Python 标准库,无需额外依赖)
28+
- name: Set up Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: '3.12'
32+
33+
- name: Fetch GitHub stars
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
run: python scripts/fetch_stars.py
37+
38+
# 给所有静态资源打上统一的缓存版本号(提交短 SHA),避免手动维护 ?v= 导致版本漂移/缓存错乱
39+
- name: Stamp asset cache-busting version
40+
run: python scripts/bump_version.py "${GITHUB_SHA::12}"
41+
2442
# 这里直接上传整个仓库根目录作为 Pages 内容
2543
- name: Upload Pages artifact
2644
uses: actions/upload-pages-artifact@v3
@@ -36,4 +54,4 @@ jobs:
3654
steps:
3755
- name: Deploy to GitHub Pages
3856
id: deployment
39-
uses: actions/deploy-pages@v4
57+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
.DS_Store
2-
.claude/
2+
.claude/
3+
# Font build cache (large source TTFs downloaded by scripts/build-fonts.py)
4+
scripts/.fontcache/
5+
# Python bytecode cache
6+
__pycache__/
7+
*.pyc

.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)