From bc1a4dc2d17a5be39be0d6f35fa13cd6541bfddc Mon Sep 17 00:00:00 2001 From: Evan <88482418+Li-Evan@users.noreply.github.com> Date: Mon, 16 Nov 2026 15:59:33 +0800 Subject: [PATCH] chore: point every link at the renamed repo Li-Evan/BloomTutor What: - The repo is being renamed from Li-Evan/Bloom to Li-Evan/BloomTutor so GitHub search matches "tutor" (and "bloomtutor", the domain) in the repo name. - Rewrote every Li-Evan/Bloom reference: README / README.zh badges, clone commands, plugin marketplace command and star-history chart, plugin.json homepage/repository, nav.ts GITHUB_URL (+ its test), the landing site's GitHub link, and the User-Agent contact URL of the knowledge scripts. - site/astro.config.mjs: base '/Bloom' -> '/BloomTutor'. GitHub does not redirect project Pages URLs after a rename, so the landing page moves to https://li-evan.github.io/BloomTutor/ and must be rebuilt with the new base. How to verify: - Ran `npm ci && npm run build` in site/: dist/index.html loads its CSS and favicon from /BloomTutor/..., no "/Bloom/" left. - `git grep -i -E 'li-evan/bloom([^-a-z0-9t]|$)'` returns nothing. - Frontend/backend tests run in CI on this PR. - After merge: https://li-evan.github.io/BloomTutor/ renders with styles, and https://github.com/Li-Evan/Bloom redirects to Li-Evan/BloomTutor. How to roll back: - git revert - Renaming the repo back to Bloom (Settings -> Repository name) is also needed, otherwise the reverted base '/Bloom' builds a site that is served under /BloomTutor and loses its CSS. --- .claude-plugin/plugin.json | 4 ++-- README.md | 18 +++++++++--------- README.zh.md | 18 +++++++++--------- backend/scripts/knowledge/build_l5_release.py | 2 +- backend/scripts/knowledge/build_supplement.py | 2 +- frontend/src/app/theme.css | 2 +- frontend/src/lib/nav.ts | 2 +- frontend/tests/finishing.test.mjs | 2 +- frontend/tests/shell.test.mjs | 2 +- site/README.md | 6 +++--- site/astro.config.mjs | 4 ++-- site/src/pages/index.astro | 2 +- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 1aa8da7..7e7900d 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -7,8 +7,8 @@ "name": "Li Zhengping", "url": "https://github.com/Li-Evan" }, - "homepage": "https://github.com/Li-Evan/Bloom", - "repository": "https://github.com/Li-Evan/Bloom", + "homepage": "https://github.com/Li-Evan/BloomTutor", + "repository": "https://github.com/Li-Evan/BloomTutor", "license": "MIT", "keywords": [ "claude-code", diff --git a/README.md b/README.md index c1212b6..e5cc643 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@

- GitHub stars + GitHub stars MIT License - Last commit + Last commit Python 3.11+ Node.js 20+ Next.js 15 @@ -54,7 +54,7 @@ Both follow the same flow: **syllabus → lesson → annotate → feedback → n Requires only [Claude Code](https://claude.com/claude-code). No backend. ```bash -git clone https://github.com/Li-Evan/Bloom.git +git clone https://github.com/Li-Evan/BloomTutor.git cd Bloom # Install the tutor skill locally for this clone @@ -69,7 +69,7 @@ Then say: `Create a new folder and help me learn [any topic]` **Or install it as a plugin** (bundles `bloom-tutor` plus the `learn-*` skills) — in Claude Code: ```text -/plugin marketplace add Li-Evan/Bloom +/plugin marketplace add Li-Evan/BloomTutor /plugin install bloom@li-evan ``` @@ -88,7 +88,7 @@ The web app is a self-hosted, single-user tutor: no accounts, no billing. You br ### Setup ```bash -git clone https://github.com/Li-Evan/Bloom.git +git clone https://github.com/Li-Evan/BloomTutor.git cd Bloom make setup # creates .env with a random BACKEND_JWT_SECRET, installs backend and frontend deps @@ -253,11 +253,11 @@ make up / make down # docker compose start / stop ## Star History - + - - - Star History Chart + + + Star History Chart diff --git a/README.zh.md b/README.zh.md index 365e04e..3009da2 100644 --- a/README.zh.md +++ b/README.zh.md @@ -15,9 +15,9 @@

- GitHub stars + GitHub stars MIT License - Last commit + Last commit Python 3.11+ Node.js 20+ Next.js 15 @@ -54,7 +54,7 @@ 只需要 [Claude Code](https://claude.com/claude-code),无需后端。 ```bash -git clone https://github.com/Li-Evan/Bloom.git +git clone https://github.com/Li-Evan/BloomTutor.git cd Bloom # 将导师 skill 安装到当前 clone 的本地 Claude Code skills 目录 @@ -69,7 +69,7 @@ claude **或者作为插件安装**(打包了 `bloom-tutor` 和全部 `learn-*` skill)—— 在 Claude Code 里: ```text -/plugin marketplace add Li-Evan/Bloom +/plugin marketplace add Li-Evan/BloomTutor /plugin install bloom@li-evan ``` @@ -88,7 +88,7 @@ Web 版是自己部署、只给自己用的 AI 私教:没有账号,也不收 ### 安装 ```bash -git clone https://github.com/Li-Evan/Bloom.git +git clone https://github.com/Li-Evan/BloomTutor.git cd Bloom make setup # 生成 .env(带随机的 BACKEND_JWT_SECRET),装好前后端依赖 @@ -252,11 +252,11 @@ make up / make down # docker compose 启动 / 停止 ## 星标历史 - + - - - Star History Chart + + + Star History Chart diff --git a/backend/scripts/knowledge/build_l5_release.py b/backend/scripts/knowledge/build_l5_release.py index 6d89ebc..6a09853 100644 --- a/backend/scripts/knowledge/build_l5_release.py +++ b/backend/scripts/knowledge/build_l5_release.py @@ -26,7 +26,7 @@ WIKI = "https://en.wikipedia.org/w/api.php" WIKIDATA = "https://www.wikidata.org/w/api.php" -UA = {"User-Agent": "BloomKnowledgeRelease/0.1 (https://github.com/Li-Evan/Bloom)"} +UA = {"User-Agent": "BloomKnowledgeRelease/0.1 (https://github.com/Li-Evan/BloomTutor)"} ZH_ORDER = ("zh-hans", "zh-cn", "zh", "zh-sg", "zh-my", "zh-hant", "zh-tw", "zh-hk", "zh-mo") SIMPLIFIED = {"zh-hans", "zh-cn", "zh-sg", "zh-my"} MAX_ALIASES = {"en": 2, "zh": 3} # Wikidata 的别名噪音不小,多了只会让检索候选变杂、表变大 diff --git a/backend/scripts/knowledge/build_supplement.py b/backend/scripts/knowledge/build_supplement.py index f76dbf6..4b6afe4 100644 --- a/backend/scripts/knowledge/build_supplement.py +++ b/backend/scripts/knowledge/build_supplement.py @@ -20,7 +20,7 @@ from app.knowledge_graph import new_node_id -UA = {"User-Agent": "BloomKnowledgeRelease/0.1 (https://github.com/Li-Evan/Bloom)"} +UA = {"User-Agent": "BloomKnowledgeRelease/0.1 (https://github.com/Li-Evan/BloomTutor)"} ZH_ORDER = ("zh-hans", "zh-cn", "zh", "zh-sg", "zh-my", "zh-hant", "zh-tw", "zh-hk") SIMPLIFIED = {"zh-hans", "zh-cn", "zh-sg", "zh-my"} TO_SIMPLIFIED = opencc.OpenCC("t2s") diff --git a/frontend/src/app/theme.css b/frontend/src/app/theme.css index 941e1fe..c2d1ece 100644 --- a/frontend/src/app/theme.css +++ b/frontend/src/app/theme.css @@ -13,7 +13,7 @@ 暗色下的灰字:--muted-foreground #b2aca7(说明文字、正文里的次要句,在页面底 / 卡片 / 推荐包行底 / 用量表头底上 8.8 / 7.8 / 7.3 / 7.2:1,都 ≥ 7:1)、 --subtle-foreground #a39d98(脚注、占位符,在页面底 / 卡片上 7.4 / 6.5:1);原来是 #a8a29e / #8a837d,卡片上只有 6.9 / 4.7:1,首页暗色小灰字难读。 翠绿填充上的字(首页「然后循环」卡、底部行动区)用 --primary-foreground / stone-950(8.0:1),不用 emerald-950(6.1:1)。 - 色值的来源:https://li-evan.github.io/Bloom/ 的样式表里 --color-emerald-* 是 oklch(Tailwind v4),按 oklch → sRGB 换算成十六进制写在这里; + 色值的来源:https://li-evan.github.io/BloomTutor/ 的样式表里 --color-emerald-* 是 oklch(Tailwind v4),按 oklch → sRGB 换算成十六进制写在这里; 源码里的 emerald-* 工具类本来就是 v4 色板,和这些令牌是同一套。 */ :root { diff --git a/frontend/src/lib/nav.ts b/frontend/src/lib/nav.ts index aa38e4c..2b14a98 100644 --- a/frontend/src/lib/nav.ts +++ b/frontend/src/lib/nav.ts @@ -2,7 +2,7 @@ export type NavLinkDef = { key: string; href: string }; -export const GITHUB_URL = "https://github.com/Li-Evan/Bloom"; +export const GITHUB_URL = "https://github.com/Li-Evan/BloomTutor"; export const MAIN_NAV: NavLinkDef[] = [ { key: "courses", href: "/learn" }, diff --git a/frontend/tests/finishing.test.mjs b/frontend/tests/finishing.test.mjs index b9bb826..d13edab 100644 --- a/frontend/tests/finishing.test.mjs +++ b/frontend/tests/finishing.test.mjs @@ -161,7 +161,7 @@ test("文字绿令牌 --primary-text:亮 #007a55(v4 emerald-700)、暗 #00 assert.ok(contrast(theme_token(light, "primary-hover"), theme_token(light, "background")) < 2); }); -// ── 绿色令牌 = 原官网(https://li-evan.github.io/Bloom/)用的 Tailwind v4 emerald 色板 ── +// ── 绿色令牌 = 原官网(https://li-evan.github.io/BloomTutor/)用的 Tailwind v4 emerald 色板 ── // 原官网样式表里的 --color-emerald-*(oklch,Tailwind v4 默认色板;200 / 800 / 900 按 v4 默认值,官网没用到) const EMERALD_OKLCH = { diff --git a/frontend/tests/shell.test.mjs b/frontend/tests/shell.test.mjs index 53604fd..4639d49 100644 --- a/frontend/tests/shell.test.mjs +++ b/frontend/tests/shell.test.mjs @@ -187,7 +187,7 @@ test("页脚:带 data-site-footer,HideFooter 用同一个选择器关掉它 test("顶栏、手机抽屉、页脚都有开源仓库的 GitHub 链接,Twelve Tools 徽章已去掉", async () => { const { GITHUB_URL } = await import("../src/lib/nav.ts"); - assert.equal(GITHUB_URL, "https://github.com/Li-Evan/Bloom"); + assert.equal(GITHUB_URL, "https://github.com/Li-Evan/BloomTutor"); const link = await read("components/site/header/github-link.tsx"); assert.match(link, /href=\{GITHUB_URL\}/); diff --git a/site/README.md b/site/README.md index d069f17..181e51a 100644 --- a/site/README.md +++ b/site/README.md @@ -34,12 +34,12 @@ npm run preview # serve the production build locally `site/dist` is a plain static bundle — deploy it anywhere (Vercel, Netlify, Cloudflare Pages, GitHub Pages, S3…). The app's own deploy is unaffected. -**GitHub Pages (live):** deployed at **** via +**GitHub Pages (live):** deployed at **** via [`../.github/workflows/deploy-site.yml`](../.github/workflows/deploy-site.yml), which auto-runs on every change under `site/`. `astro.config.mjs` already sets -`base: '/Bloom'` for the project page. For a custom domain or user page, set `base` +`base: '/BloomTutor'` for the project page. For a custom domain or user page, set `base` back to `'/'`, point `site:` at the domain, and add `public/CNAME`. -The "Get started" CTAs link to the [GitHub repo](https://github.com/Li-Evan/Bloom) +The "Get started" CTAs link to the [GitHub repo](https://github.com/Li-Evan/BloomTutor) and the local quick-start. If you ever host the web app publicly, point those CTAs at that URL. diff --git a/site/astro.config.mjs b/site/astro.config.mjs index 6a6af7a..fc90769 100644 --- a/site/astro.config.mjs +++ b/site/astro.config.mjs @@ -8,9 +8,9 @@ import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ // Your deployed URL. Used for canonical links / sitemap. site: 'https://li-evan.github.io', - // Served from a GitHub *project* page at li-evan.github.io/Bloom — asset paths resolve under /Bloom. + // Served from a GitHub *project* page at li-evan.github.io/BloomTutor — asset paths resolve under /BloomTutor. // For a custom domain or user page, set base back to '/' (or remove this line). - base: '/Bloom', + base: '/BloomTutor', vite: { plugins: [tailwindcss()], }, diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro index 8112b37..3292103 100644 --- a/site/src/pages/index.astro +++ b/site/src/pages/index.astro @@ -1,7 +1,7 @@ --- import Base from '../layouts/Base.astro'; -const GITHUB = 'https://github.com/Li-Evan/Bloom'; +const GITHUB = 'https://github.com/Li-Evan/BloomTutor'; const COPY = { en: {