Skip to content

docs: take the version from one source #453

Closed

Description

@uniqueg

The current release version (0.17.0) is written out in many places outside the release history: docs/deployment.md (about a dozen lines: the gh attestation verify, cosign verify and docker buildx imagetools inspect commands, "replace 0.17.0 with the version to verify", the example digests), docs/getting-started.md (example image tags), and README.md. Each release has to find and bump them, and the ones that are missed silently go stale.

Do as in elixir-cloud-aai/cloud-registry#220 (the template for FOCA apps):

  • One version source: the release tag; before tagging, CITATION.cff (version, set by scripts/citation.py) carries it on dev.
  • Docs get it through a variable, {{ version }}, e.g., elixircloud/foca:{{ version }} and links to /en/v{{ version }}/. FOCA's docs have no MkDocs hooks yet: add a small hook (hooks: in mkdocs.yml), as in cloud-registry, rather than mkdocs-macros, whose Jinja would also process the {{ ... }} of Helm templates in docs/helm-chart.md.
  • No release numbers in comments, templates and tests: use placeholders (e.g., 1.2.3, "this release"), and refer to sections by their anchor.
  • 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, the changelog and release notes, the migration guides (docs/migration-*.md, "Migrating to X" in mkdocs.yml, docs/index.md, docs/changelog.md), and statements like "From FOCA X on".

Acceptance criteria

  • {{ version }} is replaced in all docs pages; the strict docs build passes.
  • The docs, 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.
  • The release docs describe the rule.

Activity

  1. added this to the v0.18.0 milestone on Oct 24, 2026
  2. added
    priority: medium
    status: triage
    type: docs
    workload: hours
    status: in progress
    and removed
    status: triage
    on Oct 24, 2026
  3. 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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions