Skip to content

feat(site): 有独立域名的产品直接链到其站点首页 - #30

Merged
sunerpy merged 1 commit into
mainfrom
feat/site-direct-product-links
Oct 3, 2026
Merged

sunerpy merged 1 commit into
mainfrom
feat/site-direct-product-links

Conversation

@sunerpy

@sunerpy sunerpy commented Oct 3, 2026

Copy link
Copy Markdown
Owner

改动

点击 Voltip 这类有独立域名的产品时,直接打开它的站点首页,不再先进入 firlab.app 下的子路径页。

  • products.ts 新增一类目标 page.site:产品自己域名的站点首页,按语言区分(中文 /zh/,英文 /)。原来单独的 site 字段并入这一类。Voltip 改用它。
  • 所有入口都经 productHref,一并改为指向 voltip.firlab.app:首页卡片、顶栏应用菜单、页脚、产品页末尾的「下一个」、首页 ItemList 结构化数据。同一标签页打开,与 pt-tools、Lockra 一致。
  • 删除 firlab.app/voltip/ 产品页(VoltipPage.astro、i18n/voltip.ts、两个页面文件),以及只供它使用的 DefRows 组件和产品页头的「网站」按钮(站内产品页不会再有独立域名);schema.ts 去掉不再使用的 voltip 实体。
  • /voltip/、/en/voltip/ 和 Voxera 的 /voxera/、/en/voxera/ 一跳重定向到站点首页(noindex,canonical 指向目标),sitemap 不再列出它们。
  • pt-tools、Lockra(站点在 firlab.app 的子路径下)、CodeGraph、AgentLens 的去向不变。DESIGN.md 写明这条规则。

验证

  • 回归检查脚本(读 dist/,核对每个页面上产品链接的去向、ItemList 的 url、四个旧地址的重定向目标和 sitemap):改动前在 main 上报 40 处,改动后 0 处。
  • node scripts/check-versions.mjs 通过;pnpm check 0 errors / 0 warnings;pnpm build 6 个页面,dist/CNAME 为 firlab.app。
  • 本地预览 + Chrome:点击首页的 Voltip 卡片,同一标签页进入 https://voltip.firlab.app/zh/;打开 /voltip/ 落到 https://voltip.firlab.app/zh/;英文 AgentLens 页的「下一个」指向 https://voltip.firlab.app/。320px 暗色下首页、CodeGraph、AgentLens 中英文 6 个页面无横向滚动,四个弹出面板都在屏幕内。

🤖 Generated with Claude Code

- products.ts 新增目标类型 page.site:产品自己域名的站点首页(中文 /zh/、
  英文 /)。首页卡片、应用菜单、页脚、产品页末尾的「下一个」和首页 ItemList
  结构化数据都经 productHref,一并指向 voltip.firlab.app
- 删除 firlab.app/voltip/ 产品页,以及只供它使用的 DefRows 组件和产品页头的
  「网站」按钮;schema.ts 去掉不再使用的 voltip 实体
- /voltip/、/en/voltip/ 以及 Voxera 的旧地址一跳重定向到站点首页
- DESIGN.md 写明这条规则:有独立域名的产品在本站没有页面
@sunerpy
sunerpy merged commit f554f4b into main Oct 3, 2026
1 check passed
@sunerpy
sunerpy deleted the feat/site-direct-product-links branch October 3, 2026 14:55
sunerpy added a commit that referenced this pull request Oct 3, 2026
#30 删除了 Voltip 的站内页面,CodeGraph 的产品页也由本分支删除,站内只剩 AgentLens 一个产品页:

- DESIGN.md 开头的组件示例与 LangSwitch.astro、ui.ts 注释中的路径示例改用 AgentLensPage.astro 与 /en/agentlens/;
- schema.ts 的 EntityFragment 去掉不再使用的 'codegraph'(与 #30 去掉 'voltip' 相同),文档示例 IRI 改为 #agentlens;
- DESIGN.md §8 记录其中测量过的 /codegraph/ 页面已于同日由文档站取代(§13)。
sunerpy added a commit that referenced this pull request Oct 3, 2026
- codegraph/:CodeGraph 文档站(VitePress 1.6.4,base /codegraph/),中文为根语言,
  英文在 /codegraph/en/。外壳取自 pt-tools,样式前缀 cg-,字体为 Inter 与 JetBrains
  Mono;首页数据经 home-schema.ts 校验
- 页面同步自 codegraph-rust 的 docs/site/(首次同步来自 codegraph-rust@3b3cb5e);
  13 份英文规范参考发布到 /en/reference/ 与 /en/dev/,并各有一个中文指引页;
  sync-codegraph-docs.sh 写入前检查双语、组件、词表与截图,check-dist.sh 检查
  双语、base 与每个站内链接
- deploy.yml 在主站之后构建、检查子站并放入 dist/codegraph/;新增
  codegraph-site-ci.yml
- 删除主站的 CodeGraph 产品页;目录条目指向 /codegraph/ 与 /codegraph/en/,
  /en/codegraph/ 重定向到 /codegraph/en/,robots.txt 增加子站 sitemap,
  AppIcon 改为查看器的 BrandMark
- 合入 #30 后站内只剩 AgentLens 产品页:示例改指 AgentLens,schema.ts 去掉不再
  使用的 codegraph 实体
- DESIGN.md 新增 §13,记录与 Voltip 站点(§10–§12)的不同之处
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant