Skip to content

Commit

Permalink
Update link to Keystone Enterprise (#9320)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
  • Loading branch information
benderham and dcousens authored Sep 3, 2024
1 parent d543e60 commit 7808e7d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/** @jsxImportSource @emotion/react */

import Link from 'next/link'
Expand Down Expand Up @@ -75,7 +74,7 @@ export function Footer () {
<Link href="/for-content-management">For Content management</Link>
</li>
<li>
<Link href="/enterprise">For Enterprise</Link>
<Link href="https://www.thinkmill.com.au/services/keystone" target="_blank" rel="noreferrer">For Enterprise &#8599;</Link>
</li>
</List>
</div>
Expand Down
24 changes: 21 additions & 3 deletions docs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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',
}}
Expand Down Expand Up @@ -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' },
]}
/>
</span>
Expand Down Expand Up @@ -429,7 +441,13 @@ export function Header () {
display: ['none', null, 'inline-block'],
})}
>
<LinkItem href="/enterprise">Enterprise</LinkItem>
<LinkItem
href="https://www.thinkmill.com.au/services/keystone"
target="_blank"
rel="noreferrer"
>
Enterprise &#8599;
</LinkItem>
</span>
<Button
as="a"
Expand Down
5 changes: 5 additions & 0 deletions docs/redirects.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ const CURRENT = [
destination: '/docs/graphql/overview',
permanent: false,
},
{
source: '/enterprise',
destination: 'https://www.thinkmill.com.au/services/keystone',
permanent: true,
},
/* Telemetry - used to shorten the URL for CLI message */
{
source: '/telemetry',
Expand Down

0 comments on commit 7808e7d

Please sign in to comment.