Skip to content

docs: take the version from one source #220

Closed

Description

@uniqueg

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 by scripts/citation.py set and checked against the tag by the release workflow) carries it on dev.
  • 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 by scripts/chart_readme.py when 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.py replaces {{ 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.

Activity

  1. added
    priority: medium
    status: in progress
    type: docs
    workload: hours
    on Oct 24, 2026
  2. removed
    status: in progress
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: docsworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions