Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,17 @@ const config: Config = {
sidebarPath: "./sidebars.ts",
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/prisma/docs/tree/main",
lastVersion: "current",
versions: {
current: {
label: "7.0",
path: "",
},
"6.0.0": {
label: "6.0",
path: "6.0",
},
},
},
blog: false,
theme: {
Expand Down Expand Up @@ -325,6 +336,12 @@ const config: Config = {
},
],
},
{
type: "docsVersionDropdown",
position: "right",
// Only show v7 (current) and v6
versions: ["current", "6.0.0"],
},
{
href: "https://pris.ly/github?utm_source=docs&utm_medium=navbar",
position: "right",
Expand Down
36 changes: 35 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions src/components/GettingStarted/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,36 @@ export const PrismaPostgres = ({ color, height, width }: any) => (
</svg>
);

export const Plus = ({ color, width, height }: any) => (
<svg
xmlns="http://www.w3.org/2000/svg"
height={height ? height : "16"}
width={width ? width : "14"}
viewBox="0 0 448 512"
style={{ marginRight: `4px`, transform: `translateY(2px)` }}
>
<path
fill={color ? color : "currentColor"}
d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"
/>
</svg>
);

export const Plug = ({ color, width, height }: any) => (
<svg
xmlns="http://www.w3.org/2000/svg"
height={height ? height : "16"}
width={width ? width : "14"}
viewBox="0 0 384 512"
style={{ marginRight: `4px`, transform: `translateY(2px)` }}
>
<path
fill={color ? color : "currentColor"}
d="M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"
/>
</svg>
);

export const BorderBoxWrapper = ({ children, ...props }) => (
<div {...props} className={styles.borderBox}>
{children}
Expand Down Expand Up @@ -123,6 +153,21 @@ export const LinkCard = ({ icon, title, desc, link, highlight }: any) => {
);
};

export const QuickstartLinkCard = ({ title, highlight, link, children }: any) => {
return (
<Link
to={link}
className={clsx(styles.linkCardWrapper, highlight && styles.linkCardHighlight)}
style={highlight ? { borderColor: highlight } : {}}
>
<div className={styles.title}>
<h6>{title}</h6>
</div>
<div>{children}</div>
</Link>
);
};

export const Tab = ({ children, ...props }) => (
<div {...props} className={styles.tab}>
{children}
Expand Down
Loading
Loading