From 0f7fdf2ac22a38ed45196a5db5e3ccc0d25fa06e Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Thu, 25 Jul 2024 15:19:24 +0100 Subject: [PATCH 1/3] prettier Signed-off-by: Richard Wall --- components/docs/VersionSelect.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/docs/VersionSelect.jsx b/components/docs/VersionSelect.jsx index 40738b76124..d9704de9ced 100644 --- a/components/docs/VersionSelect.jsx +++ b/components/docs/VersionSelect.jsx @@ -2,12 +2,12 @@ import { Listbox } from '@headlessui/react' import { useState } from 'react' import SidebarLink from './Sidebar/SidebarLink' -import { compareVersions } from 'compare-versions'; +import { compareVersions } from 'compare-versions' function labelFromVersion(version) { - return version === 'docs' - ? 'latest' - : version.replace(/-docs$/, '').replace(/^v/, ''); + return version === 'docs' + ? 'latest' + : version.replace(/-docs$/, '').replace(/^v/, '') } export default function VersionSelect({ @@ -25,7 +25,7 @@ export default function VersionSelect({ .reverse() return ( -
+
version: {labelFromVersion(version)} @@ -64,5 +64,5 @@ export default function VersionSelect({
- ); + ) } From 75585aa0102e3a422a66e07b15670c99cee37335 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Thu, 25 Jul 2024 15:20:48 +0100 Subject: [PATCH 2/3] Update side-menu link Signed-off-by: Richard Wall --- components/docs/VersionSelect.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/docs/VersionSelect.jsx b/components/docs/VersionSelect.jsx index d9704de9ced..fac4c7dca46 100644 --- a/components/docs/VersionSelect.jsx +++ b/components/docs/VersionSelect.jsx @@ -55,7 +55,7 @@ export default function VersionSelect({ ))}
Date: Thu, 25 Jul 2024 15:22:40 +0100 Subject: [PATCH 3/3] Update the release-next redirect link Signed-off-by: Richard Wall --- public/_redirects | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/_redirects b/public/_redirects index bb408696422..fc70d6a727c 100644 --- a/public/_redirects +++ b/public/_redirects @@ -6,7 +6,7 @@ https://trust-manager.io/* https://cert-manager.io/:splat 301! https://trust-manager.dev/* https://cert-manager.io/:splat 301! # Redirect all next-docs on the main site to the release-next preview -https://cert-manager.io/next-docs/* https://release-next--cert-manager-website.netlify.app/docs/:splat 301! +https://cert-manager.io/next-docs/* https://release-next--cert-manager.netlify.app/docs/:splat 301! # Various older renamed pages /docs/configuration/externalloadbalancer/ /docs/configuration/acme/http01/externalloadbalancer/ 301!