diff --git a/docs/development/project-completion/archive-plays.md b/docs/development/project-completion/archive-plays.md index 271c86e..c126676 100644 --- a/docs/development/project-completion/archive-plays.md +++ b/docs/development/project-completion/archive-plays.md @@ -15,25 +15,30 @@ The workflow is driven by the `plays-archive` skill. - Application name (lowercase-kebab-case). - [Published profile](../project-completion.md#published-profile): bilingual title and - description, source address, and cover image. + description, and the source address. ## Steps 1. Confirm consent and a GitHub channel (GitHub MCP, a GitHub skill, or `gh`). 2. Generate a bilingual AI-functional summary under `plays//` (`README.md` / `.zh_CN.md`), merging the root README when one exists. -3. Add the cover image as `plays//-cover.`. -4. Handle each branch's root README independently. -5. Commit only the summary and cover on a dedicated branch; do not store the - firmware `.bin`. +3. Record the publish metadata — the bilingual title and description and the + source address — which include the cover image by file name and format, but + do not commit the cover image itself. The archive is text-only. +4. Handle each branch's root README independently (see + [readme-update.md](./readme-update.md) for the required README sync). +5. Commit only the summary on a dedicated branch; do not store the firmware + `.bin` or the cover image. 6. After review, open the archive PR against the upstream project. ## Safety -- Never store the merged firmware `.bin` in the archive; it is a build artifact. +- Never store the merged firmware `.bin` or the cover image in the archive; the + archive is text-only, and both are build/publish artifacts. - Do not submit before developer review and consent. ## Related documents - Application archive convention: [plays/README.md](../../../plays/README.md) - Skill: [plays-archive](../../../skills/plays-archive/SKILL.md) +- README update (required): [readme-update.md](./readme-update.md) diff --git a/docs/development/project-completion/archive-plays.zh_CN.md b/docs/development/project-completion/archive-plays.zh_CN.md index 9a50f83..6f51ed5 100644 --- a/docs/development/project-completion/archive-plays.zh_CN.md +++ b/docs/development/project-completion/archive-plays.zh_CN.md @@ -11,23 +11,24 @@ ## 输入 - 应用名(lowercase-kebab-case)。 -- [共享发布属性](../project-completion.md#共享发布属性):双语标题与简介、源码地址、封面图。 +- [共享发布属性](../project-completion.md#共享发布属性):双语标题与简介、源码地址。 ## 步骤 1. 确认同意与可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`)。 2. 在 `plays//` 下生成双语 AI 功能总结(`README.md` / `.zh_CN.md`),有根 README 时合并它。 -3. 添加封面图 `plays//-cover.`。 -4. 各自处理每个分支的根 README。 -5. 只在专门分支上提交总结与封面;不存固件 `.bin`。 +3. 记录发布元数据——双语标题与简介、源码地址,其中包括封面按文件名与格式记录;但不提交封面图本身。档案为纯文本(text-only)。 +4. 各自处理每个分支的根 README(必需的 README 同步见 [readme-update.md](./readme-update.md))。 +5. 只在专门分支上提交总结;不存固件 `.bin`,也不存封面图。 6. 经审查后,向上游项目开归档 PR。 ## 安全 -- 绝不在档案中保存合并固件 `.bin`;它是构建产物。 +- 绝不在档案中保存合并固件 `.bin`,也不保存封面图;档案为纯文本,两者都是构建/发布产物。 - 未经开发者审查与同意,不提交。 ## 相关文档 - 应用档案约定:[plays/README.md](../../../plays/README.md) - Skill:[plays-archive](../../../skills/plays-archive/SKILL.md) +- README 更新(必须):[readme-update.md](./readme-update.md) diff --git a/docs/development/project-completion/readme-update.md b/docs/development/project-completion/readme-update.md index b203b36..4329f96 100644 --- a/docs/development/project-completion/readme-update.md +++ b/docs/development/project-completion/readme-update.md @@ -17,21 +17,40 @@ branches, so root READMEs exist on multiple branches. Handle each branch's root README independently — the `main` README and a `feature/*` branch README are separate decisions. +## When this is required + +The README update is **required whether or not the application is archived.** +Archiving to `plays/` (action D) is optional — the developer may decline — but +the README must still be updated on the hosting branch and on fork `main` so the +application is registered where it is developed. + ## Rules - Only touch fork-owned root READMEs (`README.md` / `README.zh_CN.md`); do not modify the upstream project overview at `docs/README.md`. - Check the root README on each relevant branch (`main` and the current `feature/*` branch), not just one branch. +- The fork `main` root README is the **catalog of the fork's projects**: it + **fully includes** the content of each project's own README — a complete + description of what the application does and how to use it (its interactions, + modes, keys, persistence, and notes) — not a one-line intro followed by a + branch link. Pull the content from the hosting branch's README. +- The fork root README and the hosting branch's root README are fork-owned + content. Commit them directly (merge) rather than opening a PR; open a PR only + when the change is meant to go upstream. - Follow the repository language rule: English at the default `.md` path and Simplified Chinese at the paired `.zh_CN.md`, aligned in the same change. ## Steps 1. Confirm consent and a GitHub channel (GitHub MCP, a GitHub skill, or `gh`). -2. For each relevant branch, check whether a fork-owned root README exists. -3. If it exists, update it to include the newly archived application. -4. If it does not exist, create a fork-owned root README describing the product. +2. On the hosting `feature/*` branch: create the bilingual README pair if it is + missing, or update it to add or refresh the application's own description. +3. On fork `main`: update the root README pair so the released application is + discoverable from the repository landing page, fully including the hosting + branch's README content. +4. Commit the README updates directly to the branch / fork `main` (fork-owned + content); do not open a PR for this unless it is an upstream change. ## Related documents diff --git a/docs/development/project-completion/readme-update.zh_CN.md b/docs/development/project-completion/readme-update.zh_CN.md index 180fc9b..fea72ce 100644 --- a/docs/development/project-completion/readme-update.zh_CN.md +++ b/docs/development/project-completion/readme-update.zh_CN.md @@ -10,18 +10,24 @@ fork 的 `main` 与上游保持同步,产品工作放在 `feature/*` 分支上,因此根 README 会存在于多个分支。每个分支的根 README **各自处理**——`main` 的 README 和某个 `feature/*` 分支的 README 是两个独立决定。 +## 何时必须 + +**无论是否归档,README 更新都是必须的。** 归档到 `plays/`(动作 D)是可选——开发者可以拒绝——但 README 仍须在宿主分支和 fork `main` 上更新,让应用在其开发处被登记。 + ## 规则 - 只动 fork 所有的根 README(`README.md` / `README.zh_CN.md`);不修改 `docs/README.md` 的上游项目概览。 - 检查每个相关分支(`main` 和当前 `feature/*` 分支)上的根 README,而不是只看一个分支。 +- fork `main` 根 README 是 **fork 项目目录**:它**完整包含**每个项目自己 README 的内容——一个完整描述应用做什么及如何使用的说明(交互、模式、按键、持久化与备注),而不是一行简介再跟一个分支链接。内容从宿主分支的 README 拉取。 +- fork 根 README 与宿主分支的根 README 都是 fork 独有内容。**直接提交(merge)**,不要另开 PR;只有当变更要进上游时才开 PR。 - 遵循仓库语言规则:默认 `.md` 用英文,配对的 `.zh_CN.md` 用简体中文,同一变更内对齐。 ## 步骤 1. 确认同意与可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`)。 -2. 对每个相关分支,检查是否存在 fork 所有的根 README。 -3. 若存在,更新它,纳入新归档的应用。 -4. 若不存在,创建一份 fork 所有的根 README 描述产品。 +2. 在宿主 `feature/*` 分支上:缺 README 则补齐双语 README 对,已经有则更新它,添加或刷新应用自己的描述。 +3. 在 fork `main` 上:更新根 README 对,让发布的该应用能从仓库落地页找到,并**完整包含宿主分支 README 的内容**。 +4. 直接把 README 更新提交到分支 / fork `main`(fork 独有内容);除非是上游变更,否则不为它开 PR。 ## 相关文档 diff --git a/docs/development/project-completion/release-update.md b/docs/development/project-completion/release-update.md index 4b14a32..0a6962b 100644 --- a/docs/development/project-completion/release-update.md +++ b/docs/development/project-completion/release-update.md @@ -30,6 +30,9 @@ market. - Follow the fork workflow ([fork-guide.md](../../fork-guide.md)). - A tag-triggered build runs `build-firmware.yml`, which publishes the release only for a tag. See [CI-build-and-release.md](../CI-build-and-release.md). +- For day-to-day compilation prefer `idf.py build` (fast, incremental); use + `./tools/validate.sh --firmware` only when the merged, byte-verified `0x0` + full image is needed, such as before a release or delivery. - The workflow creates the release with a default title of the version/tag name (from `softprops/action-gh-release` and `github.ref_name`). After the release is published, refine the title to the project feature name plus the version diff --git a/docs/development/project-completion/release-update.zh_CN.md b/docs/development/project-completion/release-update.zh_CN.md index 9f96af5..4db4659 100644 --- a/docs/development/project-completion/release-update.zh_CN.md +++ b/docs/development/project-completion/release-update.zh_CN.md @@ -21,6 +21,7 @@ - 遵循仓库提交与 PR 规则([commit-and-pr.md](../../contribution/commit-and-pr.md))。 - 遵循 fork 工作流([fork-guide.md](../../fork-guide.md))。 - tag 触发的构建运行 `build-firmware.yml`,它只在 tag 时发布。见 [CI-build-and-release.md](../CI-build-and-release.md)。 +- 日常编译优先用 `idf.py build`(快、增量);只有需要合并校验的 `0x0` 全镜像(如发布或交付前)才用 `./tools/validate.sh --firmware`。 - 工作流创建 release,默认标题为版本号名(来自 `softprops/action-gh-release` 的 `github.ref_name`)。发布后把标题完善为「项目功能名称 + 版本号」,例如 `Voice Keychain v1.2.0`。版本号为 tag,功能名称为共享[发布属性](../project-completion.md#共享发布属性)中的应用发布名。 - 发布说明必须向未读过仓库的用户解释构建:新增内容、如何构建、如何使用。