Repository navigation
feat(site): 有独立域名的产品直接链到其站点首页 - #30
Merged
Merged
Conversation
- products.ts 新增目标类型 page.site:产品自己域名的站点首页(中文 /zh/、 英文 /)。首页卡片、应用菜单、页脚、产品页末尾的「下一个」和首页 ItemList 结构化数据都经 productHref,一并指向 voltip.firlab.app - 删除 firlab.app/voltip/ 产品页,以及只供它使用的 DefRows 组件和产品页头的 「网站」按钮;schema.ts 去掉不再使用的 voltip 实体 - /voltip/、/en/voltip/ 以及 Voxera 的旧地址一跳重定向到站点首页 - DESIGN.md 写明这条规则:有独立域名的产品在本站没有页面
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)的不同之处
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.
改动
点击 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 不再列出它们。DESIGN.md写明这条规则。验证
dist/,核对每个页面上产品链接的去向、ItemList 的 url、四个旧地址的重定向目标和 sitemap):改动前在main上报 40 处,改动后 0 处。node scripts/check-versions.mjs通过;pnpm check0 errors / 0 warnings;pnpm build6 个页面,dist/CNAME为firlab.app。https://voltip.firlab.app/zh/;打开/voltip/落到https://voltip.firlab.app/zh/;英文 AgentLens 页的「下一个」指向https://voltip.firlab.app/。320px 暗色下首页、CodeGraph、AgentLens 中英文 6 个页面无横向滚动,四个弹出面板都在屏幕内。🤖 Generated with Claude Code