The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Restructure Documentation
Angelicoc45cdd681beb
diff --git a/web/docs/api/getting-started.mdx b/web/docs/api/getting-started.mdxdeleted file mode 100755index c0abe502183..00000000000--- a/web/docs/api/getting-started.mdx+++ /dev/null@@ -1,6 +0,0 @@-----id: getting-started-title: Getting Started------@todo\ No newline at end of filediff --git a/web/docs/faq.md b/web/docs/faq.mdindex 57bd1b304fa..f54d3612f04 100755--- a/web/docs/faq.md+++ b/web/docs/faq.md@@ -1,6 +1,6 @@---id: faq-title: FAQ's+title: FAQs---@todo\ No newline at end of filediff --git a/web/docs/api/authentication.mdx b/web/docs/library/authentication.mdxsimilarity index 100%rename from web/docs/api/authentication.mdxrename to web/docs/library/authentication.mdxdiff --git a/web/docs/library/getting-started.mdx b/web/docs/library/getting-started.mdxnew file mode 100755index 00000000000..eaac76c120f--- /dev/null+++ b/web/docs/library/getting-started.mdx@@ -0,0 +1,79 @@+---+id: getting-started+title: Getting Started+---++import Tabs from '@theme/Tabs';+import TabItem from '@theme/TabItem';++## Including Supabase+---+<Tabs+ defaultValue="nodeJs"+ values={[+ { label: 'Node.js', value: 'nodeJs', },+ { label: 'Python', value: 'py', },+ ]+}>+<TabItem value="nodeJs">++```js+import { Supabase } from "@supabase/supabase-js";+```+</TabItem>++<TabItem value="py">++```py+from supabase import Supabase+```+</TabItem>+</Tabs>+++## Initializing+---+### Supabase(supabaseURL, supabaseKey, options?)+This is used to initialize an instance of a Supabase object. From here, you would be able+to access all of the features provided by Supabase.+++### Examples+<Tabs+ defaultValue="nodeJs"+ values={[+ { label: 'Node.js', value: 'nodeJs', },+ { label: 'Python', value: 'py', },+ ]+}>+<TabItem value="nodeJs">++```js+const supabase = Supabase("https://supabase.io/xyzcompany", "1a2b-3c4d-5e6f-7g8h");+```+</TabItem>++<TabItem value="py">++```py+supabase = Supabase("https://supabase.io/xyzcompany", "1a2b-3c4d-5e6f-7g8h")+```+</TabItem>+</Tabs>++### Method arguments+#### supabaseURL+`required` string+Your unique Supabase URL.++#### supabaseKey+`required` string+Your unique Supabase Key.++#### options+`optional` object++| Parameter | Data Type | Description |+| ----------- | --------- | ----------- |+| @todo | | |+diff --git a/web/docs/api/subscribe.mdx b/web/docs/library/realtime/subscribe.mdxsimilarity index 94%rename from web/docs/api/subscribe.mdxrename to web/docs/library/realtime/subscribe.mdxindex a76fcfbaf01..1d81ea5b0b8 100644--- a/web/docs/api/subscribe.mdx+++ b/web/docs/library/realtime/subscribe.mdx@@ -1,6 +1,6 @@---id: subscribe-title: "Subscribe to realtime changes"+title: "Subscribe to Realtime Changes"---Our library makes it simple to listen to changes in your database.diff --git a/web/docs/api/delete.mdx b/web/docs/library/restful/delete.mdxsimilarity index 94%rename from web/docs/api/delete.mdxrename to web/docs/library/restful/delete.mdxindex cb4040257e2..9d1688b3e25 100644--- a/web/docs/api/delete.mdx+++ b/web/docs/library/restful/delete.mdx@@ -1,6 +1,6 @@---id: delete-title: 'Remove rows'+title: 'Remove Rows'---@todo short Descriptiondiff --git a/web/docs/api/get.mdx b/web/docs/library/restful/get.mdxsimilarity index 97%rename from web/docs/api/get.mdxrename to web/docs/library/restful/get.mdxindex e125a28bf08..a86dcecfad0 100644--- a/web/docs/api/get.mdx+++ b/web/docs/library/restful/get.mdx@@ -1,6 +1,6 @@---id: get-title: 'Fetch your data'+title: 'Fetch Your Data'---@todo short Descriptiondiff --git a/web/docs/api/patch.mdx b/web/docs/library/restful/patch.mdxsimilarity index 94%rename from web/docs/api/patch.mdxrename to web/docs/library/restful/patch.mdxindex 73f4f398b04..27f2e560641 100644--- a/web/docs/api/patch.mdx+++ b/web/docs/library/restful/patch.mdx@@ -1,6 +1,6 @@---id: patch-title: 'Update rows'+title: 'Update Rows'---@todo short Descriptiondiff --git a/web/docs/api/post.mdx b/web/docs/library/restful/post.mdxsimilarity index 97%rename from web/docs/api/post.mdxrename to web/docs/library/restful/post.mdxindex 7ca5765f078..955440f03f3 100644--- a/web/docs/api/post.mdx+++ b/web/docs/library/restful/post.mdx@@ -1,6 +1,6 @@---id: post-title: 'Create new rows'+title: 'Create New Rows'---diff --git a/web/sidebars.js b/web/sidebars.jsindex ec52504b8d8..72b7247c94f 100755--- a/web/sidebars.js+++ b/web/sidebars.js@@ -6,34 +6,33 @@*/module.exports = {- docs: [- {- type: "category",- label: "Introduction",- items: [- "about",- "faq",- ]- },- {- type: "category",- label: "API",- items: [- "api/getting-started",- "api/authentication",- "api/subscribe",- "api/get",- "api/post",- "api/patch",- "api/delete",- ]- },- {- type: "category",- label: "Guides",- items: [- "guides/examples",- ]- }- ]+ docs: {+ Introduction:[+ "about",+ "faq"+ ],+ Library:[+ "library/getting-started",+ {+ type: "category",+ label: "Realtime",+ items: [+ "library/realtime/subscribe"+ ]+ },+ {+ type: "category",+ label: "RESTful",+ items: [+ "library/restful/get",+ "library/restful/post",+ "library/restful/patch",+ "library/restful/delete"+ ]+ }+ ],+ Guides:[+ "guides/examples"+ ]+ }};