Skip to content

Commit

Permalink
fix: (docusaurus) fix remaining UI (#5755)
Browse files Browse the repository at this point in the history
* fix kapa icon issue

* add FA icons to footer

* Update preview + duration badges

* Fix menu caret

* update active color

* update footer to look exactly like prod

* update footer multiple other points

* update sidebar + padding for main content

* update button and icon

* push admonition

* add subsections

* update search input styling

* fix breadcrumbs bug

* update subsections

* fix breadcrumbs
  • Loading branch information
carlagn authored and jharrell committed Apr 10, 2024
1 parent 4f87eee commit bbb8812
Show file tree
Hide file tree
Showing 36 changed files with 1,274 additions and 151 deletions.
1 change: 0 additions & 1 deletion docs/100-getting-started/01-quickstart.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: 'Quickstart'
duration: '5 min'
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: 'Relational databases'
metaTitle: 'Start from scratch with relational databases (15 min)'
metaDescription: 'Learn how to create a new Node.js or TypeScript project from scratch by connecting Prisma to your relational database and generating a Prisma Client for database access.'
duration: '15 min'
toc: false
langSwitcher: ['typescript', 'node']
dbSwitcher: ['postgresql', 'mysql', 'sqlserver', 'planetscale', 'cockroachdb']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: 'MongoDB'
metaTitle: 'Start from scratch with MongoDB (15 min)'
metaDescription: 'Learn how to create a new Node.js or TypeScript project from scratch by connecting Prisma to your MongoDB database and generating a Prisma Client for database access.'
duration: '15 min'
toc: false
langSwitcher: ['typescript', 'node']
dbSwitcher: ['mongodb']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: 'Relational databases'
metaTitle: 'Add Prisma to an existing project that uses a relational database (15 min)'
metaDescription: 'Learn how to add Prisma to an existing Node.js or TypeScript project by connecting it to your relational database and generating a Prisma Client for database access.'
duration: '15 min'
toc: false
langSwitcher: ['typescript', 'node']
dbSwitcher: ['postgresql', 'mysql', 'sqlserver', 'planetscale', 'cockroachdb']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: 'MongoDB'
metaTitle: 'Add Prisma to an existing MongoDB project (15 min)'
metaDescription: 'Learn how to add Prisma to an existing Node.js or TypeScript project by connecting it to your MongoDB database and generating a Prisma Client for database access.'
duration: '15 min'
toc: false
langSwitcher: ['typescript', 'node']
dbSwitcher: ['mongodb']
Expand Down
1 change: 1 addition & 0 deletions docs/100-getting-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +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
---

import {
Expand Down
2 changes: 1 addition & 1 deletion docs/200-orm/100-prisma-schema/20-data-model/40-views.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: 'Views'
metaTitle: 'How to include views in your Prisma schema'
metaDescription: 'How to include views in your Prisma schema'
hidePage: false
preview: true
sidebar_class_name: preview-badge
tocDepth: 3
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'PostgreSQL extensions'
metaTitle: 'How to represent PostgreSQL extensions in your Prisma schema'
metaDescription: 'How to represent PostgreSQL extensions in your Prisma scheme, introspect extensions in your database, and apply changes to extensions with Prisma Migrate'
preview: true
sidebar_class_name: preview-badge
tocDepth: 3
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ metaTitle: 'Introduction to Prisma Client'
metaDescription: 'Learn how to set up Prisma Client.'
---


import {
Icon
} from '@site/src/components/Icon';

<TopBlock>

Prisma Client is an auto-generated and type-safe query builder that's _tailored_ to your data. The easiest way to get started with Prisma Client is by following the **[Quickstart](/getting-started/quickstart)**.

<Link className="button button--primary" to="/getting-started/quickstart">
<Icon icon="fa-solid fa-star" size="18px" />
Quickstart (5 min)
</Link>

Expand All @@ -18,6 +24,7 @@ The setup instructions [below](#set-up) provide a high-level overview of the ste
className="button button--primary"
to="/getting-started/setup-prisma/start-from-scratch/relational-databases-typescript-postgresql"
>
<Icon icon="fa-solid fa-rocket" size="18px" />
Set up a new project from scratch
</Link>
<br />
Expand All @@ -26,6 +33,7 @@ The setup instructions [below](#set-up) provide a high-level overview of the ste
className="button button--primary"
to="/getting-started/setup-prisma/add-to-existing-project/relational-databases-typescript-postgresql"
>
<Icon icon="fa-solid fa-plus" size="18px" />
Add Prisma to an existing project
</Link>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'Full-text search'
metaTitle: 'Full-text search (Preview)'
metaDescription: 'This page explains how to search for text within a field.'
preview: true
sidebar_class_name: preview-badge
---

<TopBlock>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'Metrics'
metaTitle: 'Metrics (Preview)'
metaDescription: 'Diagnose application performance with insights into Prisma Client database activity.'
preview: true
sidebar_class_name: preview-badge
tocDepth: 4
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'OpenTelemetry tracing'
metaTitle: 'OpenTelemetry tracing (Preview)'
metaDescription: 'Diagnose application performance with detailed traces of each query.'
preview: true
sidebar_class_name: preview-badge
tocDepth: 4
---

Expand Down
4 changes: 4 additions & 0 deletions docs/200-orm/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ sidebar_position: 0
[Prisma ORM](https://github.com/prisma/prisma) is a Node.js and TypeScript ORM with an intuitive data model, automated migrations, type-safety, and auto-completion.

</TopBlock>

## In this section

<Subsections depth="3" />
4 changes: 4 additions & 0 deletions docs/300-accelerate/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ sidebar_position: 0
[Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) is a global database cache and scalable connection pool that helps improve database performance in Serverless and Edge applications.

</TopBlock>

## In this section

<Subsections depth="3" />
4 changes: 4 additions & 0 deletions docs/400-pulse/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ sidebar_position: 0
[Prisma Pulse](https://www.prisma.io/data-platform/pulse) enables real-time database events with type-safe Prisma Client subscriptions.

</TopBlock>

## In this section

<Subsections depth="3" />
38 changes: 28 additions & 10 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ const config: Config = {
},
blog: false,
theme: {
customCss: ['./src/css/custom.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'],
},
} satisfies Preset.Options,
} satisfies Preset.Options
],
],

Expand Down Expand Up @@ -161,7 +161,7 @@ const config: Config = {
style: 'dark',
links: [
{
title: 'Products',
title: 'Product',
items: [
{
label: 'ORM',
Expand All @@ -187,6 +187,12 @@ const config: Config = {
target: "_self",
class: "internal footer__link-item"
},
{
label: 'Changelog',
href: 'https://prisma.io/changelog',
target: "_self",
class: "internal footer__link-item"
},
],
},
{
Expand All @@ -197,11 +203,11 @@ const config: Config = {
to: '/',
},
{
label: 'Get Started',
label: 'Get started',
to: '/getting-started',
},
{
label: 'Prisma Examples',
label: 'prisma-examples',
href: 'https://github.com/prisma/prisma-examples',
},
{
Expand Down Expand Up @@ -232,12 +238,18 @@ const config: Config = {
target: "_self",
class: "internal footer__link-item"
},
{
label: 'Data guide',
href: 'https://prisma.io/dataguide',
target: "_self",
class: "internal footer__link-item"
},
{
label: 'Data Platform status',
href: 'https://www.prisma-status.com/',
},
{
label: 'VS Code Extension',
label: 'VS Code extension',
href: 'https://marketplace.visualstudio.com/items?itemName=Prisma.prisma',
},
],
Expand All @@ -263,6 +275,12 @@ const config: Config = {
target: "_self",
class: "internal footer__link-item"
},
{
label: 'Partners',
href: 'https://www.prisma.io/partners',
target: "_self",
class: "internal footer__link-item"
},
],
},
{
Expand All @@ -282,7 +300,7 @@ const config: Config = {
},
{
label: 'Data DX',
to: 'https://www.datadx.io/',
href: 'https://www.datadx.io/',
},
{
label: 'Careers',
Expand All @@ -298,7 +316,7 @@ const config: Config = {
},
{
label: 'Causes',
to: 'https://prismaio.notion.site/Prisma-Causes-0c9e1ddc0f5942edaba355692cfee69f',
href: 'https://prismaio.notion.site/Prisma-Causes-0c9e1ddc0f5942edaba355692cfee69f',
},
{
label: 'OSS Friends',
Expand All @@ -308,11 +326,11 @@ const config: Config = {
},
{
label: 'Terms & Privacy',
to: 'https://prismaio.notion.site/Terms-Privacy-5b5b9938b3a941ccb2ad97eaf5524c07',
href: 'https://prismaio.notion.site/Terms-Privacy-5b5b9938b3a941ccb2ad97eaf5524c07',
},
{
label: 'Service Level Agreement',
to: 'https://pris.ly/sla',
href: 'https://pris.ly/sla',
},
],
},
Expand Down
Loading

0 comments on commit bbb8812

Please sign in to comment.