feat(release): one release stream, one version, one page per version
CHANGELOG.archied.md and CHANGELOG.archie.md were two version streams that drifted: a release that moved both components had two numbers, two pages and two tags, and a reader had to visit two files to learn what shipped. The merged history holds 65 versions from 64 archied and 34 archie sections -- 33 that both components released, 31 only archied, one only archie -- so 98 published pages become 65. A version's date is the newest of its sections' dates, and a component whose own date differs carries it on its label, because the history has two dates and the merge must not invent one. `## [Unreleased]` is not a release: it gets no page, and it stays at the top of the file. A level-two heading is where the merge could silently drop a section, so the merge is verified by content rather than by the generator: section counts per source, the merged version set against the exact union, and every source `###` title present both as a substring and, after stripping the component prefix, as an identical heading. Counting `##` headings rather than releases overcounts by one here, which is how the empty `[Unreleased]` block was caught. - newsgen reads one file and writes `docs/news/<version>.md`, the index, the canonical `releases.json`, and `docs/news/redirects.json`. The redirect table is what keeps the retired `/news/<component>/<version>/` URLs alive; it is generated beside the pages so it cannot drift from them. - release.sh takes one `--version`, keeps commit and tag (the Woodpecker pipeline that will own them does not exist yet), and exits 3 when the commit set justifies no release, so a pipeline can finish green without tagging. - The consumers of the two files follow: the deploy workflow's tag gate and release-notes extraction, the zip contents, the update check's changelog links, the packaged-path note, the docs skill, and newsgen's tests. The per-component detail survives as labelled sections inside each release, so a reader still learns whether archied or the agent changed; what goes away is the separate numbers and the separate pages.
This commit is contained in:
134 files changed
+3189
-3241
No files matched your search
+17
-14
@@ -102,12 +102,14 @@ tasks:
|
||||
- go -C tools run -mod=readonly ./prdlint --repo-root ..
|
||||
|
||||
news:
|
||||
desc: Regenerate the news page and per-version release notes from the changelogs
|
||||
desc: Regenerate the news page and per-version release notes from the changelog
|
||||
summary: |
|
||||
Writes docs/news/releases.json and docs/news/. The JSON is the
|
||||
canonical, host-neutral fact set every renderer reads; the markdown is
|
||||
the MkDocs adapter. Both come from CHANGELOG.archied.md and
|
||||
CHANGELOG.archie.md, so cutting a release adds no writing here.
|
||||
Writes docs/news/releases.json, docs/news/redirects.json and docs/news/.
|
||||
The JSON is the canonical, host-neutral fact set every renderer reads;
|
||||
the redirect table maps the retired /news/<component>/<version>/ URLs to
|
||||
the unified page for that version; the markdown is the MkDocs adapter.
|
||||
All of it comes from CHANGELOG.md, so cutting a release adds no writing
|
||||
here.
|
||||
|
||||
The files are committed, so this dirties the tree deliberately: review
|
||||
the diff and commit it with the changelog that produced it. Never
|
||||
@@ -119,14 +121,15 @@ tasks:
|
||||
- go -C tools run -mod=readonly ./newsgen --repo-root ..
|
||||
|
||||
news:check:
|
||||
desc: Verify the committed release notes match the changelogs
|
||||
desc: Verify the committed release notes match the changelog
|
||||
summary: |
|
||||
Derives the release notes in memory and fails when the committed files
|
||||
differ, without modifying the working tree. Runs in `task check`, so a
|
||||
changelog edit cannot land without its regeneration.
|
||||
|
||||
A file inside docs/news/<component>/ that the generator does not produce
|
||||
is a finding too: that directory is generated, and a hand-written page
|
||||
A version page the generator does not produce (a page for a release the
|
||||
changelog no longer carries, or one left in the retired
|
||||
docs/news/<component>/ layout) is a finding too; a hand-written news item
|
||||
belongs at the docs/news root instead.
|
||||
cmds:
|
||||
- go -C tools run -mod=readonly ./newsgen check --repo-root ..
|
||||
@@ -539,23 +542,23 @@ tasks:
|
||||
- go -C tools run ./contractaudit --repo-root ..
|
||||
|
||||
release:preview:
|
||||
desc: "Show the release notes that would be generated (VERSION=1.2.0, or GATEWAY=/RUNTIME= to version the two components separately)"
|
||||
desc: "Show the release notes that would be generated (VERSION=1.2.0)"
|
||||
cmds:
|
||||
- tools/release.sh --gateway {{.GATEWAY | default .VERSION}} --runtime {{.RUNTIME | default .VERSION}} --dry-run
|
||||
- tools/release.sh --version {{.VERSION}} --dry-run
|
||||
requires:
|
||||
vars: [VERSION]
|
||||
|
||||
release:prepare:
|
||||
desc: "Write the generated notes into the changelogs, uncommitted, for editing (VERSION=1.2.0)"
|
||||
desc: "Write the generated notes into CHANGELOG.md, uncommitted, for editing (VERSION=1.2.0)"
|
||||
cmds:
|
||||
- tools/release.sh --gateway {{.GATEWAY | default .VERSION}} --runtime {{.RUNTIME | default .VERSION}} --prepare
|
||||
- tools/release.sh --version {{.VERSION}} --prepare
|
||||
requires:
|
||||
vars: [VERSION]
|
||||
|
||||
release:
|
||||
desc: "Freeze the edited changelogs into a release commit and tags (VERSION=1.2.0). Run release:prepare first."
|
||||
desc: "Freeze the edited changelog into a release commit and tag (VERSION=1.2.0). Run release:prepare first."
|
||||
cmds:
|
||||
- tools/release.sh --gateway {{.GATEWAY | default .VERSION}} --runtime {{.RUNTIME | default .VERSION}} --tag
|
||||
- tools/release.sh --version {{.VERSION}} --tag
|
||||
requires:
|
||||
vars: [VERSION]
|
||||
|
||||
|
||||
Reference in new issue
Block a user