You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting started: open the alternate setups in a modal instead of <details>
Expanding the native <details> block pushed the sections below it around.
The new ModalRow keeps the collapsed paths as a one-line row and opens
them in a dialog, so revealing them never shifts the layout. The content
stays mounted inside the closed dialog, so the prompts remain in the
server-rendered HTML for crawlers (verified against the raw response),
and llm-markdown collapses ModalRow to a bold title plus body so the .md
output stays clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/docs/content/docs/(index)/index.mdx
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,11 +90,15 @@ If you're using Express or another Node.js server, follow the [existing-project
90
90
91
91
<SectionRowtitle="Other setups"description="Already have an app or a database, or need a single Prisma product on its own? Each path has a guide to follow and a prompt to hand to your agent.">
92
92
93
-
{/*Native <details> keeps the collapsed paths in the static HTML for crawlers
94
-
and agents, and stays keyboard-accessible without client JS. */}
93
+
{/*ModalRow keeps the collapsed paths mounted in the served HTML for crawlers
94
+
and agents; opening them in a modal never shifts the layout below. */}
<summaryclassName="cursor-pointer select-none py-2.5 text-sm font-medium text-fd-foreground marker:text-fd-muted-foreground hover:text-fd-primary">Existing project, your own database, or a single product (ORM, Postgres, or Compute) on its own</summary>
96
+
<ModalRow
97
+
title="Existing project, your own database, or a single product on its own"
98
+
description="Five paths: add to an existing project, bring your own Postgres, or use the ORM, Postgres, or Compute alone."
99
+
modalTitle="Other setup paths"
100
+
icon={<FolderPlus />}
101
+
>
98
102
99
103
<AgentPrompttitle="Add Prisma to an existing project"guideHref="/next/add-to-existing-project/postgresql"guideTitle="PostgreSQL guide"icon={<FolderPlus />}>
100
104
@@ -177,7 +181,7 @@ Current docs: https://www.prisma.io/docs/prisma-compute/deploy.md.
177
181
178
182
If you're using MongoDB, follow the [MongoDB quickstart](/next/quickstart/mongodb) or [add Prisma Next to an existing MongoDB app](/next/add-to-existing-project/mongodb). If you work with [Kysely](/prisma-postgres/quickstart/kysely), [Drizzle](/prisma-postgres/quickstart/drizzle-orm), or [TypeORM](/prisma-postgres/quickstart/typeorm), the Prisma Postgres quickstarts cover those tools.
0 commit comments