CLAUDE.md

iHTCTeam 官网(iHTCTeam.github.io)— Jekyll 营销与支持站点,供 AI 助手与开发者快速理解约定。


项目 identity

仓库 iHTCTeam/iHTCTeam.github.io
线上 https://ihtcteam.github.io
构建 Jekyll + GitHub Pages
分支 main

Git 提交与发布(必须遵守)

每次提交并发布官网内容时,一律按以下流程执行,不要留多条历史 commit。

目标

标准命令(内容已全部改完后)

cd iHTCTeam.github.io

# 1. 孤儿分支 → 单 commit(含当前工作区全部文件)
git checkout --orphan temp-main
git add -A
git commit -m "Update website"
git branch -M main

# 2. 强制覆盖远程
git push -f origin main

若已在 main 且仅有未提交改动,也可 git add -A 后走上述 orphan 流程;不要git commit --amend 叠在旧历史上,应重建单 commit。

Commit message 禁忌

用户怎么说 → AI 应做什么

用户以下说法均表示 「改完官网内容后,按单 commit + force push 发布」

收到上述指令时:完成内容修改 → 执行 orphan 单 commit → message 写 Update websitegit push -f origin main,无需再向用户确认 force push(用户已默认可接受)。


内容结构速查

路径 职责
_data/apps.yml 各 App 元数据(apple_id、名称、tagline、accent 等)
_data/app_icons.yml App Store 图标 URL(由脚本同步)
_data/i18n.yml 站点 UI 三语文案
scripts/sync_app_icons.py 从 iTunes Lookup 拉取图标;美区无结果时回退 cnhktw
{AppName}/index.md App 支持页主文
{AppName}/privacy.md 隐私政策
{AppName}/faq.md 常见问题

新增 App:改 apps.yml → 建目录与 markdown → python3 scripts/sync_app_icons.py → 按上文 Git 流程发布。


编码约定

  1. 最小 diff — 只改任务相关文件
  2. 三语 section — 页面用 <section lang="en|zh-CN|zh-TW"> 保持一致
  3. 中性 commit — 发布只用 Update website
  4. 勿提交 — 除非用户明确要求;不修改 git config