✨ feat(website): GitHub Pages 部署流水线 + 子路径适配 - #447
Merged
Conversation
- astro.config 增加 site/base(https://cavinhuang.github.io + /lume) - withBase/stripBase 助手统一站内链接前缀;stripBase 兼容构建期 pathname 无尾斜杠形态(首页 /lume 曾产出 /en/lume 坏链) - md 内部链接改相对路径,双语下自动指向对应语言页面 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
push main 触发(paths 限定 website 与本 workflow)+ 手动 dispatch; check + build 后经 upload-pages-artifact / deploy-pages 发布, concurrency 防并发覆盖 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Owner
Author
Code Review流水线与链接层工程质量扎实(触发面/权限/Actions 版本/产物路径全对; [P1] 英文页面 chrome 整体退化为中文
修法任选其一:
修复后建议对 /en 页做一次目检。 P2(不阻塞)
P3(后续增强)无 bun install 缓存; 结论修掉 getLangFromUrl base 感知(P1)即可合;P2 两项建议顺手带上。 |
…feat/website-pages-deploy
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.
概述
接 #421,把官网部署到 GitHub Pages(
https://cavinhuang.github.io/lume/)。.github/workflows/deploy-website.yml:push main(paths 限定packages/website/**)或手动 dispatch 触发 →astro check+astro build→ upload/deploy-pages 官方 Action 发布;concurrency 组防并发覆盖site+base: '/lume';新增withBase/stripBase助手统一站内链接前缀,md 内部链接改相对路径(双语自动指向对应语言)build_type=workflow验证
astro check0 错误、astro build18 页通过/lume/下,无遗漏无重复前缀/lume/en/lume坏链🤖 Generated with Claude Code