Commit 0c52332
authored
fix(docs): correct stale version pins and prevent next.yaml drift (#589)
## What & why
The `{{< version-pin >}}` data file for the default docs version
(`data/versions/v1.5.yaml`) was a verbatim copy of `next.yaml` that
never got bumped, so **every** version-pin on the v1.5 docs rendered
cozystack `v1.3.0` / Talos `v1.12.6` instead of `v1.5.0` / `v1.13.0` —
including the Go types `go get` example and ~40 install-doc references.
Root cause: `release_next.sh` snapshots `next.yaml`, and `next.yaml` had
itself been stale since the v1.3 cycle.
## Changes
**Correct the stale pins**
- Fix `data/versions/v1.5.yaml` to the real v1.5 values (`v1.5.0` /
Talos `v1.13.0`, verified against the upstream v1.5.0 installer
profile).
- Add `data/versions/v1.2.yaml` and switch the v1.2 `go-types` page from
a hardcoded `@v1.2.0` to `version-pin`. v1.0/v1.1 keep the literal — the
`api/apps/v1alpha1` submodule has earlier git tags (`v1.1.6`, `v1.1.7`)
but they don't resolve as Go modules (`proxy.golang.org` 404s), so
`v1.2.0` is the earliest version `go get` resolves.
**Stop it recurring**
- Harden `release_next.sh` to rewrite
`cozystack_version`/`cozystack_tag` from `RELEASE_TAG` at snapshot time,
so a stale `next.yaml` can't freeze the wrong version into a release
again.
- Add `hack/update_versions.sh` + a `make update-versions` step in
`update-all` that regenerates `next.yaml` from upstream (Talos from the
installer profile, cozystack tag from the latest release). The next
trunk can no longer go stale; regeneration is idempotent.
**Fix a rendered-wrong warning**
- The `boot-to-talos` version-mismatch warning hardcoded "Cozystack
v1.3.0 … target Talos v1.12", which rendered wrong on v1.4/v1.5 (both
ship Talos v1.13). Swap the literals for the `version-pin` shortcodes
already used elsewhere in the same file, across next/v1.5/v1.4/v1.3.
## Not included (flagged for follow-up)
- 25 autogenerated `source:` URLs in `next/` are frozen at `v1.3.0`
(should track `main`). They self-heal on the next `make update-all` for
the trunk and that also refetches README bodies, so it's better done as
a separate, deliberate re-sync.
## Test notes
- Verified each affected page's effective render against its data file
(v1.5 → `v1.5.0` / Talos `v1.13`; v1.3 unchanged / correct).
- `hack/update_versions.sh` is byte-idempotent across consecutive runs;
`release_next.sh` snapshot rewrite verified in isolation.
- A full `hugo` build was not run here — local Hugo is v0.163.0 vs the
repo-pinned v0.160.1, and 0.163's `security.allowContent` policy rejects
an unrelated existing content file. CI/Netlify use the pinned version.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Updated Talos installation guides to use generic, version-pinned
compatibility warnings (using template-driven Cozystack/Talos pins)
instead of hardcoded examples.
* Updated Go API installation instructions to use dynamic version pins
rather than a fixed version tag.
* **Chores**
* Added automated version-data regeneration tooling for documentation
pins, including prerelease handling and safer “next” updates.
* Regenerated next/trunk and updated released pins (Cozystack v1.5.0;
Talos v1.13.0), including improved release snapshot pinning.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->11 files changed
Lines changed: 205 additions & 56 deletions
File tree
- content/en/docs
- next/install/talos
- v1.2/cozystack-api
- v1.3/install/talos
- v1.4/install/talos
- v1.5/install/talos
- data/versions
- hack
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
144 | 150 | | |
145 | 151 | | |
146 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
147 | 172 | | |
148 | 173 | | |
149 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 35 | + | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 35 | + | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 35 | + | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 35 | + | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
16 | 15 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
135 | 145 | | |
136 | 146 | | |
137 | 147 | | |
| |||
0 commit comments