diff --git a/docs/100-getting-started/01-quickstart.mdx b/docs/100-getting-started/01-quickstart.mdx index c969fd495e..9934e1b1e0 100644 --- a/docs/100-getting-started/01-quickstart.mdx +++ b/docs/100-getting-started/01-quickstart.mdx @@ -3,6 +3,7 @@ title: 'Quickstart' metaTitle: 'Quickstart with TypeScript & SQLite' metaDescription: 'Get started with Prisma ORM in 5 minutes. You will learn how to send queries to a SQLite database in a plain TypeScript script using Prisma Client.' search: true +sidebar_custom_props: { badge: '5 min' } --- diff --git a/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/150-using-prisma-migrate.mdx b/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/150-using-prisma-migrate.mdx index d5a084a24f..76c32c8128 100644 --- a/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/150-using-prisma-migrate.mdx +++ b/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/150-using-prisma-migrate.mdx @@ -13,7 +13,7 @@ hide_table_of_contents: true In this guide, you'll use [Prisma Migrate](/orm/prisma-migrate) to create the tables in your database. Add the following data model to your [Prisma schema](/orm/prisma-schema) in `prisma/schema.prisma`: -```prisma file=prisma/schema.prisma copy +```prisma file=prisma/schema.prisma model Post { id Int @id @default(autoincrement()) createdAt DateTime @default(now()) @@ -52,7 +52,9 @@ This command does two things: 1. It creates a new SQL migration file for this migration 1. It runs the SQL migration file against the database -> **Note**: `generate` is called under the hood by default, after running `prisma migrate dev`. If the `prisma-client-js` generator is defined in your schema, this will check if `@prisma/client` is installed and install it if it's missing. +:::note +`generate` is called under the hood by default, after running `prisma migrate dev`. If the `prisma-client-js` generator is defined in your schema, this will check if `@prisma/client` is installed and install it if it's missing. +::: Great, you now created three tables in your database with Prisma Migrate 🚀 @@ -574,7 +576,9 @@ This command does two things: 1. It creates a new SQL migration file for this migration 1. It runs the SQL migration file against the database -> **Note**: `generate` is called under the hood by default, after running `prisma migrate dev`. If the `prisma-client-js` generator is defined in your schema, this will check if `@prisma/client` is installed and install it if it's missing. +:::note +`generate` is called under the hood by default, after running `prisma migrate dev`. If the `prisma-client-js` generator is defined in your schema, this will check if `@prisma/client` is installed and install it if it's missing. +::: Great, you now created three tables in your database with Prisma Migrate 🚀 diff --git a/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/index.mdx b/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/index.mdx index a325779d8d..c836e2ca2b 100644 --- a/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/index.mdx +++ b/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases/index.mdx @@ -5,6 +5,7 @@ metaDescription: 'Learn how to create a new Node.js or TypeScript project from s hide_table_of_contents: true langSwitcher: ['typescript', 'node'] dbSwitcher: ['postgresql', 'mysql', 'sqlserver', 'planetscale', 'cockroachdb'] +sidebar_custom_props: { badge: '15 min' } --- diff --git a/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/120-mongodb/index.mdx b/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/120-mongodb/index.mdx index bee527e5ba..49a9f6e357 100644 --- a/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/120-mongodb/index.mdx +++ b/docs/100-getting-started/02-setup-prisma/100-start-from-scratch/120-mongodb/index.mdx @@ -5,6 +5,7 @@ metaDescription: 'Learn how to create a new Node.js or TypeScript project from s hide_table_of_contents: true langSwitcher: ['typescript', 'node'] dbSwitcher: ['mongodb'] +sidebar_custom_props: { badge: '15 min' } --- diff --git a/docs/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases/index.mdx b/docs/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases/index.mdx index a0c2d31315..5d4298f8a2 100644 --- a/docs/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases/index.mdx +++ b/docs/100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases/index.mdx @@ -5,6 +5,7 @@ metaDescription: 'Learn how to add Prisma to an existing Node.js or TypeScript p hide_table_of_contents: true langSwitcher: ['typescript', 'node'] dbSwitcher: ['postgresql', 'mysql', 'sqlserver', 'planetscale', 'cockroachdb'] +sidebar_custom_props: { badge: '15 min' } --- diff --git a/docs/100-getting-started/02-setup-prisma/200-add-to-existing-project/120-mongodb/index.mdx b/docs/100-getting-started/02-setup-prisma/200-add-to-existing-project/120-mongodb/index.mdx index 7d50b8645a..eebf0dcd89 100644 --- a/docs/100-getting-started/02-setup-prisma/200-add-to-existing-project/120-mongodb/index.mdx +++ b/docs/100-getting-started/02-setup-prisma/200-add-to-existing-project/120-mongodb/index.mdx @@ -5,6 +5,7 @@ metaDescription: 'Learn how to add Prisma to an existing Node.js or TypeScript p hide_table_of_contents: true langSwitcher: ['typescript', 'node'] dbSwitcher: ['mongodb'] +sidebar_custom_props: { badge: '15 min' } --- diff --git a/docs/100-getting-started/index.mdx b/docs/100-getting-started/index.mdx index 16e3f377ef..6773ad54c0 100644 --- a/docs/100-getting-started/index.mdx +++ b/docs/100-getting-started/index.mdx @@ -5,7 +5,7 @@ metaDescription: 'Build data-driven applications with ease using Prisma ORM, add hide_title: true tocDepth: 1 sidebar_position: 0 -sidebar_class_name: first-title +sidebar_class_name: firstTitle --- import { diff --git a/docs/200-orm/050-overview/_category_.json b/docs/200-orm/050-overview/_category_.json new file mode 100644 index 0000000000..375c63862c --- /dev/null +++ b/docs/200-orm/050-overview/_category_.json @@ -0,0 +1,5 @@ +{ + "label": "Overview", + "collapsible": false, + "collapsed": false +} \ No newline at end of file diff --git a/docs/200-orm/100-prisma-schema/_category_.json b/docs/200-orm/100-prisma-schema/_category_.json new file mode 100644 index 0000000000..2cf70ba2bd --- /dev/null +++ b/docs/200-orm/100-prisma-schema/_category_.json @@ -0,0 +1,5 @@ +{ + "label": "Prisma Schema", + "collapsible": false, + "collapsed": false +} \ No newline at end of file diff --git a/docs/200-orm/200-prisma-client/_category_.json b/docs/200-orm/200-prisma-client/_category_.json new file mode 100644 index 0000000000..656f03be02 --- /dev/null +++ b/docs/200-orm/200-prisma-client/_category_.json @@ -0,0 +1,5 @@ +{ + "label": "Prisma Client", + "collapsible": false, + "collapsed": false +} \ No newline at end of file diff --git a/docs/200-orm/300-prisma-migrate/_category_.json b/docs/200-orm/300-prisma-migrate/_category_.json new file mode 100644 index 0000000000..fc1ab2e766 --- /dev/null +++ b/docs/200-orm/300-prisma-migrate/_category_.json @@ -0,0 +1,5 @@ +{ + "label": "Prisma Migrate", + "collapsible": false, + "collapsed": false +} \ No newline at end of file diff --git a/docs/200-orm/400-tools/_category_.json b/docs/200-orm/400-tools/_category_.json new file mode 100644 index 0000000000..7453ee16c0 --- /dev/null +++ b/docs/200-orm/400-tools/_category_.json @@ -0,0 +1,5 @@ +{ + "label": "Tools", + "collapsible": false, + "collapsed": false +} \ No newline at end of file diff --git a/docs/200-orm/500-reference/100-prisma-schema-reference.mdx b/docs/200-orm/500-reference/100-prisma-schema-reference.mdx index b1257c46f9..766af82ae4 100644 --- a/docs/200-orm/500-reference/100-prisma-schema-reference.mdx +++ b/docs/200-orm/500-reference/100-prisma-schema-reference.mdx @@ -164,7 +164,7 @@ Defines a [generator](/orm/prisma-schema/overview/generators) in the Prisma sche A `generator` block accepts the following fields: | Name | Required | Type | Description | -| ----------------- | -------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | +| ----------------- | -------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `provider` | **Yes** | String (file path) or Enum (`prisma-client-js`) | Describes which [generator](/orm/prisma-schema/overview/generators) to use. This can point to a file that implements a generator or specify a built-in generator directly. | | `output` | No | String (file path) | Determines the location for the generated client, [learn more](/orm/prisma-client/setup-and-configuration/generating-prisma-client#using-a-custom-output-path). **Default**: `node_modules/.prisma/client` | | `previewFeatures` | No | List of Enums | Use intellisense to see list of currently available Preview features (`Ctrl+Space` in Visual Studio Code) **Default**: none | | @@ -430,9 +430,9 @@ Variable length text. #### MySQL -| Native database type | Native database type attribute | Notes | -| :------------------- | :----------------------------- | ----- | -| `VARCHAR(x)` | `@db.VarChar(x)` | | +| Native database type | Native database type attribute | +| :------------------- | :----------------------------- | +| `VARCHAR(x)` | `@db.VarChar(x)` | | `TEXT` | `@db.Text` | | `CHAR(x)` | `@db.Char(x)` | | `TINYTEXT` | `@db.TinyText` | @@ -459,12 +459,12 @@ model Model { #### Microsoft SQL Server -| Native database type | Native database type attribute | Notes | -| :------------------- | :----------------------------- | ----- | +| Native database type | Native database type attribute | +| :------------------- | :----------------------------- | | `char(x)` | `@db.Char(x)` | | `nchar(x)` | `@db.NChar(x)` | | `varchar(x)` | `@db.VarChar(x)` | -| `nvarchar(x)` | `@db.NVarChar(x)` | | +| `nvarchar(x)` | `@db.NVarChar(x)` | | `text` | `@db.Text` | | `ntext` | `@db.NText` | | `xml` | `@db.Xml` | @@ -1952,9 +1952,9 @@ Defines a unique constraint for this field. #### Arguments -| Name | Required | Type | Description | -| ----------- | -------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `map` | **No** | `String` | | +| Name | Required | Type | Description | +| ----------- | -------- | --------- | ----------- | +| `map` | **No** | `String` | | | `length` | **No** | `number` | Allows you to specify a maximum length for the subpart of the value to be indexed.

MySQL only. In preview in versions 3.5.0 and later, and in general availability in versions 4.0.0 and later. | | `sort` | **No** | `String` | Allows you to specify in what order the entries of the constraint are stored in the database. The available options are `Asc` and `Desc`.

In preview in versions 3.5.0 and later, and in general availability in versions 4.0.0 and later. | | `clustered` | **No** | `Boolean` | Defines whether the constraint is clustered or non-clustered. Defaults to `false`.

SQL Server only. In preview in versions 3.13.0 and later, and in general availability in versions 4.0.0 and later. | @@ -2147,7 +2147,7 @@ Defines a compound [unique constraint](/orm/prisma-schema/data-model/models#defi #### Arguments | Name | Required | Type | Description | -| ----------- | -------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | +| ----------- | -------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `fields` | **Yes** | `FieldReference[]` | A list of field names - for example, `["firstname", "lastname"]`. Fields must be mandatory - see remarks. | | `name` | **No** | `String` | The name of the unique combination of fields - defaults to `fieldName1_fieldName2_fieldName3` | | `map` | **No** | `String` | diff --git a/docs/200-orm/500-reference/_category_.json b/docs/200-orm/500-reference/_category_.json new file mode 100644 index 0000000000..6a03fc6cc2 --- /dev/null +++ b/docs/200-orm/500-reference/_category_.json @@ -0,0 +1,5 @@ +{ + "label": "Reference", + "collapsible": false, + "collapsed": false +} \ No newline at end of file diff --git a/docs/200-orm/800-more/_category_.json b/docs/200-orm/800-more/_category_.json new file mode 100644 index 0000000000..a4b01cc2ff --- /dev/null +++ b/docs/200-orm/800-more/_category_.json @@ -0,0 +1,5 @@ +{ + "label": "More", + "collapsible": false, + "collapsed": false +} \ No newline at end of file diff --git a/docs/500-platform/20-concepts/_category_.json b/docs/500-platform/20-concepts/_category_.json new file mode 100644 index 0000000000..47ccf8cefe --- /dev/null +++ b/docs/500-platform/20-concepts/_category_.json @@ -0,0 +1,4 @@ +{ + "collapsed": false, + "collapsible": false +} \ No newline at end of file diff --git a/docs/500-platform/60-platform-cli/_category_.json b/docs/500-platform/60-platform-cli/_category_.json new file mode 100644 index 0000000000..47ccf8cefe --- /dev/null +++ b/docs/500-platform/60-platform-cli/_category_.json @@ -0,0 +1,4 @@ +{ + "collapsed": false, + "collapsible": false +} \ No newline at end of file diff --git a/docs/500-platform/_category_.json b/docs/500-platform/_category_.json new file mode 100644 index 0000000000..cf9e804f7d --- /dev/null +++ b/docs/500-platform/_category_.json @@ -0,0 +1,5 @@ +{ + "collapsed": false, + "collapsible": false, + "className": "firstTitle" +} \ No newline at end of file diff --git a/docs/intro.md b/docs/intro.md deleted file mode 100644 index 45e8604c8b..0000000000 --- a/docs/intro.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -sidebar_position: 1 ---- - -# Tutorial Intro - -Let's discover **Docusaurus in less than 5 minutes**. - -## Getting Started - -Get started by **creating a new site**. - -Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**. - -### What you'll need - -- [Node.js](https://nodejs.org/en/download/) version 18.0 or above: - - When installing Node.js, you are recommended to check all checkboxes related to dependencies. - -## Generate a new site - -Generate a new Docusaurus site using the **classic template**. - -The classic template will automatically be added to your project after you run the command: - -```bash -npm init docusaurus@latest my-website classic -``` - -You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. - -The command also installs all necessary dependencies you need to run Docusaurus. - -## Start your site - -Run the development server: - -```bash -cd my-website -npm run start -``` - -The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there. - -The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. - -Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes. diff --git a/docusaurus.config.ts b/docusaurus.config.ts index e96317d95e..b658ad3864 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -11,7 +11,7 @@ const config: Config = { url: 'https://prisma.io', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/', + baseUrl: '/docs', trailingSlash: false, onBrokenLinks: 'warn', @@ -80,14 +80,20 @@ const config: Config = { docs: { routeBasePath: '/', sidebarPath: './sidebars.ts', - // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + 'https://github.com/prisma/docs', }, blog: false, theme: { - customCss: ['./src/css/custom.css', './src/css/admonition.css', './src/css/docsearch.css', './src/css/all.css', './src/css/theming.css'], + customCss: [ + './src/css/custom.css', + './src/css/admonition.css', + './src/css/docsearch.css', + './src/css/all.css', + './src/css/theming.css', + './src/css/prism.css' + ], }, } satisfies Preset.Options ], diff --git a/sidebars.ts b/sidebars.ts index dcada4d4f2..edfabbb3e7 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -16,35 +16,7 @@ const platformCategory: SidebarItemConfig = { id: 'platform/index', }, className: "firstTitle", - items: [ - { - type: 'category', - label: 'Concepts', - collapsed: false, - collapsible: false, - link: { - type: 'generated-index', - title: 'Concepts', - slug: '/platform/concepts', - }, - items: [{ type: 'autogenerated', dirName: '500-platform/20-concepts' }] - }, - 'platform/maturity-levels', - 'platform/limits', - 'platform/support', - { - type: 'category', - collapsible: false, - collapsed: false, - label: 'Platform CLI', - link: { - type: 'generated-index', - title: 'Platform CLI', - slug: '/platform/platform-cli', - }, - items: [{ type: 'autogenerated', dirName: '500-platform/60-platform-cli' }], - }, - ], + items: [{ type: 'autogenerated', dirName: '500-platform' }], }; /** @@ -77,9 +49,6 @@ const sidebars: SidebarsConfig = { type: 'doc', id: 'getting-started/quickstart', label: 'Quickstart', - customProps: { - badge: "5 Min" - } }, { type: 'category', @@ -91,90 +60,31 @@ const sidebars: SidebarsConfig = { id: 'getting-started/setup-prisma/index', }, items: [ - { - type: 'category', - label: "Start from scratch", - link: { - type: 'doc', - id: 'getting-started/setup-prisma/start-from-scratch/index', - }, - items: [ - { - type: 'category', - label: 'Relational databases', - customProps: { - badge: '15 Min' - }, - link: { - type: 'generated-index', - title: 'Relation databases', - slug: '/getting-started/setup-prisma/start-from-scratch/relational-databases', - }, - items: [{ - type: 'autogenerated', - dirName: '100-getting-started/02-setup-prisma/100-start-from-scratch/110-relational-databases', - }] + { + type: 'category', + label: 'Start from scratch', + link: { + type: 'doc', + id: 'getting-started/setup-prisma/start-from-scratch/index', }, - { - type: 'category', - label: 'MongoDB', - customProps: { - badge: '15 Min' - }, - link: { - type: 'generated-index', - title: 'MongoDB', - slug: '/getting-started/setup-prisma/start-from-scratch/mongodb', - }, - items: [{ - type: 'autogenerated', - dirName: '100-getting-started/02-setup-prisma/100-start-from-scratch/120-mongodb', - }] - } - ] - }, - { - type: 'category', - label: "Add to existing project", - link: { - type: 'doc', - id: 'getting-started/setup-prisma/add-to-existing-project/index', + items: [{ + type: 'autogenerated', + dirName: '100-getting-started/02-setup-prisma/100-start-from-scratch' + }] }, - items: [ - { - type: 'category', - label: 'Relational databases', - customProps: { - badge: '15 Min' - }, - link: { - type: 'generated-index', - title: 'Relation databases', - slug: '/getting-started/setup-prisma/add-to-existing-project/relational-databases', - }, - items: [{ - type: 'autogenerated', - dirName: '100-getting-started/02-setup-prisma/200-add-to-existing-project/110-relational-databases', - }] + { + type: 'category', + label: 'Add to existing project', + link: { + type: 'doc', + id: 'getting-started/setup-prisma/add-to-existing-project/index', }, - { - type: 'category', - label: 'MongoDB', - customProps: { - badge: '15 Min' - }, - link: { - type: 'generated-index', - title: 'MongoDB', - slug: '/getting-started/setup-prisma/add-to-existing-project/mongodb', - }, - items: [{ - type: 'autogenerated', - dirName: '100-getting-started/02-setup-prisma/200-add-to-existing-project/120-mongodb', - }] - } - ] - },] + items: [{ + type: 'autogenerated', + dirName: '100-getting-started/02-setup-prisma/200-add-to-existing-project' + }] + } + ] } ] } @@ -189,114 +99,7 @@ const sidebars: SidebarsConfig = { id: 'orm/orm-index' }, className: 'firstTitle', - items: [ - 'orm/orm-index', - { - type: 'category', - label: 'Overview', - collapsed: false, - collapsible: false, - link: { - type: 'generated-index', - title: 'Overview', - slug: '/orm/overview', - }, - items: [{ - type: 'autogenerated', - dirName: '200-orm/050-overview', - }] - }, - { - type: 'category', - label: 'Prisma Schema', - collapsed: false, - collapsible: false, - link: { - type: 'generated-index', - title: 'Prisma Schema', - slug: '/orm/prisma-schema', - }, - items: [{ - type: 'autogenerated', - dirName: '200-orm/100-prisma-schema' - }] - }, - { - type: 'category', - label: 'Prisma Client', - collapsed: false, - collapsible: false, - link: { - type: 'generated-index', - title: 'Prisma Client', - slug: '/orm/prisma-client', - }, - items: [{ - type: 'autogenerated', - dirName: '200-orm/200-prisma-client' - }] - }, - { - type: 'category', - label: 'Prisma Migrate', - collapsed: false, - collapsible: false, - link: { - type: 'generated-index', - title: 'Prisma Migrate', - slug: '/orm/prisma-migrate', - }, - items: [{ - type: 'autogenerated', - dirName: '200-orm/300-prisma-migrate' - }] - }, - { - type: 'category', - label: 'Tools', - collapsed: false, - collapsible: false, - link: { - type: 'generated-index', - title: 'Tools', - slug: '/orm/tools', - }, - items: [{ - type: 'autogenerated', - dirName: '200-orm/400-tools' - }] - }, - { - type: 'category', - label: 'Reference', - collapsed: false, - collapsible: false, - link: { - type: 'generated-index', - title: 'Reference', - slug: '/orm/reference', - }, - items: [{ - type: 'autogenerated', - dirName: '200-orm/500-reference' - }] - }, - { - type: 'category', - label: 'More', - collapsed: false, - collapsible: false, - link: { - type: 'generated-index', - title: 'More', - slug: '/orm/more', - }, - items: [{ - type: 'autogenerated', - dirName: '200-orm/800-more' - }] - } - ] + items: [{ type: 'autogenerated', dirName: '200-orm' }], }], accelerateSidebar: [ { diff --git a/src/css/prism.css b/src/css/prism.css new file mode 100644 index 0000000000..401887ae59 --- /dev/null +++ b/src/css/prism.css @@ -0,0 +1,194 @@ +.pre-highlight { + position: relative; +} + +code[class*='language-'], +pre[class*='language-'], +pre[class*='language-'] code { + color: var(--main-font-color) !important; + font-family: 'JetBrainsMono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', + 'Courier New', monospace; + font-variant: no-common-ligatures no-discretionary-ligatures no-historical-ligatures no-contextual; + font-size: 14px; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; + + border-radius: 8px; + display: inline-grid; + grid-template-rows: max-content; + width: 100%; + overflow: auto; +} + +code[class*='language-'].is-terminal, +pre[class*='language-'].is-terminal, +pre[class*='language-'].is-terminal code { + background-color: var(--main-font-color) !important; + color: var(--code-inline-bgd-color) !important; +} + +code[class*='language-'].is-terminal::selection, +pre[class*='language-'].is-terminal::selection, +code[class*='language-'].is-terminal ::selection, +pre[class*='language-'].is-terminal ::selection { + background-color: #a0aec0; +} + +@media (prefers-color-scheme: dark) { + + code[class*='language-'].is-terminal, + pre[class*='language-'].is-terminal, + pre[class*='language-'].is-terminal code { + background-color: #2d3748 !important; + color: var(--main-font-color) !important; + } + + .token.punctuation { + color: #a0aec0 !important; + } +} + +.is-terminal .line-no { + color: var(--header-btn-color) !important; +} + +.is-terminal .copy-button svg rect { + fill: var(--tag-media-color); +} + +/* Code blocks */ +pre[class*='language-'] { + padding: 1em 0; + margin: 0; + overflow: auto; +} + +:not(pre)>code[class*='language-'], +pre[class*='language-'] { + background: var(--code-bgd-color) !important; +} + +/* Inline code */ +:not(pre)>code[class*='language-'] { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; +} + +code.inline-code, +.inline-code, +inlinecode { + display: inline; + vertical-align: baseline; + padding: 0.05em 0.3em 0.2em 0.3em; + background: var(--code-inline-bgd-color); + font-size: 14px; + font-feature-settings: 'clig' 0, 'calt' 0; + font-variant: no-common-ligatures no-discretionary-ligatures no-historical-ligatures no-contextual; + font-family: 'JetBrainsMono'; + font-style: normal; + line-height: 24px; + border-radius: 5px; + color: var(--main-font-color); + font-weight: 500; +} + +inlinecode { + font-size: inherit; +} + +.inline-code { + background-color: var(--border-color); +} + +.top-section h1 inlinecode { + font-size: 2rem; +} + +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: var(--code-inner-color) !important; + font-style: normal !important; +} + +.token.namespace { + opacity: 0.7; +} + +.token.property, +.token.tag, +.token.type-args, +.token.number, +.token.constant, +.token.symbol, +.token.deleted { + color: var(--code-token4-color) !important; +} + +.token.selector, +.token.attr-name, +.token.string, +.token.char, +.token.builtin, +.token.inserted { + color: var(--code-token5-color) !important; +} + +.token.operator, +.token.entity, +.token.url, +.language-css .token.string, +.style .token.string { + color: var(--code-token6-color) !important; +} + +.token.atrule, +.token.attr-value, +.token.keyword { + color: var(--code-token1-color) !important; +} + +.token.function, +.token.class-name, +.token[class*='class-name'], +.token.boolean { + color: var(--code-token2-color) !important; +} + +.token.regex, +.token.important, +.token.variable { + color: var(--code-token7-color) !important; +} + +.token.important, +.token.bold { + font-weight: bold; +} + +.token.italic { + font-style: italic; +} + +.token.entity { + cursor: help; +} + +.token.annotation { + color: var(--code-token3-color) !important; +} \ No newline at end of file diff --git a/static/img/undraw_docusaurus_mountain.svg b/static/img/undraw_docusaurus_mountain.svg deleted file mode 100644 index af961c49a8..0000000000 --- a/static/img/undraw_docusaurus_mountain.svg +++ /dev/null @@ -1,171 +0,0 @@ - - Easy to Use - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/static/img/undraw_docusaurus_react.svg b/static/img/undraw_docusaurus_react.svg deleted file mode 100644 index 94b5cf08f8..0000000000 --- a/static/img/undraw_docusaurus_react.svg +++ /dev/null @@ -1,170 +0,0 @@ - - Powered by React - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/static/img/undraw_docusaurus_tree.svg b/static/img/undraw_docusaurus_tree.svg deleted file mode 100644 index d9161d3392..0000000000 --- a/static/img/undraw_docusaurus_tree.svg +++ /dev/null @@ -1,40 +0,0 @@ - - Focus on What Matters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -