From 68c3c4c04f01ee4fd82c42a69c078c17cac0015d Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 1 Mar 2021 15:23:36 -0500 Subject: [PATCH] Lens should point to the release docs Signed-off-by: Sebastian Malton --- src/common/vars.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/vars.ts b/src/common/vars.ts index 396a1077c5..cf45195563 100644 --- a/src/common/vars.ts +++ b/src/common/vars.ts @@ -42,5 +42,8 @@ export const apiKubePrefix = "/api-kube"; // k8s cluster apis // Links export const issuesTrackerUrl = "https://github.com/lensapp/lens/issues"; export const slackUrl = "https://join.slack.com/t/k8slens/shared_invite/enQtOTc5NjAyNjYyOTk4LWU1NDQ0ZGFkOWJkNTRhYTc2YjVmZDdkM2FkNGM5MjhiYTRhMDU2NDQ1MzIyMDA4ZGZlNmExOTc0N2JmY2M3ZGI"; -export const docsUrl = "https://docs.k8slens.dev/"; export const supportUrl = "https://docs.k8slens.dev/latest/support/"; + +const docsVersion = isProduction ? `v${packageInfo.version}` : "latest"; + +export const docsUrl = `https://docs.k8slens.dev/${docsVersion}`;