Summary
`docs/antora.yml` declares `version: ~` — Antora's syntax for an explicitly
unversioned component. The published site (once #975 is also fixed so it deploys
at all) only ever shows one snapshot of the docs, with no way to view the docs as they
were for an older release (e.g. 0.39.x) versus current `develop`. The workflow's own
comment acknowledges this is deliberate scope-narrowing: "Single-version for now; a
dedicated multi-repo aggregation site can come later."
This matters concretely for this session's work: SKEEP-002/003 landed on `develop`
and are reachable from tag `0.40.1`, but a reader on the live site has no way to know
"is this SKEEP status current as of the latest release, or has it moved since." Same
class of problem applies to any API/behavior doc that changes between releases.
Proposed direction (not prescriptive — Antora supports several shapes here)
Antora has first-class multi-version support: each content source
(playbook `content.sources`) can point at multiple git refs (branches/tags), and each
ref's `antora.yml` `version:` becomes a selectable entry in the generated version
dropdown, with the highest `display_version`/`prerelease: false` version becoming the
default landing page.
Sketch:
- Set `version:` in `docs/antora.yml` per release (e.g. `version: '0.40'`,
`display_version: '0.40.1'`) instead of `~`, updated as part of the existing
`release: prepare X.Y.Z` commit pattern (SKaiNET-transformers already has this
commit type; mainline doesn't yet but could adopt it, or just bump the antora.yml
version field wherever the version bump currently happens).
- `antora-playbook.yml`'s `content.sources` adds tag refs (e.hg. `tags: 0.39., 0.40.`
or an explicit allowlist) alongside `branches: develop`, so Antora builds one page
tree per historical version from the tagged source at that point in time.
- Decide a retention policy (all tags forever vs. last N minor versions) — full
history multiplies build time and site size per version.
Related
Summary
`docs/antora.yml` declares `version: ~` — Antora's syntax for an explicitly
unversioned component. The published site (once #975 is also fixed so it deploys
at all) only ever shows one snapshot of the docs, with no way to view the docs as they
were for an older release (e.g. 0.39.x) versus current `develop`. The workflow's own
comment acknowledges this is deliberate scope-narrowing: "Single-version for now; a
dedicated multi-repo aggregation site can come later."
This matters concretely for this session's work: SKEEP-002/003 landed on `develop`
and are reachable from tag `0.40.1`, but a reader on the live site has no way to know
"is this SKEEP status current as of the latest release, or has it moved since." Same
class of problem applies to any API/behavior doc that changes between releases.
Proposed direction (not prescriptive — Antora supports several shapes here)
Antora has first-class multi-version support: each content source
(playbook `content.sources`) can point at multiple git refs (branches/tags), and each
ref's `antora.yml` `version:` becomes a selectable entry in the generated version
dropdown, with the highest `display_version`/`prerelease: false` version becoming the
default landing page.
Sketch:
`display_version: '0.40.1'`) instead of `~`, updated as part of the existing
`release: prepare X.Y.Z` commit pattern (SKaiNET-transformers already has this
commit type; mainline doesn't yet but could adopt it, or just bump the antora.yml
version field wherever the version bump currently happens).
or an explicit allowlist) alongside `branches: develop`, so Antora builds one page
tree per historical version from the tagged source at that point in time.
history multiplies build time and site size per version.
Related
repo never creates); fix that first, independent of this.
(same Docker image, same Antora setup) — filing a companion issue there rather than
scoping this one cross-repo, since the playbooks/CI are maintained separately.