Skip to content

docs: split release and upgrade notes by version - #290

Merged
prusnak merged 3 commits into
masterfrom
reorg-docs
Nov 19, 2026
Merged

prusnak merged 3 commits into
masterfrom
reorg-docs

Conversation

@prusnak

@prusnak prusnak commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Keep each upcoming change in its own file so concurrent PRs can add notes without editing shared indexes or the mdBook sidebar. Consolidate drafts into per-version pages during release preparation.

Point migration notices to the version pages and preserve bookmarks from the old guides. Reject drafts and TBD pages for finalized versions in CI and before tagging.

Give the release-note checker the signing code owners. Check shared navigation and newly added migration notices against the target branch. Verify that every draft heading survives consolidation in CI and before tagging.

Assisted-by: Codex (gpt-6.2-sol)

@prusnak
prusnak requested a review from seberm as a code owner November 18, 2026 19:43
@github-actions github-actions Bot added area: ci .github/, test/, dev/ area: docs docs/, README, examples/, SECURITY.md, book.toml, assets area: modules modules/ and pkgs/lib.nix area: release helper/ release tooling, signing, release keys labels Nov 18, 2026
@prusnak prusnak added this to the v0.2.0 milestone Nov 18, 2026
@seberm

seberm commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@prusnak Concept ACK. Before merging, make-release.sh should pass only when the notes are consolidated correctly, so that a release with incomplete or broken notes cannot be tagged; the items below are the cases it currently lets through (please recheck what makes sense).

In the long term, I'd like to minimize the manual steps before and after a release. Today the only step after a release is pushing the tag; this PR adds a second one (creating the next version's TBD pages and their index and SUMMARY.md entries). AGENTS.md doesn't mention it and says that adding a draft requires only its own file, so the first draft for the next version will be added without its pages.

The review from Opus:


The split itself is sound, but make-release.sh does not verify most of the new consolidation steps, so a release can be tagged with lost or broken notes. Since the docs are published from the latest verified tag, such notes go live right after the release and stay until the next one. All items below were reproduced on this head: a scratch repo, check-release-notes.sh 0.2.0 (the exact call make-release.sh makes) and the CI-mode call with the PR head as base. Every case exited 0.

Must

  • Dropped entries pass when consolidation and the version.nix bump are separate commits. The heading check only sees drafts that still exist in the parent of the commit that changed version.nix. Repro: one commit deletes docs/{upgrading,release-notes}/0.2.0/unstable-nixos-base.md and consolidates the rest, a second commit sets version.nix to 0.2.0. Both PR CI runs and tag mode pass, and the entry is gone from the docs.
  • make-release.sh does not detect skipped consolidation steps:
    • Step 1: version pages without the # Release notes <version> / # Upgrading to config version <version> titles pass.
    • Step 2: unfixed links pass. Concatenating the drafts as they are leaves 16 links from release-notes/0.2.0.html to deleted upgrading/0.2.0/<draft>.html pages; mdbook build passes too.
    • Step 3: an upgrade page that still tells users to keep configVersion = "0.1.6" and lacks the final nix-bitcoin.configVersion = "0.2.0"; instruction passes.
    • Step 4: (upcoming) labels left on the finalized version in docs/release-notes.md and docs/upgrading.md pass.

Should

  • Step 4 also contains "When opening the next development version, add its TBD pages…", which is a post-tag action in the pre-tag list. It is missing from the "After pushing, check that" list make-release.sh prints, the TBD page template is not specified in dev/README.md, and nothing detects drafts for the next version without TBD pages or SUMMARY.md entries.

Optional

  • The consolidation is entirely manual (6 steps, about 40 draft files for 0.2.0), which is where the problems above come from.

Tested: compared master's two guides with the split pages and drafts (no content lost, 0.2.0 headings match), checked every released anchor in legacy-note-links.js and ran the script under node, resolved all relative links in the new docs/ files, and ran the repros above.

Assisted-by: Claude Code (Claude Opus 5.5)

@ostermayer ostermayer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK from me too. I compared the old guides with the new pages line by line, and nothing got lost. 8d0e1b22 covers most of seberm's list and part of mine, so here's only what's left.

  • An entry now has to keep some text, but not the draft's text, so a dropped step still passes. Comparing each draft's lines, with link targets stripped, against the version page would catch that and still allow rebased links. That's how I checked this PR.
  • A draft without a #### heading still passes CI when it's added. It then blocks the release PR, because the draft is read from history, and only a separate fix on master clears it. Checking for the heading in every draft moves the error to the PR that adds it.
  • NOTE only matches <version>/<name>.md, so a nested file or a .markdown file under a draft directory is skipped by every check.
  • In CI, HEAD^1 of the merge checkout is the exact base it merged into. pull_request.base.sha comes from the event and may not match it.
  • On master, a 0.2.0 notice now says See docs/upgrading/0.2.0.md, which is the TBD page. Before, it named the section with the steps. Pointing at the draft directory while it exists would help.
  • README's migration guide link for caller-controlled pins also lands on the TBD page now. It could link the unstable-nixos-base draft until the release.
  • modules/versioning/0.2.0/secure-node-ssh-password-login.nix still says See docs/upgrading.md., and the collector now adds See docs/upgrading/0.2.0.md. after it. That one's mine. Drop it here or I'll fix it after this merges.
  • Fixes #287 in the description would close #287 on merge.

@prusnak

prusnak commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

@ostermayer

Copy link
Copy Markdown
Collaborator

Checked f3f7964. All my points are in, thanks. Only Fixes #287 is still missing from the description.

@seberm

seberm commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

@prusnak LGTM


All earlier must/should items are fixed. I could no longer reproduce any of them on f3f7964, merged with current master: dropped sentences, a draft dropped with the version bump in a separate commit, and broken anchors all fail the check. A full simulated 0.2.0 consolidation passes.

Should

Tested: consolidated 0.2.0 from the real drafts on the PR merged with master, then ran check-release-notes.sh in tag mode and CI mode against that and three broken variants.

Assisted-by: Claude Code (Claude Opus 5.5)

@seberm seberm linked an issue Nov 19, 2026 that may be closed by this pull request
@prusnak
prusnak enabled auto-merge November 19, 2026 17:59
Keep each upcoming change in its own file so concurrent PRs can add
notes without editing shared indexes or the mdBook sidebar. Consolidate
drafts into per-version pages during release preparation.

Point migration notices to the version pages and preserve bookmarks
from the old guides. Reject drafts and TBD pages for finalized versions
in CI and before tagging.

Give the release-note checker the signing code owners. Check shared
navigation and newly added migration notices against the target branch.
Verify that every draft heading survives consolidation in CI and before
tagging.

Assisted-by: Codex (gpt-6.2-sol)
Recover drafts across release-preparation commits and check that each entry reaches its version page. Validate titles, the final configVersion instruction, navigation, and link targets and anchors in the rendered book.

Give the first draft PR a helper to create the milestone pages and navigation. Exercise both CI and signing with split preparation, incomplete notes, and a corrected release.

Assisted-by: Codex (gpt-6.2-astra)
Compare each draft with the text under its published heading, allowing
prose to wrap and links to move. Check draft paths and headings in the
contributing PR and use the test merge's first parent as the CI base.

Point migration notices and the README to the active upgrade drafts.
Require README links to move to the version page when it is finalized.

Assisted-by: Codex (gpt-6.2-astra)
@prusnak
prusnak merged commit aaf55ef into master Nov 19, 2026
19 checks passed
@prusnak
prusnak deleted the reorg-docs branch November 19, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci .github/, test/, dev/ area: docs docs/, README, examples/, SECURITY.md, book.toml, assets area: modules modules/ and pkgs/lib.nix area: release helper/ release tooling, signing, release keys

Projects

None yet

Development

Successfully merging this pull request may close these issues.

split docs to make merging easier

3 participants