Repository navigation
Closed
Labels
priority: mediumMedium prioritytype: docsImprovements or additions to documentationworkload: hoursLikely takes hours to resolve
Milestone
Description
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 byscripts/citation.py) carries it ondev. - 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:inmkdocs.yml), as in cloud-registry, rather than mkdocs-macros, whose Jinja would also process the{{ ... }}of Helm templates indocs/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" inmkdocs.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.
Metadata
Metadata
Assignees
Labels
priority: mediumMedium prioritytype: docsImprovements or additions to documentationworkload: hoursLikely takes hours to resolve
Activity
test: narrow the version guard's exceptions