From 4187d2bc939551b7a619e290817d3831c45a4b22 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sun, 22 Sep 2024 23:32:06 -0300 Subject: [PATCH] Use full versions in Docker commands (#747) ## Which problem is this PR solving? - In v1.61.0 we stopped publishing shortcut Docker tags like `1` and `1.61`, and only publish fully qualified versions `1.61.0` - But the docs were still referencing major/minor versions ([reported on Slack](https://cloud-native.slack.com/archives/CGG7NFUJ3/p1727056265543819)) ## Description of the changes - Use fully qualified versions everywhere - The docs URLs still use major.minor, so rename the variables to `$majorMinorVersion` to avoid confusion with the `currentVersion` shortcut Signed-off-by: Yuri Shkuro --- themes/jaeger-docs/layouts/partials/docs/panel.html | 8 ++++---- themes/jaeger-docs/layouts/partials/navbar.html | 10 +++++----- .../jaeger-docs/layouts/shortcodes/currentVersion.html | 2 +- .../jaeger-docs/layouts/shortcodes/dockerImages.html | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/themes/jaeger-docs/layouts/partials/docs/panel.html b/themes/jaeger-docs/layouts/partials/docs/panel.html index 35efe9e5..139503fe 100644 --- a/themes/jaeger-docs/layouts/partials/docs/panel.html +++ b/themes/jaeger-docs/layouts/partials/docs/panel.html @@ -5,8 +5,8 @@ {{ else }} {{ $path = .Path }} {{ end }} -{{ $currentVersion := index (split $path "/") 1 }} -{{ $versionDocsPath := printf "content/docs/%s" $currentVersion }} +{{ $majorMinorVersion := index (split $path "/") 1 }} +{{ $versionDocsPath := printf "content/docs/%s" $majorMinorVersion }} {{ $url := .RelPermalink }}