Skip to content

Build: update docs links in change-version#42476

Draft
wayyoungboy wants to merge 1 commit into
twbs:mainfrom
wayyoungboy:codex/39776-change-version-content-aliases
Draft

Build: update docs links in change-version#42476
wayyoungboy wants to merge 1 commit into
twbs:mainfrom
wayyoungboy:codex/39776-change-version-content-aliases

Conversation

@wayyoungboy
Copy link
Copy Markdown

Fixes #39776.

Summary

  • updates build/change-version.mjs to also rewrite short docs-version links such as /docs/5.3/ to /docs/5.4/ when the release version changes minor versions
  • walks README and docs source files (.astro, .html, .md, .mdx) so content aliases are included
  • adds focused Node tests for short-version extraction and docs-link replacement

Checks

  • node --test build/change-version.test.mjs
  • node build/change-version.mjs 5.3.8 5.4.0 --dry-run --verbose
  • node --check build/change-version.mjs
  • git diff --check -- build/change-version.mjs build/change-version.test.mjs

Note: a full npm ci was attempted with a repo-local npm cache, but stalled during package extraction in this environment. The focused checks above do not require the full install.

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.

change-version.mjs should also change content aliases links

1 participant