Skip to content
Open
38 changes: 38 additions & 0 deletions .optimize-cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -1457,12 +1457,22 @@
"static/images/docs/databases/dark/csv-export.png": "8d2fbffbdc4b1e6e443d61a93fe4a331ecd91c66ae1457270f51f296c406aeb9",
"static/images/docs/databases/dark/csv-import.png": "bdd1e700c747e703ac75b744a8e1caa7e0704ac3439e4ed1077ee0a8e76389d3",
"static/images/docs/databases/dark/databases.png": "2cc14bcda3d289c3fb77f8ee4f432d93b46bd0b9755cbf26a53fcadbca3cf32b",
"static/images/docs/databases/dark/documentsdb-import-export.png": "8e87428ef2f5698bd041d398de165ac5063aa7db951901913ec4b7b1674073bc",
"static/images/docs/databases/dark/manual-backup.png": "539bdf15bf654a1a696951f4447465b286566460b311ce3db82eb010502a7e03",
"static/images/docs/databases/dark/pro-policy.png": "7f74b6eae525187faa9f34a12a0804b227ba9cb2bbd9300f5e8337e9512a6f14",
"static/images/docs/databases/dark/restore.png": "f2605303eba4c528bf0041b0e37bb64e61c66503b2d753716b224f66b8f62ecf",
"static/images/docs/databases/dark/scale-custom-policies.png": "0013e987e9b8b917cb9be4c28048f851f2d188f3bfa5ff17a11a7ac7cf9c3ade",
"static/images/docs/databases/dark/scale-policies.png": "9ca9523f2e20e9aa993f0ad933cdf1dcd12adbaa35ecb2a0b8b3d2fd65877e1f",
"static/images/docs/databases/databases.png": "0278a6bc5672684653f74bcf3c0d022fdd82a08d7a7fd438b28e21bd81b5e5d5",
"static/images/docs/databases/documentsdb-import-export.png": "4456efce983bfe6aebaafde0b119801cf35173a036bd0ddd06be4a74afd14778",
"static/images/docs/databases/documentsdb/backup-policy.png": "913cacbe957847f8a71efa2d2e704754e52cf9c276dce8978f6c473a9ba6595b",
"static/images/docs/databases/documentsdb/backups-tab.png": "231163729496618d26863c6fa7ad88069875f78a3c320033d4bddc3c2f8da376",
"static/images/docs/databases/documentsdb/create-database.png": "49ba017dcec96631a87f924b13b6b93478add7b516cc62947e87230b5a0d5de1",
"static/images/docs/databases/documentsdb/dark/backup-policy.png": "a29fad13b50374b3de55824f1332fa4be9c2c7a0c4c63f550d03306ffd546551",
"static/images/docs/databases/documentsdb/dark/backups-tab.png": "dedb6cfcdd9217e814e58cb14db3d8309f53e3071cb9f12edd9a0d5f9bad1d7c",
"static/images/docs/databases/documentsdb/dark/create-database.png": "fe4c1340226d31fb3fa1d655563c9c8fdd150b4d0aac3e217fdd2af40718c272",
"static/images/docs/databases/documentsdb/dark/manual-backup.png": "880f077a3a598c35c9939a1cfcab4bc82a2a88e730be1b4157359657f0a47dcd",
"static/images/docs/databases/documentsdb/manual-backup.png": "0f3432e170b68503b00fac4cf65ed7c5e5a04f34031b5011fe1c80f1eda2bf1a",
"static/images/docs/databases/manual-backup.png": "a5854158c5350e333ae14b699db4626c5c26e17b529f3acd137cfae8cb08e9c4",
"static/images/docs/databases/pro-policy.png": "b0d35de73c334614dc3f644459dea2bbc56d0da3157db985f24897597ae26302",
"static/images/docs/databases/restore.png": "97611c54c654631d2a86a8453a2ea3603c32e85888c065668e945eeeeb894df0",
Expand Down Expand Up @@ -1591,6 +1601,34 @@
"static/images/docs/platform/dark/execution-details.png": "c0481ddc206447460f9d317ba8d421615066f67a50bc9ef41a8f71766ecffb14",
"static/images/docs/platform/env-variables.png": "16f95151e4f6ee9fb8056f075b9f5027fd91f0c2a28586c5624c3ffe9b7a1ee8",
"static/images/docs/platform/execution-details.png": "ece1364b8b00254bbd982421b6eed6d7f519d34c4e80377fcaaa4cb5d5dd3f89",
"static/images/docs/products/databases/mysql/create-database-specs.png": "623282bddd45eb245adb20166fd336089718a91bb7207a4f22b9811e13b96ba7",
"static/images/docs/products/databases/mysql/create-database-type.png": "0ff2c521f3f40f467587954120339572bcac0c6d6f76f0f2e6935e640d7adba3",
"static/images/docs/products/databases/mysql/dark/create-database-specs.png": "41bcda64b5cfac906639e077549c1429ec3701f8af9f49c4d1548e4716a23028",
"static/images/docs/products/databases/mysql/dark/create-database-type.png": "2a212e8322d6475dfdd2a1599021bd94f5fef42414e76ff13d0a59aca431b287",
"static/images/docs/products/databases/postgresql/connections.png": "e3096521fc169b41bed8a01c77afc923d1fd1ef53939940b90c3bbabeb3294b3",
"static/images/docs/products/databases/postgresql/create-database-specs.png": "80c5136b2df7f9636f230cda64efd024e5a0867d283d5d6750b05b1da8514b25",
"static/images/docs/products/databases/postgresql/create-database-type.png": "dbfb5e319e8ff5cdefb2691d0ab8a9a4a97edb94a62e52fedee726b1585f56f7",
"static/images/docs/products/databases/postgresql/credentials.png": "45d224d28771564581ccb4c4ae8d733fa192e3c8121fd4fefd63e28b91b9b764",
"static/images/docs/products/databases/postgresql/dark/connections.png": "c4a9abd58079668afd131627e8625811bc2d9b902a395050720a8cfafabc341f",
"static/images/docs/products/databases/postgresql/dark/create-database-specs.png": "07d067e17932689a9e014262c6315e46dd8bb2edd4e4619bf112dd743eca7936",
"static/images/docs/products/databases/postgresql/dark/create-database-type.png": "de3281805c2193d8f82ec81b53e1031bdcb6bfdfda875832d041e07d8f407579",
"static/images/docs/products/databases/postgresql/dark/credentials.png": "b44c3e27fe3e217ac048f5207ec55cba75a34ffe0a056290899ab62b70536491",
"static/images/docs/products/databases/postgresql/dark/monitor.png": "f8921ca48411bab35403b13894a8cd05216c931c206f86b853a3d236302660ad",
"static/images/docs/products/databases/postgresql/dark/roles-tab.png": "2fa52745b9e2c6e072332aa4050d4995fe10a779af931f01ad22dd280e337b9e",
"static/images/docs/products/databases/postgresql/dark/settings-compute-tier.png": "8efccefed72b6543f5a62ef64990a150425fad02aaecc531c42d51ac900fb210",
"static/images/docs/products/databases/postgresql/dark/settings-high-availability.png": "d8f12ff6c9b1e6ac1911323ec2ad4591e6bbcdc6bc56f0bc96e9344ff9e5aa5c",
"static/images/docs/products/databases/postgresql/dark/settings-network.png": "cd2924cdfa1457338a0f53a5055f62abf13350b722ef4b788693f1d7861e2631",
"static/images/docs/products/databases/postgresql/dark/settings-pitr.png": "773fc9622de3299b5d94c6de1fda0de53233143be5acc032f6eac65f044434ce",
"static/images/docs/products/databases/postgresql/dark/settings.png": "51ecfdd292149a4b010704b2a21d2f0cad00a5bd3aed1f6f88d9efb35be46f09",
"static/images/docs/products/databases/postgresql/dark/sql-editor.png": "128fa75d8518612915df4a4b5de6c096ab05dd7df48bb89414e3330977ea5a17",
"static/images/docs/products/databases/postgresql/monitor.png": "da2160f8c22ae0dba29619672d04adea9e553e07e342931775fb432cd000c69a",
"static/images/docs/products/databases/postgresql/roles-tab.png": "b13d5caaf9a839ee5dabcbcb156fda3594ed38f7c30c4f092d1095bb5a895edb",
"static/images/docs/products/databases/postgresql/settings-compute-tier.png": "a4a7ed1d2ad3fb01ca8adac0497d075fd58cc11e0f53ece7ed2257eca0828fd8",
"static/images/docs/products/databases/postgresql/settings-high-availability.png": "1a84efe9e0132012d009eac1b52a67739fbf471761ff0cce323f7b160f3aff5b",
"static/images/docs/products/databases/postgresql/settings-network.png": "ef685f1b56c80259c944d39033a895bbddf6aa8744964d47677863b9c94f0ceb",
"static/images/docs/products/databases/postgresql/settings-pitr.png": "267a9f4b60667e618f8c6ff09615c19423cfec7e182421fc929339e537d861cf",
"static/images/docs/products/databases/postgresql/settings.png": "ded8f34bcd1b812ea5a9ddcb48a34db8678ae696a9b03ab16c934b29621b395a",
"static/images/docs/products/databases/postgresql/sql-editor.png": "595b73cbd6f712d31b015ac224f6cb606875fe3a98cb7bf3c09ac6cbec25720a",
"static/images/docs/quick-starts/add-platform.png": "3b13ba983ea1d2529a1f34a719acef903ec0b58879ed511012280a28ccbde17e",
"static/images/docs/quick-starts/create-project.png": "7fdb25def02c5dbdb08cd38c2d03b7b454c930194a900553e3e68d51cb28a1d5",
"static/images/docs/quick-starts/dark/add-platform.png": "b12a85b64b136589268831b9cb26a664ec97418ad25a38be5273baab8253aa16",
Expand Down
9 changes: 8 additions & 1 deletion src/lib/utils/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import groovy from 'highlight.js/lib/languages/groovy';
import rust from 'highlight.js/lib/languages/rust';
import ini from 'highlight.js/lib/languages/ini';
import dockerfile from 'highlight.js/lib/languages/dockerfile';
import sql from 'highlight.js/lib/languages/sql';
import pgsql from 'highlight.js/lib/languages/pgsql';
import { Platform } from './references';
import { writable } from 'svelte/store';

Expand Down Expand Up @@ -71,7 +73,9 @@ const languages = {
env: ini,
dotenv: ini,
dockerfile: dockerfile,
docker: dockerfile
docker: dockerfile,
sql: sql,
pgsql: pgsql
} as const satisfies Record<string, LanguageFn>;

const platformAliases: Record<string, keyof typeof languages> = {
Expand Down Expand Up @@ -114,6 +118,9 @@ Object.entries(platformAliases).forEach(([key, value]) => {
/** HashiCorp Configuration Language (Terraform); core highlight.js has no HCL grammar */
hljs.registerAliases(['hcl', 'terraform', 'tf'], { languageName: 'ini' });

/** Prisma schema language; core highlight.js has no Prisma grammar, GraphQL is the closest match */
hljs.registerAliases(['prisma'], { languageName: 'graphql' });

export type Language = keyof typeof languages | Platform;

type Args = {
Expand Down
146 changes: 141 additions & 5 deletions src/redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@
},
{
"link": "/docs/databases-queries",
"redirect": "/docs/products/databases/queries"
"redirect": "/docs/products/databases/tablesdb/queries"
},
{
"link": "/docs/databases-pagination",
"redirect": "/docs/products/databases/pagination"
"redirect": "/docs/products/databases/tablesdb/pagination"
},
{
"link": "/docs/databases-relationships",
"redirect": "/docs/products/databases/relationships"
"redirect": "/docs/products/databases/tablesdb/relationships"
},
{
"link": "/docs/storage",
Expand Down Expand Up @@ -213,11 +213,11 @@
},
{
"link": "/docs/queries",
"redirect": "/docs/products/databases/queries"
"redirect": "/docs/products/databases/tablesdb/queries"
},
{
"link": "/docs/pagination",
"redirect": "/docs/products/databases/pagination"
"redirect": "/docs/products/databases/tablesdb/pagination"
},
{
"link": "/docs/webhooks",
Expand Down Expand Up @@ -916,6 +916,142 @@
"link": "/heroes",
"redirect": "/"
},
{
"link": "/docs/products/databases/ai-suggestions",
"redirect": "/docs/products/databases/tablesdb/ai-suggestions"
},
{
"link": "/docs/products/databases/atomic-numeric-operations",
"redirect": "/docs/products/databases/tablesdb/atomic-numeric-operations"
},
{
"link": "/docs/products/databases/backups",
"redirect": "/docs/products/databases/tablesdb/backups"
},
{
"link": "/docs/products/databases/bulk-operations",
"redirect": "/docs/products/databases/tablesdb/bulk-operations"
},
{
"link": "/docs/products/databases/csv-exports",
"redirect": "/docs/products/databases/tablesdb/csv-exports"
},
{
"link": "/docs/products/databases/csv-imports",
"redirect": "/docs/products/databases/tablesdb/csv-imports"
},
{
"link": "/docs/products/databases/databases",
"redirect": "/docs/products/databases/tablesdb/databases"
},
{
"link": "/docs/products/databases/geo-queries",
"redirect": "/docs/products/databases/tablesdb/geo-queries"
},
{
"link": "/docs/products/databases/legacy",
"redirect": "/docs/products/databases/tablesdb/legacy"
},
{
"link": "/docs/products/databases/legacy/atomic-numeric-operations",
"redirect": "/docs/products/databases/tablesdb/legacy/atomic-numeric-operations"
},
{
"link": "/docs/products/databases/legacy/bulk-operations",
"redirect": "/docs/products/databases/tablesdb/legacy/bulk-operations"
},
{
"link": "/docs/products/databases/legacy/collections",
"redirect": "/docs/products/databases/tablesdb/legacy/collections"
},
{
"link": "/docs/products/databases/legacy/databases",
"redirect": "/docs/products/databases/tablesdb/legacy/databases"
},
{
"link": "/docs/products/databases/legacy/documents",
"redirect": "/docs/products/databases/tablesdb/legacy/documents"
},
{
"link": "/docs/products/databases/legacy/order",
"redirect": "/docs/products/databases/tablesdb/legacy/order"
},
{
"link": "/docs/products/databases/legacy/pagination",
"redirect": "/docs/products/databases/tablesdb/legacy/pagination"
},
{
"link": "/docs/products/databases/legacy/permissions",
"redirect": "/docs/products/databases/tablesdb/legacy/permissions"
},
{
"link": "/docs/products/databases/legacy/queries",
"redirect": "/docs/products/databases/tablesdb/legacy/queries"
},
{
"link": "/docs/products/databases/legacy/quick-start",
"redirect": "/docs/products/databases/tablesdb/legacy/quick-start"
},
{
"link": "/docs/products/databases/legacy/relationships",
"redirect": "/docs/products/databases/tablesdb/legacy/relationships"
},
{
"link": "/docs/products/databases/legacy/type-generation",
"redirect": "/docs/products/databases/tablesdb/legacy/type-generation"
},
{
"link": "/docs/products/databases/offline",
"redirect": "/docs/products/databases/tablesdb/offline"
},
{
"link": "/docs/products/databases/operators",
"redirect": "/docs/products/databases/tablesdb/operators"
},
{
"link": "/docs/products/databases/order",
"redirect": "/docs/products/databases/tablesdb/order"
},
{
"link": "/docs/products/databases/pagination",
"redirect": "/docs/products/databases/tablesdb/pagination"
},
{
"link": "/docs/products/databases/permissions",
"redirect": "/docs/products/databases/tablesdb/permissions"
},
{
"link": "/docs/products/databases/queries",
"redirect": "/docs/products/databases/tablesdb/queries"
},
{
"link": "/docs/products/databases/quick-start",
"redirect": "/docs/products/databases/tablesdb/quick-start"
},
{
"link": "/docs/products/databases/relationships",
"redirect": "/docs/products/databases/tablesdb/relationships"
},
{
"link": "/docs/products/databases/rows",
"redirect": "/docs/products/databases/tablesdb/rows"
},
{
"link": "/docs/products/databases/tables",
"redirect": "/docs/products/databases/tablesdb/tables"
},
{
"link": "/docs/products/databases/timestamp-overrides",
"redirect": "/docs/products/databases/tablesdb/timestamp-overrides"
},
{
"link": "/docs/products/databases/transactions",
"redirect": "/docs/products/databases/tablesdb/transactions"
},
{
"link": "/docs/products/databases/type-generation",
"redirect": "/docs/products/databases/tablesdb/type-generation"
},
{
"link": "/docs/advanced/platform",
"redirect": "/docs"
Expand Down
Loading
Loading