Skip to content

chore: fix en deploy trigger and zh ch01 SUMMARY placeholder#46

Merged
Sunrisepeak merged 1 commit intomainfrom
chore/cleanup-summary-and-deploy-trigger
Apr 25, 2026
Merged

chore: fix en deploy trigger and zh ch01 SUMMARY placeholder#46
Sunrisepeak merged 1 commit intomainfrom
chore/cleanup-summary-and-deploy-trigger

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Summary

review ch02 文档 PR 时顺手发现的两个小问题,合到一个清理 PR:

  1. `online-ebook.yml` 触发路径只覆盖 zh — `paths: ["book/src/"]` 漏了 `book/en/src/`,所以纯 en 的 PR 不会触发部署。增加 en 路径条目,让 en-only 的章节翻译也能自动重新部署 GitHub Pages 站点。

  2. zh `SUMMARY.md` 里 ch01 是 `[...]` 占位 — 从 2025-07 sunrisepeak 当时章节做 stub 时留下的占位标签。换成正经标题 `default和delete - 默认/删除函数`,与 en 侧 "Defaulted and Deleted Functions" 对齐。注意:ch01 的 .md 内容本身依旧是 stub,需要后续单独写正文。

Test plan

  • 自动触发本 deploy workflow(这个 PR 改了 `.github/workflows/` 但触发路径不含此目录,所以本 PR 合入后不会自动部署 — 是预期行为)
  • 下一次仅修改 `book/en/src/**` 的 PR 合入后,`Deploy Online EBook site to Pages` workflow 能触发并跑成功
  • zh 在线版 ch01 sidebar 显示 "default和delete - 默认/删除函数" 而不是 `...`

Two small follow-ups noticed while reviewing the ch02 PR:

1. online-ebook.yml only triggered on book/src/** changes, so an
   en-only PR (e.g. an upcoming en translation of 15-variadic-templates)
   would silently skip GitHub Pages redeploy. Add book/en/src/** to the
   trigger paths.

2. zh SUMMARY.md had [...] as the visible label for ch01, left over
   from the chapter being a stub since 2025-07. Replace with a proper
   title matching the en side ("Defaulted and Deleted Functions"). The
   chapter body itself is still a stub and remains tracked as TODO.
@Sunrisepeak Sunrisepeak merged commit 0760698 into main Apr 25, 2026
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