Skip to content

chore(docs): fix wrong-case repo links and stale version claims; stamp version at release#409

Merged
ozzyfromspace merged 3 commits into
mainfrom
chore/repo-ref-case-and-doc-versions
Jun 14, 2026
Merged

chore(docs): fix wrong-case repo links and stale version claims; stamp version at release#409
ozzyfromspace merged 3 commits into
mainfrom
chore/repo-ref-case-and-doc-versions

Conversation

@ozzyfromspace

@ozzyfromspace ozzyfromspace commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

What

A docs-accuracy sweep: correct wrong-case repo links, fix three stale version claims, and make the
one doc that names the Attaform release stamp itself at release time instead of being hand-bumped.

Wrong-case repo links

Two surfaces linked the repo as lowercase attaform/attaform instead of the canonical
attaform/Attaform:

  • apps/site/docs-demos/transforms-async/App.vue (a sample link in the links-to-URLs demo)
  • apps/site/public/llms.txt (the homepage source, GitHub, and CHANGELOG links)

GitHub redirects the lowercase form, so nothing was broken, but the canonical case is consistent now.
(The CHANGELOG's historical note about a prior fix is left as written.)

Stale version claims

  • OG image pinned "Nuxt 4" while the homepage tile, README, and the nuxt >=3.0.0 peer all say
    "Nuxt 3 / 4". Matched it. (It is a generated satori image, so worth an eyeball on the rendered card.)
  • docs/server-and-ssr/performance.md claimed per-PR CI covers "Node 18 / 20 / 22 / LTS". The
    test matrix runs only lts/* (22.x today) and engines.node is >=22 (Node 20 dropped at its
    EOL). Reworded to the current LTS plus the engines floor; the Vue / Vite / Nuxt parts were already
    correct.

Dynamic version, the right way for a raw doc

docs/scorecard/cii-best-practices-answers.md hardcoded the current release (0.19.0; actual is
0.21.2). The homepage and footer avoid this by reading the version from package.json at build
time, but this doc is a raw GitHub-read audit trail (no frontmatter, excluded from the rendered
content collection), so render-time injection cannot reach it.

Instead, a new scripts/sync-doc-versions.mjs runs from the version npm hook (beside
promote-changelog), stamps package.json's version into the doc, and rides the version-bump
commit, the same release-time pattern the changelog and release notes already use. Tested: a fake
old version restamps to the current one, and it is idempotent and tolerant (a missing marker or any
error is skipped, never failing a publish).

Notes

No other hardcoded versions remain: the homepage release pill, footer, and REPL dependency versions
all derive from package.json; bench library versions come from results.json.

🤖 Generated with Claude Code

…Attaform)

The GitHub repo is `attaform/Attaform` (capital repo name), but two docs surfaces linked the
lowercase `attaform/attaform`: the transforms-async demo's sample links and the public `llms.txt`
index (its homepage source link, GitHub link, and CHANGELOG link). GitHub resolves the lowercase
form by redirect, so nothing was broken, but the canonical case is correct and consistent now. The
CHANGELOG's historical note about a prior lowercase-to-correct move is left as written.

No hardcoded version pins exist in the docs to fix: the homepage release pill, the footer brand
version, and the REPL dependency versions all read from package.json (nuxt.config runtimeConfig,
with `pnpm version` the single bump point), and the bench's library versions come from results.json.
The only hardcoded version references are intentional positioning copy (Vue 3, Nuxt 4).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
attaform Ready Ready Preview, Comment Jun 14, 2026 2:31am

Three version claims in the docs had drifted from reality, and the one that names the Attaform
release now updates itself instead of being hand-bumped:

- The OG image pinned "Nuxt 4" while the homepage tile, README, and the `nuxt >=3.0.0` peer all say
  "Nuxt 3 / 4". Matched it.
- docs/server-and-ssr/performance.md claimed per-PR CI covers "Node 18 / 20 / 22 / LTS"; the test
  matrix runs only `lts/*` (22.x today) and `engines.node` is >=22 (Node 20 dropped at EOL).
  Reworded to the current LTS plus the engines floor.
- docs/scorecard/cii-best-practices-answers.md hardcoded the current release (0.19.0). It is a raw
  GitHub-read audit trail (no frontmatter, not in the rendered content collection), so the site's
  build-time version injection cannot reach it. A new scripts/sync-doc-versions.mjs runs from the
  `version` npm hook (beside promote-changelog) and stamps package.json's version into it, riding
  the version commit. Same idea as the homepage reading package.json, for a file never rendered.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ozzyfromspace ozzyfromspace changed the title chore(site): correct the repo-name case in docs repo links (attaform/Attaform) chore(docs): fix wrong-case repo links and stale version claims; stamp version at release Jun 14, 2026
@ozzyfromspace ozzyfromspace merged commit 5493a39 into main Jun 14, 2026
15 checks passed
@ozzyfromspace ozzyfromspace deleted the chore/repo-ref-case-and-doc-versions branch June 14, 2026 02:36
ozzyfromspace added a commit that referenced this pull request Jun 14, 2026
The `version` npm hook (since #409) stamps and `git add`s
docs/scorecard/cii-best-practices-answers.md, but release-pr.yml still
hard-coded a three-file bump allow-list in two places. The scorecard's
`current:` marker changes on every bump, so it always landed as a fourth
staged file and tripped the Stage bump assertion, blocking the release
PR (run 27491924549).

Derive the file set from the index instead of re-hard-coding it: Stage
bump asserts a required set (CHANGELOG.md, RELEASES.md, package.json)
plus an allowed-but-not-required slot for stamped docs, and Create
signed bump commit builds its additions from the staged index so the
two lists can no longer drift. The optional treatment matches
sync-doc-versions's deliberate "never block on it" tolerance.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant