Repository navigation
Link the docs at the version's tag in published notes and READMEs - #158
Merged
Merged
Conversation
The release notes, the packed READMEs and the GitHub release linked the docs at blob/main. A published package cannot change, and after the v5.5.0 tag main becomes the SchemaKit line and reshapes docs/. The pack now rewrites links into this repository at blob/main (and tree/main) to the version's tag, in the release notes and in a copy of the README packed in place of the source; release.yml does the same to the GitHub release's notes. The source keeps blob/main, which DocumentationLinkTests resolves against the checkout, so on the tagged commit it proves the frozen links resolve. Closes #151 Co-Authored-By: Claude Opus 5.5 <[email protected]>
CaffeinatedCoder
force-pushed
the
docs/151-frozen-doc-links
branch
from
October 20, 2026 11:43
5d6d495 to
8826cf9
Compare
This was referenced Oct 18, 2026
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.
Closes #151
Problem
The 5.5.0 release notes (each package changelog's section, set at pack by #139), the packed READMEs that nuget.org shows as the package page, and the GitHub release notes all link the docs at
blob/main. A published package can't change. After thev5.5.0tag,mainbecomes the SchemaKit line and reshapesdocs/, so every 5.5.0 package page and release-notes link would 404 or show SchemaKit's documentation.Change
Decision: rewrite at pack time to the version's tag, for the notes and the READMEs alike. Don't point the READMEs at
release/5.x.blob/main, whichDocumentationLinkTestsresolves against the checkout. On the tagged commit, the checkout is the tag's tree, so that test is what proves the frozen links resolve.release/5.x: it doesn't exist until minutes after the tag. It's mutable, so a later 5.x docs change would rewrite what a 5.5.0 page links. And the README would follow a different rule than the release notes.Files:
src/Directory.Build.targets:_ComputeFrozenLinksturns$(RepositoryUrl)/blob/main/and/tree/main/into/blob/v$(PackageVersion)/and/tree/v$(PackageVersion)/.SetPackageReleaseNotesFromChangelogapplies it to the notes.FreezePackageReadmeLinkswrites a rewritten copy of the README underobj/and swaps it into NuGet's file list. If no packed file is the README (for example, NuGet renames its item), the pack fails..github/workflows/release.yml: the notes extraction does the same literal replacement in bash.Packaging:line under### Changedin 5.5.0.CLAUDE.mdandCONTRIBUTING.md: say what the pack and the release job rewrite.Tests
PackagingConventionTests:blob/mainandtree/mainlinks. It also holds links that must stay as written: another repository whose name shares the prefix, and another branch.ReleaseWiringConventionTests.Github_release_notes_link_the_docs_at_the_tagruns the release step's own lines withbash, from the awk extraction to the empty-notes check, against a seeded changelog.Each guard was proven by breaking the mechanism, then restoring:
Release_notes_render_…,Packed_release_notes_…("packed release notes are not the 5.5.0 section")FreezePackageReadmeLinksfromGenerateNuspecPacked_release_notes_…("packed README is not its README.md with the docs linked at v5.5.0")_PackageFilesGithub_release_notes_…Github_release_notes_…(bash 3.2 keeps the quotes)The unit suite passes after rebasing on
main(584 tests).🤖 Generated with Claude Code