diff --git a/.gitignore b/.gitignore
index d815957f75..b2381dedda 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,10 +3,12 @@
# Production
/build
+/public
# Generated files
.docusaurus
.cache-loader
+.cache
# Misc
.DS_Store
diff --git a/docs/100-getting-started/index.mdx b/docs/100-getting-started/index.mdx
index 6501dc4708..7a78dd4fd5 100644
--- a/docs/100-getting-started/index.mdx
+++ b/docs/100-getting-started/index.mdx
@@ -72,32 +72,32 @@ _Select one of these options if you want to connect Prisma ORM to your own datab
@@ -110,32 +110,32 @@ _Select one of these options if you want to connect Prisma ORM to your own datab
diff --git a/docs/200-orm/index.mdx b/docs/200-orm/index.mdx
index 01f3c1c165..1d3b842b98 100644
--- a/docs/200-orm/index.mdx
+++ b/docs/200-orm/index.mdx
@@ -1,5 +1,6 @@
---
title: 'ORM'
+id: 'orm-index'
metaTitle: 'ORM'
metaDescription: 'ORM'
toc: false
diff --git a/docs/index.mdx b/docs/index.mdx
new file mode 100644
index 0000000000..ce15547473
--- /dev/null
+++ b/docs/index.mdx
@@ -0,0 +1,10 @@
+---
+title: 'Homepage'
+metaTitle: 'homepage'
+metaDescription: 'About the Prisma docs.'
+toc: false
+---
+
+
+
+
diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index a49ba0152e..f95b8c9772 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -39,7 +39,7 @@ const config: Config = {
},
blog: false,
theme: {
- customCss: './src/css/custom.css',
+ customCss: ['./src/css/custom.css', './src/css/all.css', './src/css/theming.css'],
},
} satisfies Preset.Options,
],
@@ -49,35 +49,47 @@ const config: Config = {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
- title: 'Docs',
logo: {
- alt: 'Prisma Logo',
- src: 'img/logo-dark.svg',
srcDark: 'img/logo-white.svg',
+ alt: 'Prisma logo',
+ src: 'img/logo.svg',
+ href: "https://prisma.io/",
+ target: "_self"
},
items: [
{
type: 'docSidebar',
- sidebarId: 'getStartedSidebar',
+ sidebarId: 'index',
+ position: 'left',
+ label: '/docs',
+ className: 'logo-link',
+ },
+ {
+ type: 'docSidebar',
+ sidebarId: 'gettingStarted',
position: 'left',
label: 'Get Started',
+ className: 'indigo first-item',
},
{
type: 'docSidebar',
sidebarId: 'ormSidebar',
position: 'left',
+ className: 'indigo',
label: 'ORM',
},
{
type: 'docSidebar',
sidebarId: 'accelerateSidebar',
position: 'left',
+ className: 'teal',
label: 'Accelerate',
},
{
type: 'docSidebar',
sidebarId: 'pulseSidebar',
position: 'left',
+ className: 'teal',
label: 'Pulse',
},
{
@@ -86,6 +98,12 @@ const config: Config = {
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
+ {
+ href: 'https://console.prisma.io/login?utm_source=docs&utm_medium=login',
+ position: 'right',
+ label: "Login",
+ className: 'navbar-login-btn internal teal-btn',
+ },
],
},
algolia: {
@@ -100,29 +118,33 @@ const config: Config = {
title: 'Products',
items: [
{
- label: 'Client',
- href: 'https://prisma.io/client',
- },
- {
- label: 'Migrate',
- href: 'https://prisma.io/migrate',
+ label: 'ORM',
+ href: 'https://prisma.io/orm',
+ target: "_self",
+ class: "internal footer__link-item"
},
{
label: 'Accelerate',
href: 'https://prisma.io/accelerate',
+ target: "_self",
+ class: "internal footer__link-item"
},
{
label: 'Pulse',
href: 'https://prisma.io/pulse',
+ target: "_self",
+ class: "internal footer__link-item"
},
{
label: 'Pricing',
href: 'https://prisma.io/pricing',
+ target: "_self",
+ class: "internal footer__link-item"
},
],
},
{
- title: 'Developers',
+ title: 'Resources',
items: [
{
label: 'Docs',
@@ -136,18 +158,64 @@ const config: Config = {
label: 'Prisma Examples',
href: 'https://github.com/prisma/prisma-examples',
},
+ {
+ label: 'Prisma in your stack',
+ href: 'https://prisma.io/stack',
+ target: "_self",
+ class: "internal footer__link-item"
+ },
+ {
+ label: 'Ecosystem',
+ href: 'https://prisma.io/ecosystem',
+ target: "_self",
+ class: "internal footer__link-item"
+ },
+ {
+ label: 'Tutorials',
+ href: 'https://prisma.io/learn',
+ target: "_self",
+ class: "internal footer__link-item"
+ },
+ {
+ label: 'Playground',
+ href: 'https://playground.prisma.io/',
+ },
+ {
+ label: 'Customer stories',
+ href: 'https://prisma.io/showcase',
+ target: "_self",
+ class: "internal footer__link-item"
+ },
+ {
+ label: 'Data Platform status',
+ href: 'https://www.prisma-status.com/',
+ },
+ {
+ label: 'VS Code Extension',
+ href: 'https://marketplace.visualstudio.com/items?itemName=Prisma.prisma',
+ },
],
},
{
- title: 'Use Cases',
+ title: 'Contact us',
items: [
{
- label: 'Customer Stories',
- href: 'https://www.prisma.io/showcase',
+ label: 'Community',
+ href: 'https://www.prisma.io/community',
+ target: "_self",
+ class: "internal footer__link-item"
+ },
+ {
+ label: 'Support',
+ href: 'https://www.prisma.io/support',
+ target: "_self",
+ class: "internal footer__link-item"
},
{
label: 'Enterprise',
href: 'https://www.prisma.io/enterprise',
+ target: "_self",
+ class: "internal footer__link-item"
},
],
},
@@ -157,15 +225,94 @@ const config: Config = {
{
label: 'About',
href: 'https://prisma.io/about',
+ target: "_self",
+ class: "internal footer__link-item",
},
{
label: 'Blog',
to: 'https://prisma.io/blog',
+ target: "_self",
+ class: "internal footer__link-item",
+ },
+ {
+ label: 'Data DX',
+ to: 'https://www.datadx.io/',
+ },
+ {
+ label: 'Careers',
+ to: 'https://prisma.io/careers',
+ target: "_self",
+ class: "internal footer__link-item",
+ },
+ {
+ label: 'Events',
+ to: 'https://prisma.io/events',
+ target: "_self",
+ class: "internal footer__link-item",
+ },
+ {
+ label: 'Causes',
+ to: 'https://prismaio.notion.site/Prisma-Causes-0c9e1ddc0f5942edaba355692cfee69f',
+ },
+ {
+ label: 'OSS Friends',
+ to: 'https://prisma.io/oss-friends',
+ target: "_self",
+ class: "internal footer__link-item",
+ },
+ {
+ label: 'Terms & Privacy',
+ to: 'https://prismaio.notion.site/Terms-Privacy-5b5b9938b3a941ccb2ad97eaf5524c07',
+ },
+ {
+ label: 'Service Level Agreement',
+ to: 'https://pris.ly/sla',
},
],
},
+ {
+ items: [
+ {
+ label: ' ',
+ href: "https://discord.gg/KQyTW2H5ca",
+ class: "fa-brands fa-discord internal"
+ },
+ {
+ label: ' ',
+ href: "https://discord.gg/KQyTW2H5ca",
+ class: "fa-brands fa-x-twitter internal"
+ },
+ {
+ label: ' ',
+ href: "https://discord.gg/KQyTW2H5ca",
+ class: "fa-brands fa-youtube internal"
+ },
+ {
+ label: ' ',
+ href: "https://discord.gg/KQyTW2H5ca",
+ class: "fa-brands fa-slack internal"
+ },
+ {
+ label: ' ',
+ href: "https://discord.gg/KQyTW2H5ca",
+ class: "fa-brands fa-github internal"
+ },
+ ]
+ }
],
- copyright: `Copyright © ${new Date().getFullYear()} Prisma Data, Inc. Built with Docusaurus.`,
+ logo: {
+ srcDark: 'img/logo-white.svg',
+ alt: 'Prisma logo',
+ src: 'img/logo-white.svg',
+ href: "https://prisma.io/",
+ target: "_self",
+ },
+ copyright: `© ${new Date().getFullYear()} Prisma Data, Inc.`,
+ },
+ docs: {
+ sidebar: {
+ autoCollapseCategories: true
+ },
},
prism: {
theme: prismThemes.github,
diff --git a/package-lock.json b/package-lock.json
index 9cb87fc58f..e80bc0484d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,6 +11,9 @@
"@docusaurus/core": "^3.1.1",
"@docusaurus/preset-classic": "^3.1.1",
"@mdx-js/react": "^3.0.0",
+ "@react-aria/overlays": "^3.21.1",
+ "@react-aria/tooltip": "^3.7.2",
+ "@react-aria/utils": "^3.23.2",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
@@ -3284,6 +3287,50 @@
"node": ">=14"
}
},
+ "node_modules/@formatjs/ecma402-abstract": {
+ "version": "1.18.2",
+ "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.18.2.tgz",
+ "integrity": "sha512-+QoPW4csYALsQIl8GbN14igZzDbuwzcpWrku9nyMXlaqAlwRBgl5V+p0vWMGFqHOw37czNXaP/lEk4wbLgcmtA==",
+ "dependencies": {
+ "@formatjs/intl-localematcher": "0.5.4",
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@formatjs/fast-memoize": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-2.2.0.tgz",
+ "integrity": "sha512-hnk/nY8FyrL5YxwP9e4r9dqeM6cAbo8PeU9UjyXojZMNvVad2Z06FAVHyR3Ecw6fza+0GH7vdJgiKIVXTMbSBA==",
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@formatjs/icu-messageformat-parser": {
+ "version": "2.7.6",
+ "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.7.6.tgz",
+ "integrity": "sha512-etVau26po9+eewJKYoiBKP6743I1br0/Ie00Pb/S/PtmYfmjTcOn2YCh2yNkSZI12h6Rg+BOgQYborXk46BvkA==",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "1.18.2",
+ "@formatjs/icu-skeleton-parser": "1.8.0",
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@formatjs/icu-skeleton-parser": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.8.0.tgz",
+ "integrity": "sha512-QWLAYvM0n8hv7Nq5BEs4LKIjevpVpbGLAJgOaYzg9wABEoX1j0JO1q2/jVkO6CVlq0dbsxZCngS5aXbysYueqA==",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "1.18.2",
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@formatjs/intl-localematcher": {
+ "version": "0.5.4",
+ "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.5.4.tgz",
+ "integrity": "sha512-zTwEpWOzZ2CiKcB93BLngUX59hQkuZjT2+SAQEscSm52peDW/getsawMcWF1rGRpMCX6D7nSJA3CzJ8gn13N/g==",
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
"node_modules/@hapi/hoek": {
"version": "9.3.0",
"resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",
@@ -3297,6 +3344,39 @@
"@hapi/hoek": "^9.0.0"
}
},
+ "node_modules/@internationalized/date": {
+ "version": "3.5.2",
+ "resolved": "https://registry.npmjs.org/@internationalized/date/-/date-3.5.2.tgz",
+ "integrity": "sha512-vo1yOMUt2hzp63IutEaTUxROdvQg1qlMRsbCvbay2AK2Gai7wIgCyK5weEX3nHkiLgo4qCXHijFNC/ILhlRpOQ==",
+ "dependencies": {
+ "@swc/helpers": "^0.5.0"
+ }
+ },
+ "node_modules/@internationalized/message": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@internationalized/message/-/message-3.1.2.tgz",
+ "integrity": "sha512-MHAWsZWz8jf6jFPZqpTudcCM361YMtPIRu9CXkYmKjJ/0R3pQRScV5C0zS+Qi50O5UAm8ecKhkXx6mWDDcF6/g==",
+ "dependencies": {
+ "@swc/helpers": "^0.5.0",
+ "intl-messageformat": "^10.1.0"
+ }
+ },
+ "node_modules/@internationalized/number": {
+ "version": "3.5.1",
+ "resolved": "https://registry.npmjs.org/@internationalized/number/-/number-3.5.1.tgz",
+ "integrity": "sha512-N0fPU/nz15SwR9IbfJ5xaS9Ss/O5h1sVXMZf43vc9mxEG48ovglvvzBjF53aHlq20uoR6c+88CrIXipU/LSzwg==",
+ "dependencies": {
+ "@swc/helpers": "^0.5.0"
+ }
+ },
+ "node_modules/@internationalized/string": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/@internationalized/string/-/string-3.2.1.tgz",
+ "integrity": "sha512-vWQOvRIauvFMzOO+h7QrdsJmtN1AXAFVcaLWP9AseRN2o7iHceZ6bIXhBD4teZl8i91A3gxKnWBlGgjCwU6MFQ==",
+ "dependencies": {
+ "@swc/helpers": "^0.5.0"
+ }
+ },
"node_modules/@jest/schemas": {
"version": "29.6.3",
"resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz",
@@ -3505,6 +3585,214 @@
"resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.24.tgz",
"integrity": "sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ=="
},
+ "node_modules/@react-aria/focus": {
+ "version": "3.16.2",
+ "resolved": "https://registry.npmjs.org/@react-aria/focus/-/focus-3.16.2.tgz",
+ "integrity": "sha512-Rqo9ummmgotESfypzFjI3uh58yMpL+E+lJBbQuXkBM0u0cU2YYzu0uOrFrq3zcHk997udZvq1pGK/R+2xk9B7g==",
+ "dependencies": {
+ "@react-aria/interactions": "^3.21.1",
+ "@react-aria/utils": "^3.23.2",
+ "@react-types/shared": "^3.22.1",
+ "@swc/helpers": "^0.5.0",
+ "clsx": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-aria/i18n": {
+ "version": "3.10.2",
+ "resolved": "https://registry.npmjs.org/@react-aria/i18n/-/i18n-3.10.2.tgz",
+ "integrity": "sha512-Z1ormoIvMOI4mEdcFLYsoJy9w/EzBdBmgfLP+S/Ah+1xwQOXpgwZxiKOhYHpWa0lf6hkKJL34N9MHJvCJ5Crvw==",
+ "dependencies": {
+ "@internationalized/date": "^3.5.2",
+ "@internationalized/message": "^3.1.2",
+ "@internationalized/number": "^3.5.1",
+ "@internationalized/string": "^3.2.1",
+ "@react-aria/ssr": "^3.9.2",
+ "@react-aria/utils": "^3.23.2",
+ "@react-types/shared": "^3.22.1",
+ "@swc/helpers": "^0.5.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-aria/interactions": {
+ "version": "3.21.1",
+ "resolved": "https://registry.npmjs.org/@react-aria/interactions/-/interactions-3.21.1.tgz",
+ "integrity": "sha512-AlHf5SOzsShkHfV8GLLk3v9lEmYqYHURKcXWue0JdYbmquMRkUsf/+Tjl1+zHVAQ8lKqRnPYbTmc4AcZbqxltw==",
+ "dependencies": {
+ "@react-aria/ssr": "^3.9.2",
+ "@react-aria/utils": "^3.23.2",
+ "@react-types/shared": "^3.22.1",
+ "@swc/helpers": "^0.5.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-aria/overlays": {
+ "version": "3.21.1",
+ "resolved": "https://registry.npmjs.org/@react-aria/overlays/-/overlays-3.21.1.tgz",
+ "integrity": "sha512-djEBDF+TbIIOHWWNpdm19+z8xtY8U+T+wKVQg/UZ6oWnclSqSWeGl70vu73Cg4HVBJ4hKf1SRx4Z/RN6VvH4Yw==",
+ "dependencies": {
+ "@react-aria/focus": "^3.16.2",
+ "@react-aria/i18n": "^3.10.2",
+ "@react-aria/interactions": "^3.21.1",
+ "@react-aria/ssr": "^3.9.2",
+ "@react-aria/utils": "^3.23.2",
+ "@react-aria/visually-hidden": "^3.8.10",
+ "@react-stately/overlays": "^3.6.5",
+ "@react-types/button": "^3.9.2",
+ "@react-types/overlays": "^3.8.5",
+ "@react-types/shared": "^3.22.1",
+ "@swc/helpers": "^0.5.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-aria/ssr": {
+ "version": "3.9.2",
+ "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.9.2.tgz",
+ "integrity": "sha512-0gKkgDYdnq1w+ey8KzG9l+H5Z821qh9vVjztk55rUg71vTk/Eaebeir+WtzcLLwTjw3m/asIjx8Y59y1lJZhBw==",
+ "dependencies": {
+ "@swc/helpers": "^0.5.0"
+ },
+ "engines": {
+ "node": ">= 12"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-aria/tooltip": {
+ "version": "3.7.2",
+ "resolved": "https://registry.npmjs.org/@react-aria/tooltip/-/tooltip-3.7.2.tgz",
+ "integrity": "sha512-6jXOSGPao3gPgUQWLbH2r/jxGMqIaIKrJgfwu9TQrh+UkwwiTYW20EpEDCYY2nRFlcoi7EYAiPDSEbHCwXS7Lg==",
+ "dependencies": {
+ "@react-aria/focus": "^3.16.2",
+ "@react-aria/interactions": "^3.21.1",
+ "@react-aria/utils": "^3.23.2",
+ "@react-stately/tooltip": "^3.4.7",
+ "@react-types/shared": "^3.22.1",
+ "@react-types/tooltip": "^3.4.7",
+ "@swc/helpers": "^0.5.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-aria/utils": {
+ "version": "3.23.2",
+ "resolved": "https://registry.npmjs.org/@react-aria/utils/-/utils-3.23.2.tgz",
+ "integrity": "sha512-yznR9jJ0GG+YJvTMZxijQwVp+ahP66DY0apZf7X+dllyN+ByEDW+yaL1ewYPIpugxVzH5P8jhnBXsIyHKN411g==",
+ "dependencies": {
+ "@react-aria/ssr": "^3.9.2",
+ "@react-stately/utils": "^3.9.1",
+ "@react-types/shared": "^3.22.1",
+ "@swc/helpers": "^0.5.0",
+ "clsx": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-aria/visually-hidden": {
+ "version": "3.8.10",
+ "resolved": "https://registry.npmjs.org/@react-aria/visually-hidden/-/visually-hidden-3.8.10.tgz",
+ "integrity": "sha512-np8c4wxdbE7ZrMv/bnjwEfpX0/nkWy9sELEb0sK8n4+HJ+WycoXXrVxBUb9tXgL/GCx5ReeDQChjQWwajm/z3A==",
+ "dependencies": {
+ "@react-aria/interactions": "^3.21.1",
+ "@react-aria/utils": "^3.23.2",
+ "@react-types/shared": "^3.22.1",
+ "@swc/helpers": "^0.5.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-stately/overlays": {
+ "version": "3.6.5",
+ "resolved": "https://registry.npmjs.org/@react-stately/overlays/-/overlays-3.6.5.tgz",
+ "integrity": "sha512-U4rCFj6TPJPXLUvYXAcvh+yP/CO2W+7f0IuqP7ZZGE+Osk9qFkT+zRK5/6ayhBDFpmueNfjIEAzT9gYPQwNHFw==",
+ "dependencies": {
+ "@react-stately/utils": "^3.9.1",
+ "@react-types/overlays": "^3.8.5",
+ "@swc/helpers": "^0.5.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-stately/tooltip": {
+ "version": "3.4.7",
+ "resolved": "https://registry.npmjs.org/@react-stately/tooltip/-/tooltip-3.4.7.tgz",
+ "integrity": "sha512-ACtRgBQ8rphBtsUaaxvEAM0HHN9PvMuyvL0vUHd7jvBDCVZJ6it1BKu9SBKjekBkoBOw9nemtkplh9R2CA6V8Q==",
+ "dependencies": {
+ "@react-stately/overlays": "^3.6.5",
+ "@react-types/tooltip": "^3.4.7",
+ "@swc/helpers": "^0.5.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-stately/utils": {
+ "version": "3.9.1",
+ "resolved": "https://registry.npmjs.org/@react-stately/utils/-/utils-3.9.1.tgz",
+ "integrity": "sha512-yzw75GE0iUWiyps02BOAPTrybcsMIxEJlzXqtvllAb01O9uX5n0i3X+u2eCpj2UoDF4zS08Ps0jPgWxg8xEYtA==",
+ "dependencies": {
+ "@swc/helpers": "^0.5.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-types/button": {
+ "version": "3.9.2",
+ "resolved": "https://registry.npmjs.org/@react-types/button/-/button-3.9.2.tgz",
+ "integrity": "sha512-EnPTkGHZRtiwAoJy5q9lDjoG30bEzA/qnvKG29VVXKYAGeqY2IlFs1ypmU+z1X/CpJgPcG3I5cakM7yTVm3pSg==",
+ "dependencies": {
+ "@react-types/shared": "^3.22.1"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-types/overlays": {
+ "version": "3.8.5",
+ "resolved": "https://registry.npmjs.org/@react-types/overlays/-/overlays-3.8.5.tgz",
+ "integrity": "sha512-4D7EEBQigD/m8hE68Ys8eloyyZFHHduqykSIgINJ0edmo0jygRbWlTwuhWFR9USgSP4dK54duN0Mvq0m4HEVEw==",
+ "dependencies": {
+ "@react-types/shared": "^3.22.1"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-types/shared": {
+ "version": "3.22.1",
+ "resolved": "https://registry.npmjs.org/@react-types/shared/-/shared-3.22.1.tgz",
+ "integrity": "sha512-PCpa+Vo6BKnRMuOEzy5zAZ3/H5tnQg1e80khMhK2xys0j6ZqzkgQC+fHMNZ7VDFNLqqNMj/o0eVeSBDh2POjkw==",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
+ "node_modules/@react-types/tooltip": {
+ "version": "3.4.7",
+ "resolved": "https://registry.npmjs.org/@react-types/tooltip/-/tooltip-3.4.7.tgz",
+ "integrity": "sha512-rV4HZRQxLRNhe24yATOxnFQtGRUmsR7mqxMupXCmd1vrw8h+rdKlQv1zW2q8nALAKNmnRXZJHxYQ1SFzb98fgg==",
+ "dependencies": {
+ "@react-types/overlays": "^3.8.5",
+ "@react-types/shared": "^3.22.1"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+ }
+ },
"node_modules/@sideway/address": {
"version": "4.1.5",
"resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz",
@@ -3805,6 +4093,14 @@
"url": "https://github.com/sponsors/gregberge"
}
},
+ "node_modules/@swc/helpers": {
+ "version": "0.5.6",
+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.6.tgz",
+ "integrity": "sha512-aYX01Ke9hunpoCexYAgQucEpARGQ5w/cqHFrIR+e9gdKb1QWTsVJuTJ2ozQzIAxLyRQe/m+2RqzkyOOGiMKRQA==",
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
"node_modules/@szmarczak/http-timer": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz",
@@ -8190,6 +8486,17 @@
"node": ">= 0.10"
}
},
+ "node_modules/intl-messageformat": {
+ "version": "10.5.11",
+ "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-10.5.11.tgz",
+ "integrity": "sha512-eYq5fkFBVxc7GIFDzpFQkDOZgNayNTQn4Oufe8jw6YY6OHVw70/4pA3FyCsQ0Gb2DnvEJEMmN2tOaXUGByM+kg==",
+ "dependencies": {
+ "@formatjs/ecma402-abstract": "1.18.2",
+ "@formatjs/fast-memoize": "2.2.0",
+ "@formatjs/icu-messageformat-parser": "2.7.6",
+ "tslib": "^2.4.0"
+ }
+ },
"node_modules/invariant": {
"version": "2.2.4",
"resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
diff --git a/package.json b/package.json
index 006f259e78..467a75c318 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
- "clear": "docusaurus clear",
+ "clean": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
@@ -20,6 +20,9 @@
"@docusaurus/core": "^3.1.1",
"@docusaurus/preset-classic": "^3.1.1",
"@mdx-js/react": "^3.0.0",
+ "@react-aria/overlays": "^3.21.1",
+ "@react-aria/tooltip": "^3.7.2",
+ "@react-aria/utils": "^3.23.2",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
diff --git a/sidebars.ts b/sidebars.ts
index 6542790a94..82247f6402 100644
--- a/sidebars.ts
+++ b/sidebars.ts
@@ -12,13 +12,159 @@ import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
*/
const sidebars: SidebarsConfig = {
// By default, Docusaurus generates a sidebar from the docs folder structure
- // tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],
- getStartedSidebar: [{ type: 'autogenerated', dirName: '100-getting-started' }],
- ormSidebar: [{ type: 'autogenerated', dirName: '200-orm' }],
- accelerateSidebar: [{ type: 'autogenerated', dirName: '300-accelerate' }],
- pulseSidebar: [{ type: 'autogenerated', dirName: '400-pulse' }],
- platformSidebar: [{ type: 'autogenerated', dirName: '500-platform' }],
- aboutSidebar: [{ type: 'autogenerated', dirName: '600-about' }],
+ index: ['index'],
+ gettingStarted: [
+ {
+ type: "category",
+ collapsed: false,
+ collapsible: false,
+ label: "Get Started",
+ items: [
+ "getting-started/index",
+ "getting-started/quickstart",
+ {
+ type: "category",
+ label: "Set up Prisma ORM",
+ collapsed: false,
+ items: [{
+ type: 'autogenerated',
+ dirName: '100-getting-started/02-setup-prisma',
+ }]
+ }
+ ]
+ }
+ ],
+ ormSidebar: [{
+ type: "category",
+ label: "ORM",
+ collapsed: false,
+ collapsible: false,
+ items: [
+ 'orm/orm-index',
+ {
+ type: "category",
+ label: "Overview",
+ collapsed: false,
+ items : [{
+ type: 'autogenerated',
+ dirName: '200-orm/050-overview',
+ }]
+ },
+ {
+ type: "category",
+ label: "Prisma Schema",
+ collapsed: false,
+ items : [{
+ type: 'autogenerated',
+ dirName: '200-orm/100-prisma-schema'
+ }]
+ },
+ {
+ type: "category",
+ label: "Prisma Client",
+ collapsed: false,
+ items : [{
+ type: 'autogenerated',
+ dirName: '200-orm/200-prisma-client'
+ }]
+ },
+ {
+ type: "category",
+ label: "Prisma Migrate",
+ collapsed: false,
+ items : [{
+ type: 'autogenerated',
+ dirName: '200-orm/300-prisma-migrate'
+ }]
+ },
+ {
+ type: "category",
+ label: "Tools",
+ collapsed: false,
+ items : [{
+ type: 'autogenerated',
+ dirName: '200-orm/400-tools'
+ }]
+ },
+ {
+ type: "category",
+ label: "Reference",
+ collapsed: false,
+ items : [{
+ type: 'autogenerated',
+ dirName: '200-orm/500-reference'
+ }]
+ },
+ {
+ type: "category",
+ label: "More",
+ collapsed: false,
+ items : [{
+ type: 'autogenerated',
+ dirName: '200-orm/800-more'
+ }]
+ }
+ ]}],
+ accelerateSidebar: [
+ {
+ type: "category",
+ label: "Accelerate",
+ collapsed: false,
+ collapsible: false,
+ items: [{ type: 'autogenerated', dirName: '300-accelerate'}]
+ },
+ {
+ type: "category",
+ label: "Platform",
+ collapsed: false,
+ collapsible: false,
+ items: [
+ 'platform/about',
+ 'platform/maturity-levels',
+ 'platform/limits',
+ 'platform/support',
+ 'platform/index',
+ {
+ type: "category",
+ collapsed: false,
+ label: "Concepts",
+ items: [{ type: 'autogenerated', dirName: '500-platform/20-concepts'}]
+ }
+ ]
+ }
+ ],
+ pulseSidebar: [
+ {
+ type: "category",
+ label: "Pulse",
+ collapsible: false,
+ collapsed: false,
+ items: [{ type: 'autogenerated', dirName: '400-pulse'}]
+ },
+ {
+ type: "category",
+ label: "Platform",
+ collapsible: false,
+ collapsed: false,
+ items: [
+ 'platform/about',
+ 'platform/maturity-levels',
+ 'platform/limits',
+ 'platform/support',
+ 'platform/index',
+ {
+ type: "category",
+ collapsed: false,
+ label: "Concepts",
+ items: [{ type: 'autogenerated', dirName: '500-platform/20-concepts'}]
+ }
+ ]
+ }
+ ],
+ aboutSidebar: [{
+ type: 'autogenerated',
+ dirName: '600-about'
+ }],
};
export default sidebars;
diff --git a/src/components/GettingStarted/index.tsx b/src/components/GettingStarted/index.tsx
index c58d8dcc3a..925dc3d527 100644
--- a/src/components/GettingStarted/index.tsx
+++ b/src/components/GettingStarted/index.tsx
@@ -1,32 +1,7 @@
import React, { useRef, useState } from 'react'
import styled from 'styled-components'
-// import { defaultTheme } from '../../theme'
-// import { Icon } from '../Icon'
-// import { Tooltip } from '../tooltip/Tooltip'
-
-// TODO: consider this https://david-gilbertson.medium.com/icons-as-react-components-de3e33cb8792
-
-// TODO: this is filler
-const Icon: React.FC<{ icon: string, btn?: string, size?: string }> = ({ icon }) => {
- return
-}
-
-// TODO: this is filler
-const Tooltip: React.FC> = ({ children }) => {
- return <>{children}>
-}
-
-// TODO: this is filler
-const indigo = {
- 100: '#EBF4FF',
- 200: '#C3DAFE',
- 300: '#A3BFFA',
- 400: '#7F9CF5',
- 500: '#667EEA',
- 600: '#5A67D8',
- 700: '#4C51BF',
- 800: '#434190',
-}
+import { Icon } from '../Icon'
+import { Tooltip } from '../tooltip/Tooltip'
export const Database = ({ color, width, height }: any) => (