Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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