From a99f68cf4af7e63d40b72ec566bcf61ee4d9a0bb Mon Sep 17 00:00:00 2001 From: epolon Date: Wed, 28 Feb 2024 20:36:26 +0200 Subject: [PATCH] fix versions Signed-off-by: epolon --- website/build.sh | 3 +++ website/layouts/index.html | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/website/build.sh b/website/build.sh index 050e64a968..648f4808d5 100755 --- a/website/build.sh +++ b/website/build.sh @@ -12,6 +12,9 @@ export CDK8S_CORE_VERSION="$(get_version cdk8s)" export CDK8S_PLUSXX_MINUS_2_VERSION="$(get_version cdk8s-plus-$((${LATEST_K8S_VERSION}-2)))" export CDK8S_PLUSXX_MINUS_1_VERSION="$(get_version cdk8s-plus-$((${LATEST_K8S_VERSION}-1)))" export CDK8S_PLUSXX_VERSION="$(get_version cdk8s-plus-${LATEST_K8S_VERSION})" +export CDK8S_PLUSXX_MINUS_2="$((${LATEST_K8S_VERSION}-2))" +export CDK8S_PLUSXX_MINUS_1="$((${LATEST_K8S_VERSION}-1))" +export CDK8S_PLUSXX="${LATEST_K8S_VERSION}" export CDK8S_CLI_VERSION="$(get_version cdk8s-cli)" hugo --minify $@ diff --git a/website/layouts/index.html b/website/layouts/index.html index 24961d768b..a2350bef24 100644 --- a/website/layouts/index.html +++ b/website/layouts/index.html @@ -2,6 +2,9 @@ {{- $cdk8s_plusXX_MINUS_2_version := getenv "CDK8S_PLUSXX_MINUS_2_VERSION" }} {{- $cdk8s_plusXX_MINUS_1_version := getenv "CDK8S_PLUSXX_MINUS_1_VERSION" }} {{- $cdk8s_plusXX_version := getenv "CDK8S_PLUSXX_VERSION" }} +{{- $cdk8s_plusXX_MINUS_2 := getenv "CDK8S_PLUSXX_MINUS_2" }} +{{- $cdk8s_plusXX_MINUS_1 := getenv "CDK8S_PLUSXX_MINUS_1" }} +{{- $cdk8s_plusXX := getenv "CDK8S_PLUSXX" }} {{- $cdk8s_cli_version := getenv "CDK8S_CLI_VERSION" }} {{- $summary := .Site.Params.summary }} @@ -26,9 +29,9 @@ {{- $link_terms := "https://aws.amazon.com/terms/?nc1=f_pr" }} {{- $link_cdk8s_ref := (print $docs_root "/reference/cdk8s/typescript") }} -{{- $link_plusXX_minus2_ref := (print $docs_root "/reference/cdk8s-plus-" $cdk8s_plusXX_MINUS_2_version "/typescript") }} -{{- $link_plusXX_minus1_ref := (print $docs_root "/reference/cdk8s-plus-" $cdk8s_plusXX_MINUS_1_version "/typescript") }} -{{- $link_plusXX_ref := (print $docs_root "/reference/cdk8s-plus-" $cdk8s_plusXX_version "/typescript") }} +{{- $link_plusXX_minus2_ref := (print $docs_root "/reference/cdk8s-plus-" $cdk8s_plusXX_MINUS_2 "/typescript") }} +{{- $link_plusXX_minus1_ref := (print $docs_root "/reference/cdk8s-plus-" $cdk8s_plusXX_MINUS_1 "/typescript") }} +{{- $link_plusXX_ref := (print $docs_root "/reference/cdk8s-plus-" $cdk8s_plusXX "/typescript") }} {{- $link_cli := (print $docs_root "/cli") }} {{- $everywhere := .Site.Params.features.everywhere }}