Repository navigation
Closed
Labels
priority: mediumMedium prioritytype: docsImprovements or additions to documentationworkload: hoursLikely takes hours to resolve
Description
The current release version is written out in many places: the docs (verification commands, chart file names, example image tags), the chart's README, comments in Dockerfile, deployment/values.yaml and deployment/values.schema.json, a Helm error message, and tests. Each release has to find and bump all of them, and the ones that are missed silently go stale.
Decision
- One version source: the release tag; before tagging,
CITATION.cff(version, set byscripts/citation.py setand checked against the tag by the release workflow) carries it ondev. - Docs get it through a variable:
{{ version }}in pages, replaced by the existing docs hooks (docs/hooks.py, no new plugin such as mkdocs-macros), e.g.,elixircloud/cloud-registry:{{ version }}and links to/en/v{{ version }}/. - Chart README (
deployment/README.md):{{ version }}too, replaced byscripts/chart_readme.pywhen the chart is packaged, and by the docs hooks when it is included in the docs. - No release numbers in comments, templates and tests: use placeholders (e.g.,
1.2.3, "this release"), and refer to sections by their anchor (e.g.,deployment/README.md#to-app-version-040), not by a heading that names a version. - Drift guard in CI: a test that fails if the current release version (from
CITATION.cff) appears in a tracked file outside an allowlist:CITATION.cff,docs/releases/, links to release notes (releases/<version>), and migration headings (e.g., "From versions before X", "To app version X").
Acceptance criteria
-
{{ version }}is replaced in all docs pages and the included chart README; the strict docs build passes. -
scripts/chart_readme.pyreplaces{{ version }}in the packaged README, with tests. - The docs, chart README, comments, templates and tests no longer hard-code the current release version (except the allowlist).
- A test fails if the current release version appears outside the allowlist.
-
docs/development.md("Versioning and releases") describes the rule.
Metadata
Metadata
Assignees
Labels
priority: mediumMedium prioritytype: docsImprovements or additions to documentationworkload: hoursLikely takes hours to resolve
Activity