Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

removed codehike from ref docs

Jonathan Summers-Muire794722baa3b
diff --git a/apps/docs/components/index.tsx b/apps/docs/components/index.tsx
index a40f63a918a..0c09c5bb437 100644
--- a/apps/docs/components/index.tsx
+++ b/apps/docs/components/index.tsx
@@ -21,7 +21,7 @@ import { Mermaid } from 'mdx-mermaid/lib/Mermaid'
import InlineCodeTag from './CustomHTMLElements/InlineCode'
import React from 'react'
import RefSubLayout from '~/layouts/ref/RefSubLayout'
-import { CH } from '@code-hike/mdx/components'
+// import { CH } from '@code-hike/mdx/components'
const components = {
Admonition,
@@ -54,15 +54,15 @@ const components = {
{props.children}
</Heading>
),
- // pre: (props: any) => {
- // const linesToHighlight = parseNumericRange(props.lines ?? '')
- // return <CodeBlock {...props} linesToHighlight={linesToHighlight} />
- // },
- // mono: (props: any) => <code className="text-sm">{props.children}</code>,
+ pre: (props: any) => {
+ const linesToHighlight = parseNumericRange(props.lines ?? '')
+ return <CodeBlock {...props} linesToHighlight={linesToHighlight} />
+ },
+ mono: (props: any) => <code className="text-sm">{props.children}</code>,
inlineCode: (props: { children: string }) => <InlineCodeTag {...props} />,
RefSubLayout,
- CH,
- // code: (props: any) => <CodeBlock {...props} />,
+ // CH,
+ code: (props: any) => <CodeBlock {...props} />,
}
export default components
diff --git a/apps/docs/components/reference/RefFunctionSection.tsx b/apps/docs/components/reference/RefFunctionSection.tsx
index d5b7cd88955..1c49b0aa781 100644
--- a/apps/docs/components/reference/RefFunctionSection.tsx
+++ b/apps/docs/components/reference/RefFunctionSection.tsx
@@ -33,7 +33,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {
if (!item) return <></>
if (item && !item['$ref']) {
- console.log('🚩 issue with ref', item.id)
+ console.warn('🚩 issue with $ref in:', item.id)
}
// console.log(item)
diff --git a/apps/docs/components/reference/RefSectionHandler.tsx b/apps/docs/components/reference/RefSectionHandler.tsx
index 89bd33ba1ec..ced32c6a586 100644
--- a/apps/docs/components/reference/RefSectionHandler.tsx
+++ b/apps/docs/components/reference/RefSectionHandler.tsx
@@ -49,28 +49,35 @@ const RefSectionHandler = (props) => {
return (
<RefSubLayout>
{props.sections.map((x) => {
- switch (x.isFunc) {
- case false:
+ switch (x.type) {
+ case 'markdown':
const markdownData = props.pageProps.docs.find((doc) => doc.id === x.id)
return <RefEducationSection item={x} markdownContent={markdownData} />
break
-
+ case 'function':
+ return (
+ <RefFunctionSection
+ funcData={x}
+ commonFuncData={x}
+ spec={props.spec}
+ typeSpec={props.typeSpec}
+ />
+ )
+ case 'cli-command':
+ return <CliCommandSection funcData={x} commonFuncData={x} spec={props.spec} />
+ break
+ case 'operation':
+ return <ApiOperationSection funcData={x} commonFuncData={x} spec={props.spec} />
default:
- if (props.type === 'cli') {
- return <CliCommandSection funcData={x} commonFuncData={x} spec={props.spec} />
- } else if (props.type === 'api') {
- return <ApiOperationSection funcData={x} commonFuncData={x} spec={props.spec} />
- } else {
- return (
- <RefFunctionSection
- funcData={x}
- commonFuncData={x}
- spec={props.spec}
- typeSpec={props.typeSpec}
- />
- )
- }
+ return (
+ <RefFunctionSection
+ funcData={x}
+ commonFuncData={x}
+ spec={props.spec}
+ typeSpec={props.typeSpec}
+ />
+ )
break
}
})}
diff --git a/apps/docs/docs/ref/javascript/release-notes.mdx b/apps/docs/docs/ref/javascript/release-notes.mdx
index 55247713e01..ba55be387c5 100644
--- a/apps/docs/docs/ref/javascript/release-notes.mdx
+++ b/apps/docs/docs/ref/javascript/release-notes.mdx
@@ -67,8 +67,6 @@ Supabase.js v2 release notes.
</RefSubLayout.Details>
<RefSubLayout.Examples>
- <CH.Code>
-
```ts v1.0
// previously definitions were injected in the `from()` method
supabase.from<Definitions['Message']>('messages').select('\*')
@@ -85,8 +83,6 @@ Supabase.js v2 release notes.
const { data } = await supabase.from('messages').select().match({ id: 1 })
```
- </CH.Code>
-
</RefSubLayout.Examples>
<RefSubLayout.Details>
@@ -194,8 +190,6 @@ Supabase.js v2 release notes.
</RefSubLayout.Details>
<RefSubLayout.Examples>
- <CH.Code>
-
```ts v1.0
const { data } = await supabase.auth.signIn({
email: 'hello@example',
@@ -211,8 +205,6 @@ Supabase.js v2 release notes.
})
```
- </CH.Code>
-
</RefSubLayout.Examples>
</RefSubLayout.EducationRow>
diff --git a/apps/docs/lib/mdx/generateRefMarkdown.tsx b/apps/docs/lib/mdx/generateRefMarkdown.tsx
index 7fcffc1b0ea..2d7d2d296c1 100644
--- a/apps/docs/lib/mdx/generateRefMarkdown.tsx
+++ b/apps/docs/lib/mdx/generateRefMarkdown.tsx
@@ -45,10 +45,10 @@ async function generateRefMarkdown(sections, slug) {
? await serialize(content ?? '', {
// MDX's available options, see the MDX docs for more info.
// https://mdxjs.com/packages/mdx/#compilefile-options
- mdxOptions: {
- remarkPlugins: [[remarkCodeHike, { autoImport: false, theme }]],
- useDynamicImport: true,
- },
+ // mdxOptions: {
+ // remarkPlugins: [[remarkCodeHike, { autoImport: false, theme }]],
+ // useDynamicImport: true,
+ // },
// Indicates whether or not to parse the frontmatter from the mdx source
})
: null,
diff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xml
index c5abf46d2f1..539d127c0da 100644
--- a/apps/docs/public/sitemap.xml
+++ b/apps/docs/public/sitemap.xml
@@ -150,6 +150,12 @@
<changefreq>0.5</changefreq>
</url>
+ <url>
+ <loc>https://supabase.com/docs/guides/resources</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
<url>
<loc>https://supabase.com/docs/guides/storage</loc>
<changefreq>weekly</changefreq>
@@ -264,12 +270,6 @@
<changefreq>0.5</changefreq>
</url>
- <url>
- <loc>https://supabase.com/docs/new/database</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
<url>
<loc>https://supabase.com/docs/new/index</loc>
<changefreq>weekly</changefreq>
@@ -294,36 +294,6 @@
<changefreq>0.5</changefreq>
</url>
- <url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
- <url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
- <url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
- <url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
- <url>
- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
<url>
<loc>https://supabase.com/docs/guides/api/generating-types</loc>
<changefreq>weekly</changefreq>
@@ -516,18 +486,6 @@
<changefreq>0.5</changefreq>
</url>
- <url>
- <loc>https://supabase.com/docs/guides/cli/local-development</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
- <url>
- <loc>https://supabase.com/docs/guides/cli/managing-environments</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
<url>
<loc>https://supabase.com/docs/guides/database/arrays</loc>
<changefreq>weekly</changefreq>
@@ -948,6 +906,18 @@
<changefreq>0.5</changefreq>
</url>
+ <url>
+ <loc>https://supabase.com/docs/guides/cli/local-development</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/docs/guides/cli/managing-environments</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
<url>
<loc>https://supabase.com/docs/guides/tutorials/with-angular</loc>
<changefreq>weekly</changefreq>
@@ -1032,6 +1002,36 @@
<changefreq>0.5</changefreq>
</url>
+ <url>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
<url>
<loc>https://supabase.com/docs/new/auth/auth-login</loc>
<changefreq>weekly</changefreq>
@@ -1254,12 +1254,6 @@
<changefreq>0.5</changefreq>
</url>
- <url>
- <loc>https://supabase.com/docs/guides/resources/self-hosting/docker</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
<url>
<loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/firebase-auth</loc>
<changefreq>weekly</changefreq>
@@ -1296,6 +1290,12 @@
<changefreq>0.5</changefreq>
</url>
+ <url>
+ <loc>https://supabase.com/docs/guides/resources/self-hosting/docker</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
<url>
<loc>https://supabase.com/docs/reference/api</loc>
<changefreq>weekly</changefreq>
diff --git a/spec/common-api-sections.json b/spec/common-api-sections.json
index cd0eaaff407..58a98a5e1aa 100644
--- a/spec/common-api-sections.json
+++ b/spec/common-api-sections.json
@@ -3,7 +3,7 @@
"title": "Introduction",
"id": "introduction",
"slug": "introduction",
- "isFunc": false
+ "type": "markdown"
},
{
"title": "Projects",
@@ -12,25 +12,25 @@
"id": "list-all-projects",
"title": "List all projects",
"slug": "list-all-projects",
- "isFunc": true
+ "type": "operation"
},
{
"id": "create-a-project",
"title": "Create a project",
"slug": "create-a-project",
- "isFunc": true
+ "type": "operation"
},
{
"id": "list-all-organizations",
"title": "List all organizations",
"slug": "list-all-organizations",
- "isFunc": true
+ "type": "operation"
},
{
"id": "create-an-organization",
"title": "Create an organization",
"slug": "create-an-organization",
- "isFunc": true
+ "type": "operation"
}
]
},
@@ -41,19 +41,19 @@
"id": "list-all-secrets",
"title": "List all secrets",
"slug": "list-all-secrets",
- "isFunc": true
+ "type": "operation"
},
{
"id": "bulk-create-secrets",
"title": "Bulk create secrets",
"slug": "bulk-create-secrets",
- "isFunc": true
+ "type": "operation"
},
{
"id": "bulk-delete-secrets",
"title": "Bulk delete secrets",
"slug": "bulk-delete-secrets",
- "isFunc": true
+ "type": "operation"
}
]
},
@@ -64,7 +64,7 @@
"id": "generate-typescript-types",
"title": "Generate TypeScript types",
"slug": "generate-typescript-types",
- "isFunc": true
+ "type": "operation"
}
]
},
@@ -75,37 +75,37 @@
"id": "create-a-function",
"title": "Create a function",
"slug": "create-a-function",
- "isFunc": true
+ "type": "operation"
},
{
"id": "list-all-functions",
"title": "List all functions",
"slug": "list-all-functions",
- "isFunc": true
+ "type": "operation"
},
{
"id": "retrieve-a-function",
"title": "Retrieve a function",
"slug": "retrieve-a-function",
- "isFunc": true
+ "type": "operation"
},
{
"id": "update-a-function",
"title": "Update a function",
"slug": "update-a-function",
- "isFunc": true
+ "type": "operation"
},
{
"id": "delete-a-function",
"title": "Delete a function",
"slug": "delete-a-function",
- "isFunc": true
+ "type": "operation"
},
{
"id": "retrieve-a-function-body",
"title": "Retrieve a function body",
"slug": "retrieve-a-function-body",
- "isFunc": true
+ "type": "operation"
}
]
},
@@ -117,31 +117,31 @@
"id": "gets-projects-custom-hostname-config",
"title": "Gets project's custom hostname config",
"slug": "gets-projects-custom-hostname-config",
- "isFunc": true
+ "type": "operation"
},
{
"id": "deletes-a-projects-custom-hostname-configuration",
"title": "Deletes a project's custom hostname configuration",
"slug": "deletes-a-projects-custom-hostname-configuration",
- "isFunc": true
+ "type": "operation"
},
{
"id": "updates-projects-custom-hostname-configuration",
"title": "Updates project's custom hostname configuration",
"slug": "updates-projects-custom-hostname-configuration",
- "isFunc": true
+ "type": "operation"
},
{
"id": "attempts-to-verify-the-dns-configuration-for-projects-custom-hostname-configuration",
"title": "Attempts to verify the DNS configuration for project's custom hostname configuration",
"slug": "attempts-to-verify-the-dns-configuration-for-projects-custom-hostname-configuration",
- "isFunc": true
+ "type": "operation"
},
{
"id": "activates-a-custom-hostname-for-a-project",
"title": "Activates a custom hostname for a project.",
"slug": "activates-a-custom-hostname-for-a-project",
- "isFunc": true
+ "type": "operation"
}
]
},
@@ -152,13 +152,13 @@
"id": "gets-projects-pgsodium-config",
"title": "Gets project's pgsodium config",
"slug": "gets-projects-pgsodium-config",
- "isFunc": true
+ "type": "operation"
},
{
"id": "updates-projects-pgsodium-config-updating-the-root_key-can-cause-all-data-encrypted-with-the-older-key-to-become-inaccessible",
"title": "Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.",
"slug": "updates-projects-pgsodium-config-updating-the-root_key-can-cause-all-data-encrypted-with-the-older-key-to-become-inaccessible",
- "isFunc": true
+ "type": "operation"
}
]
},
@@ -169,25 +169,25 @@
"id": "gets-projects-network-bans",
"title": "Gets project's network bans",
"slug": "gets-projects-network-bans",
- "isFunc": true
+ "type": "operation"
},
{
"id": "remove-network-bans",
"title": "Remove network bans.",
"slug": "remove-network-bans",
- "isFunc": true
+ "type": "operation"
},
{
"id": "gets-projects-network-restrictions",
"title": "Gets project's network restrictions",
"slug": "gets-projects-network-restrictions",
- "isFunc": true
+ "type": "operation"
},
{
"id": "updates-projects-network-restrictions",
"title": "Updates project's network restrictions",
"slug": "updates-projects-network-restrictions",
- "isFunc": true
+ "type": "operation"
}
]
}
diff --git a/spec/common-cli-sections.json b/spec/common-cli-sections.json
index 398acf409f6..e7c452796fc 100644
--- a/spec/common-cli-sections.json
+++ b/spec/common-cli-sections.json
@@ -12,67 +12,67 @@
"id": "supabase-test",
"title": "supabase test",
"slug": "supabase-test",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-test-db",
"title": "supabase test db",
"slug": "supabase-test-db",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-stop",
"title": "supabase stop",
"slug": "supabase-stop",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-status",
"title": "supabase status",
"slug": "supabase-status",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-start",
"title": "supabase start",
"slug": "supabase-start",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-login",
"title": "supabase login",
"slug": "supabase-login",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-link",
"title": "supabase link",
"slug": "supabase-link",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-init",
"title": "supabase init",
"slug": "supabase-init",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-gen",
"title": "supabase gen",
"slug": "supabase-gen",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-gen-types",
"title": "supabase gen types",
"slug": "supabase-gen-types",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-gen-types-typescript",
"title": "supabase gen types typescript",
"slug": "supabase-gen-types-typescript",
- "isFunc": true
+ "type": "cli-command"
}
]
},
@@ -83,25 +83,25 @@
"id": "supabase-secrets",
"title": "supabase secrets",
"slug": "supabase-secrets",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-secrets-unset",
"title": "supabase secrets unset",
"slug": "supabase-secrets-unset",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-secrets-set",
"title": "supabase secrets set",
"slug": "supabase-secrets-set",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-secrets-list",
"title": "supabase secrets list",
"slug": "supabase-secrets-list",
- "isFunc": true
+ "type": "cli-command"
}
]
},
@@ -112,19 +112,19 @@
"id": "supabase-projects",
"title": "supabase projects",
"slug": "supabase-projects",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-projects-list",
"title": "supabase projects list",
"slug": "supabase-projects-list",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-projects-create",
"title": "supabase projects create",
"slug": "supabase-projects-create",
- "isFunc": true
+ "type": "cli-command"
}
]
},
@@ -135,13 +135,13 @@
"id": "supabase-orgs",
"title": "supabase orgs",
"slug": "supabase-orgs",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-orgs-list",
"title": "supabase orgs list",
"slug": "supabase-orgs-list",
- "isFunc": true
+ "type": "cli-command"
}
]
},
@@ -152,19 +152,19 @@
"id": "supabase-migration",
"title": "supabase migration",
"slug": "supabase-migration",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-migration-new",
"title": "supabase migration new",
"slug": "supabase-migration-new",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-migration-list",
"title": "supabase migration list",
"slug": "supabase-migration-list",
- "isFunc": true
+ "type": "cli-command"
}
]
},
@@ -175,31 +175,31 @@
"id": "supabase-functions",
"title": "supabase functions",
"slug": "supabase-functions",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-functions-serve",
"title": "supabase functions serve",
"slug": "supabase-functions-serve",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-functions-new",
"title": "supabase functions new",
"slug": "supabase-functions-new",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-functions-deploy",
"title": "supabase functions deploy",
"slug": "supabase-functions-deploy",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-functions-delete",
"title": "supabase functions delete",
"slug": "supabase-functions-delete",
- "isFunc": true
+ "type": "cli-command"
}
]
},
@@ -210,85 +210,85 @@
"id": "supabase-domains",
"title": "supabase domains",
"slug": "supabase-domains",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-domains-reverify",
"title": "supabase domains reverify",
"slug": "supabase-domains-reverify",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-domains-get",
"title": "supabase domains get",
"slug": "supabase-domains-get",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-domains-delete",
"title": "supabase domains delete",
"slug": "supabase-domains-delete",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-domains-create",
"title": "supabase domains create",
"slug": "supabase-domains-create",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-domains-activate",
"title": "supabase domains activate",
"slug": "supabase-domains-activate",
- "isFunc": true
+ "type": "cli-command"
}
]
},
{
"title": "Database",
"items": [
- { "id": "supabase-db", "title": "supabase db", "slug": "supabase-db", "isFunc": true },
+ { "id": "supabase-db", "title": "supabase db", "slug": "supabase-db", "type": "cli-command" },
{
"id": "supabase-db-reset",
"title": "supabase db reset",
"slug": "supabase-db-reset",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-db-remote",
"title": "supabase db remote",
"slug": "supabase-db-remote",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-db-remote-commit",
"title": "supabase db remote commit",
"slug": "supabase-db-remote-commit",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-db-remote-changes",
"title": "supabase db remote changes",
"slug": "supabase-db-remote-changes",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-db-push",
"title": "supabase db push",
"slug": "supabase-db-push",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-db-lint",
"title": "supabase db lint",
"slug": "supabase-db-lint",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-db-diff",
"title": "supabase db diff",
"slug": "supabase-db-diff",
- "isFunc": true
+ "type": "cli-command"
}
]
},
@@ -299,31 +299,31 @@
"id": "supabase-completion",
"title": "supabase completion",
"slug": "supabase-completion",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-completion-zsh",
"title": "supabase completion zsh",
"slug": "supabase-completion-zsh",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-completion-powershell",
"title": "supabase completion powershell",
"slug": "supabase-completion-powershell",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-completion-fish",
"title": "supabase completion fish",
"slug": "supabase-completion-fish",
- "isFunc": true
+ "type": "cli-command"
},
{
"id": "supabase-completion-bash",
"title": "supabase completion bash",
"slug": "supabase-completion-bash",
- "isFunc": true
+ "type": "cli-command"
}
]
}
diff --git a/spec/common-client-libs-sections.json b/spec/common-client-libs-sections.json
index 583b8dcf390..47b17fbc654 100644
--- a/spec/common-client-libs-sections.json
+++ b/spec/common-client-libs-sections.json
@@ -3,21 +3,21 @@
"title": "Introduction",
"id": "introduction",
"slug": "introduction",
- "isFunc": false,
+ "type": "markdown",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
"title": "Installing",
"id": "installing",
"slug": "installing",
- "isFunc": false,
+ "type": "markdown",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
"title": "Typescript Support",
"id": "typescript-support",
"slug": "typescript-support",
- "isFunc": false,
+ "type": "markdown",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -28,7 +28,7 @@
"title": "Database",
"slug": "overview",
"product": "database",
- "isFunc": false,
+ "type": "markdown",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -36,6 +36,7 @@
"title": "Fetch data",
"slug": "select",
"product": "database",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -43,6 +44,7 @@
"title": "Insert data",
"slug": "insert",
"product": "database",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -50,6 +52,7 @@
"title": "Update data",
"slug": "update",
"product": "database",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -57,6 +60,7 @@
"title": "Upsert data",
"slug": "upsert",
"product": "database",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -64,6 +68,7 @@
"title": "Delete data",
"slug": "delete",
"product": "database",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -71,6 +76,7 @@
"title": "Call a Postgres function",
"slug": "rpc",
"product": "database",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -79,6 +85,7 @@
"title": "Using filters",
"slug": "using-filters",
"product": "database",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"],
"items": [
{
@@ -87,6 +94,7 @@
"slug": "eq",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -95,6 +103,7 @@
"slug": "neq",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -103,6 +112,7 @@
"slug": "gt",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -111,6 +121,7 @@
"slug": "gte",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -119,6 +130,7 @@
"slug": "lt",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -127,6 +139,7 @@
"slug": "lte",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -135,6 +148,7 @@
"slug": "like",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -143,6 +157,7 @@
"slug": "ilike",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -151,6 +166,7 @@
"slug": "is",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -159,6 +175,7 @@
"slug": "in",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -167,6 +184,7 @@
"slug": "contains",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -175,6 +193,7 @@
"slug": "containedby",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -183,6 +202,7 @@
"slug": "rangegt",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -191,6 +211,7 @@
"slug": "rangegte",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -199,6 +220,7 @@
"slug": "rangelt",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -207,6 +229,7 @@
"slug": "rangelte",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -215,6 +238,7 @@
"slug": "rangeadjacent",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -223,6 +247,7 @@
"slug": "overlaps",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -231,6 +256,7 @@
"slug": "textsearch",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -239,6 +265,7 @@
"slug": "match",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -247,6 +274,7 @@
"slug": "not",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -255,6 +283,7 @@
"slug": "or",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -263,6 +292,7 @@
"slug": "filter",
"product": "database",
"parent": "filters",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
}
]
@@ -274,6 +304,7 @@
"slug": "using-modifiers",
"product": "database",
"parent": "modifiers",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"],
"items": [
{
@@ -282,6 +313,7 @@
"slug": "db-modifiers-select",
"product": "database",
"parent": "modifiers",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -290,6 +322,7 @@
"slug": "order",
"product": "database",
"parent": "modifiers",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -298,6 +331,7 @@
"slug": "limit",
"product": "database",
"parent": "modifiers",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -306,6 +340,7 @@
"slug": "range",
"product": "database",
"parent": "modifiers",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -314,6 +349,7 @@
"slug": "db-abortsignal",
"product": "database",
"parent": "modifiers",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -322,6 +358,7 @@
"slug": "single",
"product": "database",
"parent": "modifiers",
+ "type": "function",
"libs": ["js", "js_v4", "dart", "dart_v0"]
},
{
@@ -330,6 +367,7 @@
"slug": "maybesingle",
"product": "database",
"parent": "modifiers",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -338,6 +376,7 @@
"slug": "db-csv",
"product": "database",
"parent": "modifiers",
+ "type": "function",
"libs": ["js", "js_v4"]
}
]
@@ -352,6 +391,7 @@
"title": "Create a new user",
"slug": "auth-signup",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -359,6 +399,7 @@
"title": "Sign in a user",
"slug": "auth-signin",
"product": "auth",
+ "type": "function",
"libs": ["js_v1", "dart_v0"]
},
{
@@ -366,6 +407,7 @@
"title": "Sign in a user through OAuth",
"slug": "auth-signinwithprovider",
"product": "auth",
+ "type": "function",
"libs": ["js_v4", "dart_v0"]
},
{
@@ -373,6 +415,7 @@
"title": "Send a one-time passcode",
"slug": "auth-api-sendmobileotp",
"product": "auth",
+ "type": "function",
"libs": ["js_v1"]
},
{
@@ -380,6 +423,7 @@
"title": "Sign in a user",
"slug": "auth-signinwithpassword",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -387,6 +431,7 @@
"title": "Sign in a user through OTP",
"slug": "auth-signinwithotp",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -394,6 +439,7 @@
"title": "Sign in a user through OAuth",
"slug": "auth-signinwithoauth",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -401,6 +447,7 @@
"title": "Sign out a user",
"slug": "auth-signout",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v1"]
},
{
@@ -408,6 +455,7 @@
"title": "Retrieve a session",
"slug": "auth-session",
"product": "auth",
+ "type": "function",
"libs": ["js_v4"]
},
{
@@ -415,6 +463,7 @@
"title": "Update a user",
"slug": "auth-update",
"product": "auth",
+ "type": "function",
"libs": ["js_v1"]
},
{
@@ -422,6 +471,7 @@
"title": "Update the access token",
"slug": "auth-setauth",
"product": "auth",
+ "type": "function",
"libs": ["js_v1"]
},
{
@@ -429,6 +479,7 @@
"title": "Retrieve a user",
"slug": "auth-user",
"product": "auth",
+ "type": "function",
"libs": ["js_v1"]
},
{
@@ -436,6 +487,7 @@
"title": "Retrieve a session",
"slug": "auth-session",
"product": "auth",
+ "type": "function",
"libs": ["js_v1"]
},
{
@@ -443,6 +495,7 @@
"title": "Verify and log in through OTP",
"slug": "auth-verifyotp",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -450,6 +503,7 @@
"title": "Retrieve a session",
"slug": "auth-currentsession",
"product": "auth",
+ "type": "function",
"libs": ["dart_v8"]
},
{
@@ -457,6 +511,7 @@
"title": "Retrieve a user",
"slug": "auth-currentuser",
"product": "auth",
+ "type": "function",
"libs": ["dart_v8"]
},
{
@@ -464,6 +519,7 @@
"title": "Retrieve a session",
"slug": "auth-getsession",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -471,6 +527,7 @@
"title": "Retrieve a new session",
"slug": "auth-refreshsession",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -478,6 +535,7 @@
"title": "Retrieve a user",
"slug": "auth-getuser",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v1"]
},
{
@@ -485,6 +543,7 @@
"title": "Update a user",
"slug": "auth-updateuser",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -492,6 +551,7 @@
"title": "Set the session data",
"slug": "auth-setsession",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v4"]
},
@@ -500,6 +560,7 @@
"title": "Listen to auth events",
"slug": "auth-onauthstatechange",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v1", "dart_v0"]
},
{
@@ -507,6 +568,7 @@
"title": "Send a password reset request",
"slug": "auth-resetpasswordforemail",
"product": "auth",
+ "type": "function",
"libs": ["js", "js_v1", "dart_v0"]
}
]
@@ -520,6 +582,7 @@
"title": "Overview",
"slug": "supabase-auth-admin-api",
"product": "auth-admin",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -527,6 +590,7 @@
"title": "Retrieve a user",
"slug": "auth-admin-getuserbyid",
"product": "auth-admin",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -534,6 +598,7 @@
"title": "List all users",
"slug": "auth-admin-listusers",
"product": "auth-admin",
+ "type": "function",
"libs": ["js", "js_v1"]
},
{
@@ -541,6 +606,7 @@
"title": "Create a user",
"slug": "auth-admin-createuser",
"product": "auth-admin",
+ "type": "function",
"libs": ["js", "js_v1"]
},
{
@@ -548,6 +614,7 @@
"title": "Delete a user",
"slug": "auth-admin-deleteuser",
"product": "auth-admin",
+ "type": "function",
"libs": ["js", "js_v1"]
},
{
@@ -555,6 +622,7 @@
"title": "Send an email invite link",
"slug": "auth-admin-inviteuserbyemail",
"product": "auth-admin",
+ "type": "function",
"libs": ["js", "js_v1"]
},
{
@@ -562,6 +630,7 @@
"title": "Send a password reset request",
"slug": "auth-admin-resetpasswordforemail",
"product": "auth-admin",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -569,6 +638,7 @@
"title": "Generate an email link",
"slug": "auth-admin-generatelink",
"product": "auth-admin",
+ "type": "function",
"libs": ["js", "js_v4"]
},
{
@@ -576,6 +646,7 @@
"title": "Update a user",
"slug": "auth-admin-updateuserbyid",
"product": "auth-admin",
+ "type": "function",
"libs": ["js", "js_v1"]
}
]
@@ -588,6 +659,7 @@
"title": "Invoke a function",
"slug": "auth-admin-invoke",
"product": "functions",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
}
]
@@ -600,6 +672,7 @@
"title": "Listen to database changes",
"slug": "stream",
"product": "realtime",
+ "type": "function",
"libs": ["dart", "dart_v0"]
},
{
@@ -607,6 +680,7 @@
"title": "Subscribe to database changes",
"slug": "subscribe",
"product": "realtime",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -614,6 +688,7 @@
"title": "Remove a subscription",
"slug": "removesubscription",
"product": "realtime",
+ "type": "function",
"libs": ["dart_v0", "js_v1"]
},
{
@@ -621,6 +696,7 @@
"title": "Remove all subscriptions",
"slug": "removeallsubscriptions",
"product": "realtime",
+ "type": "function",
"libs": ["js_v1"]
},
{
@@ -628,6 +704,7 @@
"title": "Retrieve subscriptions",
"slug": "getsubscriptions",
"product": "realtime",
+ "type": "function",
"libs": ["js_v1"]
},
@@ -636,6 +713,7 @@
"title": "Unsubscribe from a channel",
"slug": "removechannel",
"product": "realtime",
+ "type": "function",
"libs": ["js", "js_v4", "dart"]
},
{
@@ -643,6 +721,7 @@
"title": "Unsubscribe from all channels",
"slug": "removeallchannels",
"product": "realtime",
+ "type": "function",
"libs": ["js", "js_v4", "dart"]
},
{
@@ -650,6 +729,7 @@
"title": "Retrieve all channels",
"slug": "getchannels",
"product": "realtime",
+ "type": "function",
"libs": ["js2", "js_v4", "dart"]
}
]
@@ -662,6 +742,7 @@
"title": "Create a bucket",
"slug": "storage-createbucket",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -669,6 +750,7 @@
"title": "Retrieve a bucket",
"slug": "storage-getbucket",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -676,6 +758,7 @@
"title": "List all buckets",
"slug": "storage-listbuckets",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -683,6 +766,7 @@
"title": "Update a bucket",
"slug": "storage-updatebucket",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -690,6 +774,7 @@
"title": "Delete a bucket",
"slug": "storage-deletebucket",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -697,6 +782,7 @@
"title": "Empty a bucket",
"slug": "storage-emptybucket",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -704,6 +790,7 @@
"title": "Upload a file",
"slug": "storage-from-upload",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -711,6 +798,7 @@
"title": "Download a file",
"slug": "storage-from-download",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -718,6 +806,7 @@
"title": "List all files in a bucket",
"slug": "storage-from-list",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -725,6 +814,7 @@
"title": "Replace an existing file",
"slug": "storage-from-update",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -732,6 +822,7 @@
"title": "Move an existing file",
"slug": "storage-from-move",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -739,6 +830,7 @@
"title": "Copy an existing file",
"slug": "storage-from-copy",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1"]
},
{
@@ -746,6 +838,7 @@
"title": "Delete files in a bucket",
"slug": "storage-from-remove",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -753,6 +846,7 @@
"title": "Create a signed URL",
"slug": "storage-from-createsignedurl",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1", "dart", "dart_v0"]
},
{
@@ -760,6 +854,7 @@
"title": "Create signed URLs",
"slug": "storage-from-createsignedurls",
"product": "storage",
+ "type": "function",
"libs": ["js", "js_v1"]
},
{
@@ -767,6 +862,7 @@
"title": "Retrieve an asset's URL",
"slug": "storage-from-getpublicurl",
"product": "storage",
+ "type": "function",
"libs": ["js2", "js_v1", "dart", "dart_v0"]
}
]
@@ -776,6 +872,7 @@
"id": "release-notes",
"slug": "release-notes",
"isFunc": false,
+ "type": "markdown",
"libs": ["js", "js_v1", "dart", "dart_v0"]
}
]