The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fixes all the nav links
Copplef4136d7224b9
diff --git a/apps/reference/docs/about.md b/apps/reference/docs/about.mdindex e19ffb81f44..fc881d9f35a 100644--- a/apps/reference/docs/about.md+++ b/apps/reference/docs/about.md@@ -1,467 +1,9 @@---id: about+title: Introduction+description: 'What is Supabase?'slug: /-sidebar_label: About-sidebar_position: 2+hide_table_of_contents: true----# Reference Documentation--This section of the docs provides technical descriptions of the products and how to use them.--## Modularity--Supabase is modular. While it may seem like a single tool, it is actually a suite of tools that are composed on top of a PostgreSQL database. This offers several advantages:--- Each tool scales independently.-- Each tool can be self-hosted.-- Developers can disable tools which are not required.-- Each tool is focused on a single task to minimize complexity.--This is a similar approach to any Enterprise-grade system with an additional focus on modularity: while some companies might cut-corners, Supabase makes modularity a priority.--## Architecture--- `Database`- - [PostgreSQL](https://www.postgresql.org/) is an object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.- - Coonection Pooling: [PgBouncer](https://www.pgbouncer.org/) is a lightweight connection pooler for PostgreSQL.- - [postgres-meta](https://github.com/supabase/postgres-meta) is a RESTful API for managing your Postgres, allowing you to fetch tables, add roles, and run queries, etc.-- `Auth`- - Authentication: [GoTrue](https://github.com/supabase/gotrue) is an SWT based API for managing users and issuing SWT tokens.- - Authorization: using [PostgreSQL Row Level Security](https://supabase.com/docs/guides/auth/row-level-security).-- `APIs`- - Websockets: [Realtime](https://github.com/supabase/realtime) is an Elixir server that allows you to listen to PostgreSQL inserts, updates, and deletes using websockets. Realtime polls Postgres' built-in replication functionality for database changes, converts changes to JSON, then broadcasts the JSON over websockets to authorized clients.- - REST: [PostgREST](http://postgrest.org/) is a web server that turns your PostgreSQL database directly into a RESTful API- - GraphQL: [pg_graphql](https://github.com/supabase/pg_graphql) adds GraphQL support to your PostgreSQL database.- - Edge Functions: [Deno](https://deno.land/) is a modern and secure runtime for JavaScript, TypeScript, and WebAssembly.- - Reverse Proxy: [Kong](https://github.com/Kong/kong) is a cloud-native API gateway.-- `File Storage`- - [Storage](https://github.com/supabase/storage-api) provides a RESTful interface for managing Files stored in S3, using Postgres to manage permissions.--## Open source--Each part of the Supabase ecosystem is open source. Wherever possible, we support existing tools rather than developing from scratch.--We choose tools which are [OSI Compliant](https://opensource.org/licenses), with a strong bias towards MIT, Apache 2.0, and PostgreSQL licenses.-Everything we open source is licensed with one of these 3 licenses:--- MIT for client libraries-- Apache 2.0 for API servers-- PostgreSQL for any Postgres-related tooling--## Client Libraries--Supabase provides client libraries for building your products. Our approach for client libraries is modular. Each sub-library is a standalone implementation for a single system.--For example, our `supabase-js` library is a wrapper around five smaller libraries:--- `postgrest-js` (REST API)-- `gotrue-js` (Authentication)-- `storage-js` (File Storage)-- `realtime-js` (Websockets)-- `functions-js` (Edge Functions)--## Community--Supabase officially supports the Javascript libraries, and all other libraries are community-maintained. This is one way that we try to support and foster an open source ecosystem.--<table style={{ tableLayout: 'fixed', whiteSpace: 'nowrap' }}>- <tr>- <th colspan="2" style={{textAlign: 'right'}}>Supabase Tool:</th>- <th>- <a href="https://github.com/postgrest/postgrest" target="_blank" rel="noopener noreferrer">- PostgREST- </a>- </th>- <th>- <a href="https://github.com/supabase/gotrue" target="_blank" rel="noopener noreferrer">- GoTrue- </a>- </th>- <th>- <a href="https://github.com/supabase/realtime" target="_blank" rel="noopener noreferrer">- Realtime- </a>- </th>- <th>- <a href="https://github.com/supabase/storage-api" target="_blank" rel="noopener noreferrer">- Storage- </a>- </th>- <th>- <a- href="https://github.com/supabase/functions"- target="_blank"- rel="noopener noreferrer"- >- Edge Functions- </a>- </th>- </tr>- <th colspan="7"></th>- <tr>- <td>JavaScript (TypeScript)</td>- <td>- <a href="https://github.com/supabase/supabase-js" target="_blank" rel="noopener noreferrer">- supabase-js- </a>- </td>- <td>- <a href="https://github.com/supabase/postgrest-js" target="_blank" rel="noopener noreferrer">- postgrest-js- </a>- </td>- <td>- <a href="https://github.com/supabase/gotrue-js" target="_blank" rel="noopener noreferrer">- gotrue-js- </a>- </td>- <td>- <a href="https://github.com/supabase/realtime-js" target="_blank" rel="noopener noreferrer">- realtime-js- </a>- </td>- <td>- <a href="https://github.com/supabase/storage-js" target="_blank" rel="noopener noreferrer">- storage-js- </a>- </td>- <td>- <a href="https://github.com/supabase/functions-js" target="_blank" rel="noopener noreferrer">- functions-js- </a>- </td>- </tr>- <tr>- <td>Dart</td>- <td>- <a- href="https://github.com/supabase-community/supabase-dart"- target="_blank"- rel="noopener noreferrer"- >- supabase-dart- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/postgrest-dart"- target="_blank"- rel="noopener noreferrer"- >- postgrest-dart- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/gotrue-dart"- target="_blank"- rel="noopener noreferrer"- >- gotrue-dart- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/realtime-dart"- target="_blank"- rel="noopener noreferrer"- >- realtime-dart- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/storage-dart"- target="_blank"- rel="noopener noreferrer"- >- storage-dart- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/functions-dart"- target="_blank"- rel="noopener noreferrer"- >- functions-dart- </a>- </td>- </tr>- <tr>- <td>Flutter</td>- <td>- <a- href="https://github.com/supabase-community/supabase-flutter"- target="_blank"- rel="noopener noreferrer"- >- supabase-flutter- </a>- </td>- <td>-</td>- <td>-</td>- <td>-</td>- <td>-</td>- <td>-</td>- </tr>- <th colspan="7">Community</th>-- <tr>- <td>C#</td>- <td>- <a- href="https://github.com/supabase-community/supabase-csharp"- target="_blank"- rel="noopener noreferrer"- >- supabase-csharp- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/postgrest-csharp"- target="_blank"- rel="noopener noreferrer"- >- postgrest-csharp- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/gotrue-csharp"- target="_blank"- rel="noopener noreferrer"- >- gotrue-csharp- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/realtime-csharp"- target="_blank"- rel="noopener noreferrer"- >- realtime-csharp- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/storage-csharp"- target="_blank"- rel="noopener noreferrer"- >- storage-csharp- </a>- </td>- <td>-</td>- </tr>- <tr>- <td>Go</td>- <td>-</td>- <td>- <a- href="https://github.com/supabase-community/postgrest-go"- target="_blank"- rel="noopener noreferrer"- >- postgrest-go- </a>- </td>- <td>-</td>- <td>-</td>- <td>- <a- href="https://github.com/supabase-community/storage-go"- target="_blank"- rel="noopener noreferrer"- >- storage-go- </a>- </td>- <td>-</td>- </tr>- <tr>- <td>Java</td>- <td>-</td>- <td>-</td>- <td>- <a- href="https://github.com/supabase-community/gotrue-java"- target="_blank"- rel="noopener noreferrer"- >- gotrue-java- </a>- </td>- <td>-</td>- <td>-</td>- <td>-</td>- </tr>- <tr>- <td>Kotlin</td>- <td>-</td>- <td>- <a- href="https://github.com/supabase-community/postgrest-kt"- target="_blank"- rel="noopener noreferrer"- >- postgrest-kt- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/gotrue-kt"- target="_blank"- rel="noopener noreferrer"- >- gotrue-kt- </a>- </td>- <td>-</td>- <td>-</td>- <td>-</td>- </tr>- <tr>- <td>Python</td>- <td>- <a- href="https://github.com/supabase-community/supabase-py"- target="_blank"- rel="noopener noreferrer"- >- supabase-py- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/postgrest-py"- target="_blank"- rel="noopener noreferrer"- >- postgrest-py- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/gotrue-py"- target="_blank"- rel="noopener noreferrer"- >- gotrue-py- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/realtime-py"- target="_blank"- rel="noopener noreferrer"- >- realtime-py- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/storage-py"- target="_blank"- rel="noopener noreferrer"- >- storage-py- </a>- </td>- <td>-</td>- </tr>- <tr>- <td>Ruby</td>- <td>- <a- href="https://github.com/supabase-community/supabase-rb"- target="_blank"- rel="noopener noreferrer"- >- supabase-rb- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/postgrest-rb"- target="_blank"- rel="noopener noreferrer"- >- postgrest-rb- </a>- </td>- <td>-</td>- <td>-</td>- <td>-</td>- <td>-</td>- </tr>- <tr>- <td>Rust</td>- <td>-</td>- <td>- <a- href="https://github.com/supabase-community/postgrest-rs"- target="_blank"- rel="noopener noreferrer"- >- postgrest-rs- </a>- </td>- <td>-</td>- <td>-</td>- <td>-</td>- <td>-</td>- </tr>- <tr>- <td>Swift</td>- <td>- <a- href="https://github.com/supabase-community/supabase-swift"- target="_blank"- rel="noopener noreferrer"- >- supabase-swift- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/postgrest-swift"- target="_blank"- rel="noopener noreferrer"- >- postgrest-swift- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/gotrue-swift"- target="_blank"- rel="noopener noreferrer"- >- gotrue-swift- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/realtime-swift"- target="_blank"- rel="noopener noreferrer"- >- realtime-swift- </a>- </td>- <td>- <a- href="https://github.com/supabase-community/storage-swift"- target="_blank"- rel="noopener noreferrer"- >- storage-swift- </a>- </td>- <td>-</td>- </tr>-</table>+Guides here\ No newline at end of filediff --git a/apps/reference/docs/reference.md b/apps/reference/docs/reference.mdnew file mode 100644index 00000000000..2a58264af54--- /dev/null+++ b/apps/reference/docs/reference.md@@ -0,0 +1,465 @@+---+id: reference+sidebar_label: About+---++# Reference Documentation++This section of the docs provides technical descriptions of the products and how to use them.++## Modularity++Supabase is modular. While it may seem like a single tool, it is actually a suite of tools that are composed on top of a PostgreSQL database. This offers several advantages:++- Each tool scales independently.+- Each tool can be self-hosted.+- Developers can disable tools which are not required.+- Each tool is focused on a single task to minimize complexity.++This is a similar approach to any Enterprise-grade system with an additional focus on modularity: while some companies might cut-corners, Supabase makes modularity a priority.++## Architecture++- `Database`+ - [PostgreSQL](https://www.postgresql.org/) is an object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.+ - Coonection Pooling: [PgBouncer](https://www.pgbouncer.org/) is a lightweight connection pooler for PostgreSQL.+ - [postgres-meta](https://github.com/supabase/postgres-meta) is a RESTful API for managing your Postgres, allowing you to fetch tables, add roles, and run queries, etc.+- `Auth`+ - Authentication: [GoTrue](https://github.com/supabase/gotrue) is an SWT based API for managing users and issuing SWT tokens.+ - Authorization: using [PostgreSQL Row Level Security](https://supabase.com/docs/guides/auth/row-level-security).+- `APIs`+ - Websockets: [Realtime](https://github.com/supabase/realtime) is an Elixir server that allows you to listen to PostgreSQL inserts, updates, and deletes using websockets. Realtime polls Postgres' built-in replication functionality for database changes, converts changes to JSON, then broadcasts the JSON over websockets to authorized clients.+ - REST: [PostgREST](http://postgrest.org/) is a web server that turns your PostgreSQL database directly into a RESTful API+ - GraphQL: [pg_graphql](https://github.com/supabase/pg_graphql) adds GraphQL support to your PostgreSQL database.+ - Edge Functions: [Deno](https://deno.land/) is a modern and secure runtime for JavaScript, TypeScript, and WebAssembly.+ - Reverse Proxy: [Kong](https://github.com/Kong/kong) is a cloud-native API gateway.+- `File Storage`+ - [Storage](https://github.com/supabase/storage-api) provides a RESTful interface for managing Files stored in S3, using Postgres to manage permissions.++## Open source++Each part of the Supabase ecosystem is open source. Wherever possible, we support existing tools rather than developing from scratch.++We choose tools which are [OSI Compliant](https://opensource.org/licenses), with a strong bias towards MIT, Apache 2.0, and PostgreSQL licenses.+Everything we open source is licensed with one of these 3 licenses:++- MIT for client libraries+- Apache 2.0 for API servers+- PostgreSQL for any Postgres-related tooling++## Client Libraries++Supabase provides client libraries for building your products. Our approach for client libraries is modular. Each sub-library is a standalone implementation for a single system.++For example, our `supabase-js` library is a wrapper around five smaller libraries:++- `postgrest-js` (REST API)+- `gotrue-js` (Authentication)+- `storage-js` (File Storage)+- `realtime-js` (Websockets)+- `functions-js` (Edge Functions)++## Community++Supabase officially supports the Javascript libraries, and all other libraries are community-maintained. This is one way that we try to support and foster an open source ecosystem.++<table style={{ tableLayout: 'fixed', whiteSpace: 'nowrap' }}>+ <tr>+ <th colspan="2" style={{textAlign: 'right'}}>Supabase Tool:</th>+ <th>+ <a href="https://github.com/postgrest/postgrest" target="_blank" rel="noopener noreferrer">+ PostgREST+ </a>+ </th>+ <th>+ <a href="https://github.com/supabase/gotrue" target="_blank" rel="noopener noreferrer">+ GoTrue+ </a>+ </th>+ <th>+ <a href="https://github.com/supabase/realtime" target="_blank" rel="noopener noreferrer">+ Realtime+ </a>+ </th>+ <th>+ <a href="https://github.com/supabase/storage-api" target="_blank" rel="noopener noreferrer">+ Storage+ </a>+ </th>+ <th>+ <a+ href="https://github.com/supabase/functions"+ target="_blank"+ rel="noopener noreferrer"+ >+ Edge Functions+ </a>+ </th>+ </tr>+ <th colspan="7"></th>+ <tr>+ <td>JavaScript (TypeScript)</td>+ <td>+ <a href="https://github.com/supabase/supabase-js" target="_blank" rel="noopener noreferrer">+ supabase-js+ </a>+ </td>+ <td>+ <a href="https://github.com/supabase/postgrest-js" target="_blank" rel="noopener noreferrer">+ postgrest-js+ </a>+ </td>+ <td>+ <a href="https://github.com/supabase/gotrue-js" target="_blank" rel="noopener noreferrer">+ gotrue-js+ </a>+ </td>+ <td>+ <a href="https://github.com/supabase/realtime-js" target="_blank" rel="noopener noreferrer">+ realtime-js+ </a>+ </td>+ <td>+ <a href="https://github.com/supabase/storage-js" target="_blank" rel="noopener noreferrer">+ storage-js+ </a>+ </td>+ <td>+ <a href="https://github.com/supabase/functions-js" target="_blank" rel="noopener noreferrer">+ functions-js+ </a>+ </td>+ </tr>+ <tr>+ <td>Dart</td>+ <td>+ <a+ href="https://github.com/supabase-community/supabase-dart"+ target="_blank"+ rel="noopener noreferrer"+ >+ supabase-dart+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/postgrest-dart"+ target="_blank"+ rel="noopener noreferrer"+ >+ postgrest-dart+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/gotrue-dart"+ target="_blank"+ rel="noopener noreferrer"+ >+ gotrue-dart+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/realtime-dart"+ target="_blank"+ rel="noopener noreferrer"+ >+ realtime-dart+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/storage-dart"+ target="_blank"+ rel="noopener noreferrer"+ >+ storage-dart+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/functions-dart"+ target="_blank"+ rel="noopener noreferrer"+ >+ functions-dart+ </a>+ </td>+ </tr>+ <tr>+ <td>Flutter</td>+ <td>+ <a+ href="https://github.com/supabase-community/supabase-flutter"+ target="_blank"+ rel="noopener noreferrer"+ >+ supabase-flutter+ </a>+ </td>+ <td>-</td>+ <td>-</td>+ <td>-</td>+ <td>-</td>+ <td>-</td>+ </tr>+ <th colspan="7">Community</th>++ <tr>+ <td>C#</td>+ <td>+ <a+ href="https://github.com/supabase-community/supabase-csharp"+ target="_blank"+ rel="noopener noreferrer"+ >+ supabase-csharp+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/postgrest-csharp"+ target="_blank"+ rel="noopener noreferrer"+ >+ postgrest-csharp+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/gotrue-csharp"+ target="_blank"+ rel="noopener noreferrer"+ >+ gotrue-csharp+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/realtime-csharp"+ target="_blank"+ rel="noopener noreferrer"+ >+ realtime-csharp+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/storage-csharp"+ target="_blank"+ rel="noopener noreferrer"+ >+ storage-csharp+ </a>+ </td>+ <td>-</td>+ </tr>+ <tr>+ <td>Go</td>+ <td>-</td>+ <td>+ <a+ href="https://github.com/supabase-community/postgrest-go"+ target="_blank"+ rel="noopener noreferrer"+ >+ postgrest-go+ </a>+ </td>+ <td>-</td>+ <td>-</td>+ <td>+ <a+ href="https://github.com/supabase-community/storage-go"+ target="_blank"+ rel="noopener noreferrer"+ >+ storage-go+ </a>+ </td>+ <td>-</td>+ </tr>+ <tr>+ <td>Java</td>+ <td>-</td>+ <td>-</td>+ <td>+ <a+ href="https://github.com/supabase-community/gotrue-java"+ target="_blank"+ rel="noopener noreferrer"+ >+ gotrue-java+ </a>+ </td>+ <td>-</td>+ <td>-</td>+ <td>-</td>+ </tr>+ <tr>+ <td>Kotlin</td>+ <td>-</td>+ <td>+ <a+ href="https://github.com/supabase-community/postgrest-kt"+ target="_blank"+ rel="noopener noreferrer"+ >+ postgrest-kt+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/gotrue-kt"+ target="_blank"+ rel="noopener noreferrer"+ >+ gotrue-kt+ </a>+ </td>+ <td>-</td>+ <td>-</td>+ <td>-</td>+ </tr>+ <tr>+ <td>Python</td>+ <td>+ <a+ href="https://github.com/supabase-community/supabase-py"+ target="_blank"+ rel="noopener noreferrer"+ >+ supabase-py+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/postgrest-py"+ target="_blank"+ rel="noopener noreferrer"+ >+ postgrest-py+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/gotrue-py"+ target="_blank"+ rel="noopener noreferrer"+ >+ gotrue-py+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/realtime-py"+ target="_blank"+ rel="noopener noreferrer"+ >+ realtime-py+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/storage-py"+ target="_blank"+ rel="noopener noreferrer"+ >+ storage-py+ </a>+ </td>+ <td>-</td>+ </tr>+ <tr>+ <td>Ruby</td>+ <td>+ <a+ href="https://github.com/supabase-community/supabase-rb"+ target="_blank"+ rel="noopener noreferrer"+ >+ supabase-rb+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/postgrest-rb"+ target="_blank"+ rel="noopener noreferrer"+ >+ postgrest-rb+ </a>+ </td>+ <td>-</td>+ <td>-</td>+ <td>-</td>+ <td>-</td>+ </tr>+ <tr>+ <td>Rust</td>+ <td>-</td>+ <td>+ <a+ href="https://github.com/supabase-community/postgrest-rs"+ target="_blank"+ rel="noopener noreferrer"+ >+ postgrest-rs+ </a>+ </td>+ <td>-</td>+ <td>-</td>+ <td>-</td>+ <td>-</td>+ </tr>+ <tr>+ <td>Swift</td>+ <td>+ <a+ href="https://github.com/supabase-community/supabase-swift"+ target="_blank"+ rel="noopener noreferrer"+ >+ supabase-swift+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/postgrest-swift"+ target="_blank"+ rel="noopener noreferrer"+ >+ postgrest-swift+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/gotrue-swift"+ target="_blank"+ rel="noopener noreferrer"+ >+ gotrue-swift+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/realtime-swift"+ target="_blank"+ rel="noopener noreferrer"+ >+ realtime-swift+ </a>+ </td>+ <td>+ <a+ href="https://github.com/supabase-community/storage-swift"+ target="_blank"+ rel="noopener noreferrer"+ >+ storage-swift+ </a>+ </td>+ <td>-</td>+ </tr>+</table>diff --git a/apps/reference/docusaurus.config.js b/apps/reference/docusaurus.config.jsindex 082383b3be9..ae2debdee70 100644--- a/apps/reference/docusaurus.config.js+++ b/apps/reference/docusaurus.config.js@@ -7,14 +7,14 @@ const mainNavbar = require('./nav/_referenceNavbar')/** @type {import('@docusaurus/types').Config} */const config = {- title: 'Supabase Tools',- tagline: 'Documentation for the Supabase Ecosystem',- url: 'https://supabase.tools',- baseUrl: '/',+ title: 'Supabase',+ tagline: 'The open source Firebase alternative.',+ url: 'https://supabase.com',+ baseUrl: '/docs/',onBrokenLinks: 'ignore', // TODO: remove this when going into prod// onBrokenLinks: 'throw',onBrokenMarkdownLinks: 'warn',- favicon: 'img/favicon.ico',+ favicon: '/favicon.ico',// GitHub pages deployment config.// If you aren't using GitHub pages, you don't need these.@@ -123,11 +123,11 @@ const config = {/** @type {import('@docusaurus/preset-classic').ThemeConfig} */({navbar: {- // title: 'Supabase Tools',+ // title: 'Supabase Docs',logo: {- alt: 'Supabase Tools',- src: 'img/supabase-logo-wordmark--light.svg',- srcDark: 'img/supabase-logo-wordmark--dark.svg',+ alt: 'Supabase Docs',+ src: '/img/supabase-logo-wordmark--light.svg',+ srcDark: '/img/supabase-logo-wordmark--dark.svg',},items: mainNavbar.navbar,},diff --git a/apps/reference/nav/_referenceNavbar.js b/apps/reference/nav/_referenceNavbar.jsindex 2cad0a73f75..641f0f40482 100644--- a/apps/reference/nav/_referenceNavbar.js+++ b/apps/reference/nav/_referenceNavbar.js@@ -1,14 +1,16 @@const navbar = [{- href: 'https://supabase.com/docs/guides',+ to: '/',label: 'Guides',+ activeBaseRegex:+ '.*.docs/$|^/docs/architecture|(^/docs/guides/(database|auth|storage|api|examples!))|(^/docs/guides/(examples|with-angular|with-flutter|with-nextjs|with-nuxt-3|with-react|with-redwoodjs|with-svelte|with-vue-3)|^/docs/faq|^/docs/going-into-prod|^/docs/handbook|^/docs/company)',position: 'left',},{- href: '/',+ to: '/reference',label: 'Reference',position: 'left',- // activeLinkRegex: '',+ activeBaseRegex: '^/docs/reference$|^/docs/reference/$', // exactly match "/docs/reference/" only},{ href: 'https://app.supabase.com', label: 'Login', position: 'right' },@@ -34,10 +36,10 @@ const navbar = [// API{- to: 'api',+ to: 'reference/api',position: 'left',label: 'API',- supabaseCustomNavBarRegex: '(^/api$|api/)',+ supabaseCustomNavBarRegex: '(^/docs/reference/api$|docs/reference/api/)',},// {// type: 'docsVersionDropdown',@@ -48,10 +50,10 @@ const navbar = [// CLI{- to: 'cli',+ to: 'reference/cli',position: 'left',label: 'CLI',- supabaseCustomNavBarRegex: '(^/cli$|cli/)',+ supabaseCustomNavBarRegex: '(^/docs/reference/cli$|docs/reference/cli/)',},// {// type: 'docsVersionDropdown',@@ -62,16 +64,18 @@ const navbar = [// supabase-js{- to: 'supabase-js',+ to: 'reference/javascript',position: 'left',label: 'JavaScript Library',- supabaseCustomNavBarRegex: '(^/supabase-js$|supabase-js/)',+ supabaseCustomNavBarRegex:+ '(^/docs/reference/javascript$|docs/reference/javascript/)',},{type: 'docsVersionDropdown',position: 'left',docsPluginId: '_supabase_js',- supabaseCustomNavBarRegex: '(^/supabase-js$|supabase-js/)',+ supabaseCustomNavBarRegex:+ '(^/docs/reference/javascript$|docs/reference/javascript/)',},/**@@ -80,10 +84,10 @@ const navbar = [// GoTrue{- to: 'auth',+ to: 'reference/auth',position: 'left',label: 'Auth Server',- supabaseCustomNavBarRegex: '(^/auth$|auth/)',+ supabaseCustomNavBarRegex: '(^/docs/reference/auth$|docs/reference/auth/)',},// {// type: 'docsVersionDropdown',@@ -94,10 +98,11 @@ const navbar = [// Storage{- to: 'storage',+ to: 'reference/storage',position: 'left',label: 'Storage Server',- supabaseCustomNavBarRegex: '(^/storage$|storage/)',+ supabaseCustomNavBarRegex:+ '(^/docs/reference/storage$|docs/reference/storage/)',},// {// type: 'docsVersionDropdown',@@ -110,10 +115,10 @@ const navbar = [* COMMUNITY*/{- to: 'supabase-dart',+ to: 'reference/supabase-dart',position: 'left',label: 'Dart Library',- supabaseCustomNavBarRegex: '(^/supabase-dart$|supabase-dart/)',+ supabaseCustomNavBarRegex: '(^/docs/reference/dart$|docs/reference/dart/)',},// {// type: 'docsVersionDropdown',@@ -123,10 +128,11 @@ const navbar = [// },{- to: 'auth-helpers',+ to: 'reference/auth-helpers',position: 'left',label: 'Auth Helpers',- supabaseCustomNavBarRegex: '(^/auth-helpers$|auth-helpers/)',+ supabaseCustomNavBarRegex:+ '(^/docs/reference/auth-helpers$|docs/reference/auth-helpers/)',},// {// type: 'docsVersionDropdown',diff --git a/apps/reference/nav/_referenceSidebars.js b/apps/reference/nav/_referenceSidebars.jsindex fbcb2842f2d..aad2202596d 100644--- a/apps/reference/nav/_referenceSidebars.js+++ b/apps/reference/nav/_referenceSidebars.js@@ -1,23 +1,17 @@-/**- * Creating a sidebar enables you to:- - create an ordered group of docs- - render a sidebar for each doc of that group- - provide next/previous navigation-- The sidebars can be generated from the filesystem, or explicitly defined here.-- Create as many sidebars as you want.- */--// @ts-check--/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */const sidebars = {- mainSidebar: [+ guides: [+ {+ type: 'category',+ label: 'Overview',+ items: ['about'],+ collapsed: true,+ },+ ],+ reference: [{type: 'category',label: 'Reference',- link: { type: 'doc', id: 'about' },+ link: { type: 'doc', id: 'reference' },collapsed: false,items: [{ type: 'link', label: 'Supabase CLI', href: '/reference/cli' },diff --git a/apps/reference/package.json b/apps/reference/package.jsonindex 4556cb85585..b881616e27a 100644--- a/apps/reference/package.json+++ b/apps/reference/package.json@@ -7,7 +7,7 @@"start": "npm run docusaurus","docusaurus": "docusaurus start --port 3010","swizzle": "docusaurus swizzle",- "build": "docusaurus build",+ "build": "docusaurus build --out-dir build/docs","deploy": "docusaurus deploy","clear": "docusaurus clear","serve": "docusaurus serve",diff --git a/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js b/apps/reference/src/theme/DocSidebar/Desktop/Content/index.jsindex 70ab3cfbfe5..e96cc390bf8 100644--- a/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js+++ b/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js@@ -5,12 +5,12 @@ import Link from '@docusaurus/Link'const subNavRoutes = [// Add any routes which should have a subnav- '/reference/api',- '/reference/cli',- '/reference/auth',- '/reference/storage',- '/reference/javascript',- '/reference/dart',+ '/docs/reference/api',+ '/docs/reference/cli',+ '/docs/reference/auth',+ '/docs/reference/storage',+ '/docs/reference/javascript',+ '/docs/reference/dart',]const requiresSubNav = (pathname, routes) => {@@ -23,7 +23,7 @@ export default function ContentWrapper(props) {return (<>{pathname && requiresSubNav(pathname, subNavRoutes) && (- <Link to="/" id="custom--main-menu-button">+ <Link to="/docs/reference" id="custom--main-menu-button"><svgwidth="24"height="24"