Skip to content

Commit

Permalink
fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
jharrell committed Apr 10, 2024
1 parent 8d9086e commit 1f32d00
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 48 deletions.
24 changes: 12 additions & 12 deletions content/100-getting-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,32 +77,32 @@ _Select one of these options if you want to connect Prisma ORM to your own datab
<List>
<SquareLogo
url="/getting-started/setup-prisma/start-from-scratch/relational-databases-typescript-postgresql"
image={'/icons/technologies/postgresqlsimple.svg'}
image={'/docs/icons/technologies/postgresqlsimple.svg'}
tech="Postgres SQL"
/>
<SquareLogo
url="/getting-started/setup-prisma/start-from-scratch/relational-databases-typescript-mysql"
image={'/icons/technologies/mysqlsimple.svg'}
image={'/docs/icons/technologies/mysqlsimple.svg'}
tech="MySQL"
/>
<SquareLogo
url="/getting-started/setup-prisma/start-from-scratch/relational-databases-typescript-sqlserver"
image={'/icons/technologies/sqlserver.svg'}
image={'/docs/icons/technologies/sqlserver.svg'}
tech="SQLServer"
/>
<SquareLogo
url="/getting-started/setup-prisma/start-from-scratch/relational-databases-typescript-planetscale"
image={'/icons/technologies/planetscale.svg'}
image={'/docs/icons/technologies/planetscale.svg'}
tech="PlanetScale"
/>
<SquareLogo
url="/getting-started/setup-prisma/start-from-scratch/relational-databases-typescript-cockroachdb"
image={'/icons/technologies/cockroachdbgradient.svg'}
image={'/docs/icons/technologies/cockroachdbgradient.svg'}
tech="Cockroach DB"
/>
<SquareLogo
url="/getting-started/setup-prisma/start-from-scratch/mongodb-typescript-mongodb"
image={'/icons/technologies/mongodbsimple.svg'}
image={'/docs/icons/technologies/mongodbsimple.svg'}
tech="Mongo DB"
/>
</List>
Expand All @@ -115,32 +115,32 @@ _Select one of these options if you want to connect Prisma ORM to your own datab
<List>
<SquareLogo
url="/getting-started/setup-prisma/add-to-existing-project/relational-databases-typescript-postgresql"
image={'/icons/technologies/postgresqlsimple.svg'}
image={'/docs/icons/technologies/postgresqlsimple.svg'}
tech="Postgres SQL"
/>
<SquareLogo
url="/getting-started/setup-prisma/add-to-existing-project/relational-databases-typescript-mysql"
image={'/icons/technologies/mysqlsimple.svg'}
image={'/docs/icons/technologies/mysqlsimple.svg'}
tech="MySQL"
/>
<SquareLogo
url="/getting-started/setup-prisma/add-to-existing-project/relational-databases-typescript-sqlserver"
image={'/icons/technologies/sqlserver.svg'}
image={'/docs/icons/technologies/sqlserver.svg'}
tech="SQL Server"
/>
<SquareLogo
url="/getting-started/setup-prisma/add-to-existing-project/relational-databases-typescript-planetscale"
image={'/icons/technologies/planetscale.svg'}
image={'/docs/icons/technologies/planetscale.svg'}
tech="PlanetScale"
/>
<SquareLogo
url="/getting-started/setup-prisma/add-to-existing-project/relational-databases-typescript-cockroachdb"
image={'/icons/technologies/cockroachdbgradient.svg'}
image={'/docs/icons/technologies/cockroachdbgradient.svg'}
tech="Cockroach DB"
/>
<SquareLogo
url="/getting-started/setup-prisma/add-to-existing-project/mongodb-typescript-mongodb"
image={'/icons/technologies/mongodbsimple.svg'}
image={'/docs/icons/technologies/mongodbsimple.svg'}
tech="Mongo DB"
/>
</List>
Expand Down
18 changes: 9 additions & 9 deletions src/components/shortcodes/techSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ interface TechItem {
}

const icons = {
node: `/img/technologies/nodejs.svg`, //<JS />,
typescript: `/img/technologies/typescript.svg`, //<Typescript />,
mysql: `/img/technologies/mysql.svg`, //<MySQL />,
postgresql: `/img/technologies/postgresql.svg`, //<PostgreSQL />,
sqlite: `/img/technologies/sqlite.svg`, //<SQLite />,
mongodb: `/img/technologies/mongodb.svg`, //<MongoDB />,
sqlserver: `/img/technologies/sqlserver.svg`, //<SQLServer />,
planetscale: `/img/technologies/planetscale.svg`, //<PlanetScale />,
cockroachdb: `/img/technologies/cockroachdb.svg`, //<CockroachDB />,
node: `/docs/img/technologies/nodejs.svg`, //<JS />,
typescript: `/docs/img/technologies/typescript.svg`, //<Typescript />,
mysql: `/docs/img/technologies/mysql.svg`, //<MySQL />,
postgresql: `/docs/img/technologies/postgresql.svg`, //<PostgreSQL />,
sqlite: `/docs/img/technologies/sqlite.svg`, //<SQLite />,
mongodb: `/docs/img/technologies/mongodb.svg`, //<MongoDB />,
sqlserver: `/docs/img/technologies/sqlserver.svg`, //<SQLServer />,
planetscale: `/docs/img/technologies/planetscale.svg`, //<PlanetScale />,
cockroachdb: `/docs/img/technologies/cockroachdb.svg`, //<CockroachDB />,
}

const technologyTypes = {
Expand Down
52 changes: 26 additions & 26 deletions src/data/indexData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const ProductLinkData = {
'Open source Node.js and TypeScript ORM with an intuitive data model, automated migrations, type-safety, and auto-completion.',
links: [
{
url: 'getting-started',
url: 'docs/getting-started',
title: 'Getting started',
},
{
Expand All @@ -23,11 +23,11 @@ export const ProductLinkData = {
'Expand your application capabilities with global database caching, connection pooling and real-time database events.',
links: [
{
url: 'accelerate',
url: 'docs/accelerate',
title: 'Prisma Accelerate',
},
{
url: 'pulse',
url: 'docs/pulse',
title: 'Prisma Pulse',
},
],
Expand All @@ -37,41 +37,41 @@ export const ProductLinkData = {
export const ORMCardLinkData = {
components: [
{
url: 'orm/prisma-schema',
url: 'docs/orm/prisma-schema',
title: 'Prisma Schema',
},
{
url: 'orm/tools/prisma-cli',
url: 'docs/orm/tools/prisma-cli',
title: 'Prisma CLI',
},
{
url: 'orm/prisma-client',
url: 'docs/orm/prisma-client',
title: 'Prisma Client',
},
{
url: 'orm/tools/prisma-studio',
url: 'docs/orm/tools/prisma-studio',
title: 'Prisma Studio',
},
{
url: 'orm/prisma-migrate',
url: 'docs/orm/prisma-migrate',
title: 'Prisma Migrate',
},
],
reference: [
{
url: 'orm/reference/prisma-client-reference',
url: 'docs/orm/reference/prisma-client-reference',
title: 'Prisma Client API reference',
},
{
url: 'orm/reference/prisma-schema-reference',
url: 'docs/orm/reference/prisma-schema-reference',
title: 'Prisma schema reference',
},
{
url: 'orm/reference/error-reference',
url: 'docs/orm/reference/error-reference',
title: 'Error message reference',
},
{
url: 'orm/reference/prisma-cli-reference',
url: 'docs/orm/reference/prisma-cli-reference',
title: 'Prisma CLI reference',
},
],
Expand All @@ -81,39 +81,39 @@ export const ORMGeneralLinkData = [
{
title: `What is Prisma ORM`,
description: 'An overview of what Prisma ORM is and how it works.',
url: 'orm/overview/introduction/what-is-prisma',
url: 'docs/orm/overview/introduction/what-is-prisma',
icon: 'fa-regular fa-question',
},
{
title: `CRUD`,
description: 'How to perform CRUD operations with your generated Prisma Client API. ',
url: 'orm/prisma-client/queries/crud',
url: 'docs/orm/prisma-client/queries/crud',
icon: 'fa-solid fa-arrow-right-arrow-left',
},
{
title: `Prisma ORM in your stack`,
description:
'Use Prisma ORM to build a GraphQL or REST API, or as part of a fullstack application.',
url: 'orm/overview/prisma-in-your-stack',
url: 'docs/orm/overview/prisma-in-your-stack',
icon: 'fa-solid fa-server',
},
{
title: `Preview features`,
description: 'Available preview features and how to enable them.',
url: 'orm/reference/preview-features',
url: 'docs/orm/reference/preview-features',
icon: 'fa-solid fa-eye',
},
{
title: `Adopting Prisma ORM`,
description: 'Migrate to Prisma ORM from other ORMs.',
url: 'orm/more/migrating-to-prisma',
url: 'docs/orm/more/migrating-to-prisma',
icon: 'fa-solid fa-download',
},
{
title: `Deployment guides`,
description:
'Deploy Node.js applications with Prisma Client to platforms like Vercel, AWS Lambda, Netlify and Heroku.',
url: 'orm/prisma-client/deployment',
url: 'docs/orm/prisma-client/deployment',
icon: 'fa-solid fa-book',
},
]
Expand All @@ -123,49 +123,49 @@ export const DatabaseData = [
title: 'PostgreSQL',
icon: "postgresqlsimple",
darkIcon: "postgresqldark",
url: 'orm/overview/databases/postgresql',
url: 'docs/orm/overview/databases/postgresql',
},
{
title: 'MySQL',
icon: "mysqlsimple",
darkIcon: "mysqlsimple",
url: 'orm/overview/databases/mysql',
url: 'docs/orm/overview/databases/mysql',
},
{
title: 'SQL Server',
icon: "sqlserver",
darkIcon: "sqlserver",
url: 'orm/overview/databases/sql-server',
url: 'docs/orm/overview/databases/sql-server',
},
{
title: 'SQLite',
icon: "sqlite",
darkIcon: "sqlite",
url: 'orm/overview/databases/sqlite',
url: 'docs/orm/overview/databases/sqlite',
},
{
title: 'MongoDB',
icon: "mongodbsimple",
darkIcon: "mongodbsimple",
url: 'orm/overview/databases/mongodb',
url: 'docs/orm/overview/databases/mongodb',
},
{
title: 'CockroachDB',
icon: "cockroachdb",
darkIcon: "cockroachdbdark",
url: 'orm/overview/databases/cockroachdb',
url: 'docs/orm/overview/databases/cockroachdb',
},
{
title: 'Planetscale',
icon: "planetscale",
darkIcon: "planetscaledark",
url: 'orm/overview/databases/planetscale',
url: 'docs/orm/overview/databases/planetscale',
},
{
title: 'MariaDB',
icon: "mariadb",
darkIcon: "mariadbdark",
url: 'orm/overview/databases/mysql',
url: 'docs/orm/overview/databases/mysql',
},
]

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function HomepageDatabasesSection() {
{DatabaseData.map((e) => (
<Link to={e.url} className={styles.linkCardWrapper}>
<div className={styles.databaseEntry}>
<img src={`/img/technologies/${e.icon}.svg`} style={{
<img src={`/docs/img/technologies/${e.icon}.svg`} style={{
height: `100%`,
width: e.icon === "sqlite" ? `55px` : `auto`,
marginRight: e.icon === "sqlite" ? `-30px` : 0,
Expand Down

0 comments on commit 1f32d00

Please sign in to comment.