Repository navigation
feat(pt-tools): 新增 pt-tools 文档站,取代产品页发布到 firlab.app/pt-tools/ - #14
Merged
Merged
Conversation
- VitePress 1.6.4 子站沿用 Voltip 站点的主题,中文为根语言、英文在 /en/ - 以 /pt-tools/ 为 base 构建,check-dist.sh 检查两种语言与所有站内链接、资源和 sitemap 都在 /pt-tools/ 之下 - sync-pt-tools-docs.sh 从 pt-tools 的 docs/ 同步页面,缺页、单语页面、未注册组件和禁用词会让同步停止 - pt-tools-site-ci.yml 在 PR 上构建并检查子站
- deploy.yml 在主站之后构建并检查 pt-tools 子站,复制到 dist/pt-tools/;主站若仍生成该目录则部署失败 - 删除主站的 pt-tools 产品页,首页条目按语言链到 /pt-tools/ 与 /pt-tools/en/ - 旧的英文产品页 /en/pt-tools/ 跳转到 /pt-tools/en/ - robots.txt 增加子站的 sitemap
- DESIGN.md 新增 §12:取代产品页的取舍、与 Voltip 站点的差异,以及 /pt-tools/ 构建的实测结果 - §4 的 pt-tools 条目与 §7 中关于产品页的两条记录按现状更新 - README 的文档站段落改为四个子站,pt-tools 与 Lockra 一样发布在主站路径下
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.
改动
pt-tools/:pt-tools 文档站,VitePress 1.6.4,base: '/pt-tools/'。主题沿用 Voltip 站的配色、按钮与链接、代码对比度和首页结构(前缀pt-);中文为根语言、英文在/pt-tools/en/,正文用 pt-tools Web 界面同款的系统字体,代码字体 JetBrains Mono 自托管。页面内容来自 sunerpy/pt-tools 的docs/,当前同步自 pt-tools@dd8ba0a。pt-tools/scripts/sync-pt-tools-docs.sh:同步脚本。写入前检查页面是否缺失、中英是否一一对应、组件是否已注册、是否使用禁用词;只有中文的贡献者指南和设计文档会生成不收录的英文指引页。pt-tools/scripts/check-dist.sh:检查两种语言都已生成,所有站内链接、资源和 sitemap 条目都在/pt-tools/下。deploy.yml:在主站和 Lockra 之后构建并检查子站,放进dist/pt-tools/;主站如果仍生成该路径就停止部署,不覆盖。/pt-tools/与/pt-tools/en/;旧的英文页/en/pt-tools/跳转到/pt-tools/en/。中文地址/pt-tools/不变。public/robots.txt增加子站的 sitemap。pt-tools-site-ci.yml:在 PR 上构建并检查子站。README.md、DESIGN.md§12、pt-tools/README.md:内容归属、同步流程、一次性设置和实测结果;§4、§7 中关于产品页的记录按现状更新。src/i18n/versions.ts:同步 Voltip v0.0.18(今天 10:08 UTC 发布,否则 CI 的 check-versions 会报漂移)。站点挂在 firlab.app 的
/pt-tools/路径下,不需要域名、DNS 记录或新的 Pages 项目。验证
pnpm build、check-dist.sh通过(27 个中文页、26 个英文页)。deploy.yml的步骤组装主站、dist/lockra/与dist/pt-tools/:109 个页面中 4,243 个站内链接与资源全部能解析;主站不再生成dist/pt-tools/。/pt-tools/下的结果;/en/pt-tools/落到/pt-tools/en/;首页条目在中英文下分别进入/pt-tools/与/pt-tools/en/。pnpm check0 errors / 0 warnings;node scripts/check-versions.mjs全部一致;actionlint通过。合并时机
合并即上线。页面描述和截图对应 pt-tools 即将发布的版本,在 pt-tools 发版前,站上的截图会比 v0.47.3 新。需要先合并本 PR:pt-tools 的
docs-site.yml要检出 firlab 的main才能构建,publish-docs-site.yml要用到本 PR 加入的同步脚本。🤖 Generated with Claude Code