Commit b299b57
authored
Refactor docs versions to major.minor variants (#477)
## Summary
Refactors the docs versioning structure from `v0`/`v1` to
per-minor-version directories (`v0`, `v1.0`, `v1.1`, `v1.2`), making the
site compatible with the push-based docs update pipeline from
cozystack/cozystack#2214.
### What changed
**Docs structure:**
- Renamed `content/en/docs/v1/` → `v1.0/`
- Bootstrapped `v1.1` and `v1.2` from `v1.0`, then pulled actual content
from `release-1.1` and `release-1.2` branches
- Added 301 redirect `/docs/v1/*` → `/docs/v1.0/:splat` in
`netlify.toml` for backward compatibility
**Version-aware Makefile:**
- `RELEASE_TAG=v1.2.1` automatically derives `DOC_VERSION=v1.2`,
`BRANCH=release-1.2`
- `override BRANCH` fixes the mismatch where cozystack passes
`BRANCH=release-1.2.1` but the actual branch is `release-1.2`
- New targets: `init-version` (bootstrap new version dir),
`download-openapi`, `download-openapi-all`
**OpenAPI spec out of git:**
- `v0` and `v1.0` keep `api.json` in-repo (no release asset available
for those versions)
- `v1.1` also keeps a copy in-repo (v1.1.x releases predate the
openapi.json artifact)
- `v1.2+` downloads `openapi.json` from GitHub releases at Netlify build
time via `hack/download_openapi.sh`
- `static/docs/*/cozystack-api/` added to `.gitignore`
**Version switcher UI:**
- Refactored from inline buttons to a Bootstrap dropdown — scales
cleanly as versions grow
- Fixed `version-banner.html` — replaced `int()` cast (breaks on `v1.0`)
with index-based comparison
**GitHub workflow:**
- `update-managed-apps.yaml` now accepts `RELEASE_TAG` via dispatch
payload or workflow input
- Daily sync targets latest version (read from `hugo.yaml`)
- Per-version PR branches: `update-managed-apps-v1.2`
### New scripts
- `hack/init_version.sh` — copies content from previous version, updates
all internal refs, removes `api.json`
- `hack/download_openapi.sh` — downloads openapi.json from GitHub
releases at build time (works without `gh` CLI)
### Note for cozystack/cozystack#2214
The `update-website-docs` job passes `BRANCH=release-X.Y.Z` (full
version) but cozystack release branches are `release-X.Y` (major.minor).
This PR handles the mismatch via `override BRANCH` in the Makefile, but
ideally the cozystack workflow should also be fixed to pass
`BRANCH=release-X.Y`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)610 files changed
Lines changed: 45393 additions & 495 deletions
File tree
- .github/workflows
- assets/scss/blocks
- content/en
- blog
- 2024-04-05-diy-create-your-own-cloud-with-kubernetes-part-1
- 2024-04-05-diy-create-your-own-cloud-with-kubernetes-part-2
- docs
- v1.0
- applications
- _include
- cozystack-api
- getting-started
- guides
- platform-stack
- resource-management
- tenants
- use-cases
- install
- _include
- cozystack
- how-to
- kubernetes
- providers
- servers-com
- img
- talos
- introduction
- kubernetes
- _include
- networking
- _include
- operations
- cluster
- configuration
- faq
- multi-location
- autoscaling
- oidc
- identity_providers
- services
- _include
- monitoring
- object-storage
- stretched
- troubleshooting
- upgrades
- vpc
- storage
- virtualization
- _include
- v1.1
- applications
- _include
- cozystack-api
- getting-started
- guides
- platform-stack
- resource-management
- tenants
- use-cases
- install
- _include
- cozystack
- how-to
- kubernetes
- providers
- servers-com
- img
- talos
- introduction
- kubernetes
- _include
- networking
- _include
- operations
- cluster
- configuration
- faq
- multi-location
- autoscaling
- oidc
- identity_providers
- services
- _include
- monitoring
- object-storage
- stretched
- troubleshooting
- upgrades
- vpc
- storage
- virtualization
- _include
- v1.2
- applications
- _include
- cozystack-api
- getting-started
- guides
- platform-stack
- resource-management
- tenants
- use-cases
- install
- _include
- cozystack
- how-to
- kubernetes
- providers
- servers-com
- img
- talos
- introduction
- kubernetes
- _include
- networking
- _include
- operations
- cluster
- configuration
- faq
- multi-location
- autoscaling
- oidc
- identity_providers
- services
- _include
- monitoring
- object-storage
- stretched
- troubleshooting
- upgrades
- vpc
- storage
- virtualization
- _include
- v1/operations/services/monitoring
- hack
- layouts/partials
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | | - | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
28 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
29 | 69 | | |
30 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
31 | 75 | | |
32 | 76 | | |
33 | 77 | | |
34 | 78 | | |
| 79 | + | |
| 80 | + | |
35 | 81 | | |
| 82 | + | |
| 83 | + | |
36 | 84 | | |
37 | 85 | | |
38 | 86 | | |
39 | 87 | | |
40 | 88 | | |
41 | 89 | | |
42 | 90 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
47 | 95 | | |
48 | 96 | | |
49 | 97 | | |
50 | | - | |
51 | 98 | | |
| 99 | + | |
52 | 100 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
56 | 105 | | |
57 | 106 | | |
58 | 107 | | |
59 | 108 | | |
60 | 109 | | |
61 | 110 | | |
62 | | - | |
| 111 | + | |
63 | 112 | | |
64 | | - | |
| 113 | + | |
65 | 114 | | |
66 | 115 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
2 | 16 | | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
6 | 20 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
15 | 31 | | |
16 | 32 | | |
17 | 33 | | |
| |||
30 | 46 | | |
31 | 47 | | |
32 | 48 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
37 | 68 | | |
38 | | - | |
| 69 | + | |
39 | 70 | | |
| 71 | + | |
40 | 72 | | |
41 | 73 | | |
42 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | 253 | | |
256 | 254 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
261 | 258 | | |
262 | 259 | | |
263 | 260 | | |
264 | 261 | | |
265 | 262 | | |
266 | 263 | | |
267 | | - | |
268 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
269 | 267 | | |
270 | 268 | | |
271 | 269 | | |
272 | 270 | | |
273 | 271 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
278 | 286 | | |
279 | | - | |
280 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
281 | 290 | | |
282 | 291 | | |
283 | 292 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
File renamed without changes.
| 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 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
0 commit comments