From f4873f31c681fd87c4e3e5d8f891bfaba2d45b98 Mon Sep 17 00:00:00 2001 From: Jon Harrell <4829245+jharrell@users.noreply.github.com> Date: Tue, 20 Feb 2024 08:13:23 -0600 Subject: [PATCH 1/3] update footer --- docusaurus.config.ts | 61 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 3107804b04..a49ba0152e 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -97,42 +97,75 @@ const config: Config = { style: 'dark', links: [ { - title: 'Docs', + title: 'Products', items: [ { - label: 'Tutorial', - to: '/docs/intro', + label: 'Client', + href: 'https://prisma.io/client', + }, + { + label: 'Migrate', + href: 'https://prisma.io/migrate', + }, + { + label: 'Accelerate', + href: 'https://prisma.io/accelerate', + }, + { + label: 'Pulse', + href: 'https://prisma.io/pulse', + }, + { + label: 'Pricing', + href: 'https://prisma.io/pricing', }, ], }, { - title: 'Community', + title: 'Developers', items: [ { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/docusaurus', + label: 'Docs', + to: '/', + }, + { + label: 'Get Started', + to: '/getting-started', }, { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', + label: 'Prisma Examples', + href: 'https://github.com/prisma/prisma-examples', }, + ], + }, + { + title: 'Use Cases', + items: [ { - label: 'Twitter', - href: 'https://twitter.com/docusaurus', + label: 'Customer Stories', + href: 'https://www.prisma.io/showcase', + }, + { + label: 'Enterprise', + href: 'https://www.prisma.io/enterprise', }, ], }, { - title: 'More', + title: 'Company', items: [ { - label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + label: 'About', + href: 'https://prisma.io/about', + }, + { + label: 'Blog', + to: 'https://prisma.io/blog', }, ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + copyright: `Copyright © ${new Date().getFullYear()} Prisma Data, Inc. Built with Docusaurus.`, }, prism: { theme: prismThemes.github, From f73b11f2b9051aef8500b4d3684fb43292c7c15c Mon Sep 17 00:00:00 2001 From: Jon Harrell <4829245+jharrell@users.noreply.github.com> Date: Tue, 20 Feb 2024 09:07:04 -0600 Subject: [PATCH 2/3] make parallel blocks functional --- src/theme/MDXComponents.tsx | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/theme/MDXComponents.tsx b/src/theme/MDXComponents.tsx index 3b62310ab8..b106671a1a 100644 --- a/src/theme/MDXComponents.tsx +++ b/src/theme/MDXComponents.tsx @@ -27,9 +27,25 @@ const SwitchTech: React.FC = ({ children }) => { return

{children}

} -// TODO: we should fix this const ParallelBlocks: React.FC = ({ children }) => { - return <>{children} + const childArray = React.Children.toArray(children).map(child => { + if (React.isValidElement(child)) { + return
+ {child.props.content} +
{child}
+
+ } else { + return
+
{child}
+
+ } + }); + + return
+
+ {childArray} +
+
} type ButtonColor = 'red' | 'green' | 'grey' | 'grey-bg' | 'dark' From 67d4044a21876506c8f2eb63549299649d93c3d0 Mon Sep 17 00:00:00 2001 From: Jon Harrell <4829245+jharrell@users.noreply.github.com> Date: Tue, 20 Feb 2024 09:07:04 -0600 Subject: [PATCH 3/3] make parallel blocks functional --- src/theme/MDXComponents.tsx | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/theme/MDXComponents.tsx b/src/theme/MDXComponents.tsx index 3b62310ab8..b106671a1a 100644 --- a/src/theme/MDXComponents.tsx +++ b/src/theme/MDXComponents.tsx @@ -27,9 +27,25 @@ const SwitchTech: React.FC = ({ children }) => { return

{children}

} -// TODO: we should fix this const ParallelBlocks: React.FC = ({ children }) => { - return <>{children} + const childArray = React.Children.toArray(children).map(child => { + if (React.isValidElement(child)) { + return
+ {child.props.content} +
{child}
+
+ } else { + return
+
{child}
+
+ } + }); + + return
+
+ {childArray} +
+
} type ButtonColor = 'red' | 'green' | 'grey' | 'grey-bg' | 'dark'