From 7808e7d12374ea42174abe4d8e929587620c6fee Mon Sep 17 00:00:00 2001 From: Ben Derham <1805685+benderham@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:08:29 +0800 Subject: [PATCH] Update link to Keystone Enterprise (#9320) Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com> --- docs/components/Footer.tsx | 3 +-- docs/components/Header.tsx | 24 +++++++++++++++++++++--- docs/redirects.mjs | 5 +++++ 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/docs/components/Footer.tsx b/docs/components/Footer.tsx index 53d380a70fc..031f174c3b9 100644 --- a/docs/components/Footer.tsx +++ b/docs/components/Footer.tsx @@ -1,4 +1,3 @@ - /** @jsxImportSource @emotion/react */ import Link from 'next/link' @@ -75,7 +74,7 @@ export function Footer () { For Content management
  • - For Enterprise + For Enterprise ↗
  • diff --git a/docs/components/Header.tsx b/docs/components/Header.tsx index e109db54e5d..ee541fdbb7b 100644 --- a/docs/components/Header.tsx +++ b/docs/components/Header.tsx @@ -84,7 +84,17 @@ function useCurrentSection () { if (['/blog'].some(check)) return '/blog' } -function LinkItem ({ children, href }: { children: ReactNode, href: string }) { +function LinkItem ({ + children, + href, + target, + rel, +}: { + children: ReactNode + href: string + target?: string + rel?: string +}) { const mq = useMediaQuery() const currentSection = useCurrentSection() const isActive = href === currentSection @@ -95,6 +105,8 @@ function LinkItem ({ children, href }: { children: ReactNode, href: string }) { isActive={isActive} alwaysVisible href={href} + target={target} + rel={rel} css={{ padding: '0 !important', }} @@ -387,7 +399,7 @@ export function Header () { { label: 'For Content Management', href: '/for-content-management' }, { label: 'Our Roadmap', href: '/roadmap' }, { label: 'GitHub Releases', href: 'https://github.com/keystonejs/keystone/releases' }, - { label: 'Enterprise', href: '/enterprise' }, + { label: 'Enterprise', href: 'https://www.thinkmill.com.au/services/keystone' }, ]} /> @@ -429,7 +441,13 @@ export function Header () { display: ['none', null, 'inline-block'], })} > - Enterprise + + Enterprise ↗ +