From 503f3da118f1c7e1d1cb02346c87c2276c40b7bd Mon Sep 17 00:00:00 2001 From: Inian Date: Sat, 13 Aug 2022 12:52:41 +0800 Subject: [PATCH 1/2] fix links in new docs use baseUrl when possible --- apps/reference/docs/about.mdx | 69 ++++++++++++++++++++++++++--------- 1 file changed, 52 insertions(+), 17 deletions(-) diff --git a/apps/reference/docs/about.mdx b/apps/reference/docs/about.mdx index 13ed94d8911..38ba6b3b8df 100755 --- a/apps/reference/docs/about.mdx +++ b/apps/reference/docs/about.mdx @@ -27,14 +27,14 @@ const frameworks = [ { name: 'Angular', logo: AngularLogo, - href: '/docs/guides/with-angular', + href: '/guides/with-angular', }, { name: 'Expo', logo: ExpoLogo, href: 'https://github.com/supabase/supabase/tree/master/examples/todo-list/expo-todo-list', }, - { name: 'Flutter', logo: DartLogo, href: '/docs/guides/with-flutter' }, + { name: 'Flutter', logo: DartLogo, href: '/guides/with-flutter' }, { name: 'JavaScript', logo: JavascriptLogo, @@ -47,13 +47,17 @@ const frameworks = [ dark: '/img/libraries/nextjs-dark-icon.svg', light: '/img/libraries/nextjs-light-icon.svg', }, - href: '/docs/guides/with-nextjs', + href: '/guides/with-nextjs', }, - { name: 'React', logo: ReactLogo, href: '/docs/guides/with-react' }, - { name: 'RedwoodJS', logo: RedwoodJsLogo, href: '/docs/guides/with-redwoodjs' }, - { name: 'SolidJS', logo: SolidJSLogo, href: '/docs/guides/with-solidjs' }, - { name: 'Svelte', logo: SvelteLogo, href: '/docs/guides/with-svelte' }, - { name: 'Vue', logo: VuejsLogo, href: '/docs/guides/with-vue-3' }, + { name: 'React', logo: ReactLogo, href: '/guides/with-react' }, + { + name: 'RedwoodJS', + logo: RedwoodJsLogo, + href: '/guides/with-redwoodjs', + }, + { name: 'SolidJS', logo: SolidJSLogo, href: '/guides/with-solidjs' }, + { name: 'Svelte', logo: SvelteLogo, href: '/guides/with-svelte' }, + { name: 'Vue', logo: VuejsLogo, href: '/guides/with-vue-3' }, ] Supabase is an open source Firebase alternative providing all the backend features you need to build a product. @@ -67,7 +71,11 @@ You can use it completely, or just the features you need.
{/* Database */}
- +

Database

A dedicated, scalable Postgres database.

@@ -76,7 +84,11 @@ You can use it completely, or just the features you need.
{/* API */}
- +

Auto-generated APIs

Instantly generate APIs for your database.

@@ -85,7 +97,11 @@ You can use it completely, or just the features you need.
{/* Functions */}
- +

Edge Functions

Server-side functions, distributed globally.

@@ -94,7 +110,11 @@ You can use it completely, or just the features you need.
{/* Auth */}
- +

Auth

User management with Row Level Security.

@@ -103,7 +123,11 @@ You can use it completely, or just the features you need.
{/* Storage */}
- +

File Storage

Store, organize, and serve large files.

@@ -112,7 +136,11 @@ You can use it completely, or just the features you need.
{/* Observability */}
- +

Observability

Monitor and debug your infrastucture.

@@ -131,10 +159,17 @@ Supabase is just Postgres, which makes it compatible with a large number of tool
{frameworks.map((x) => (
- -
+ +
{x.logo && !x.themed ? ( - + ) : ( Date: Sat, 13 Aug 2022 13:24:34 +0800 Subject: [PATCH 2/2] fix links in auth page --- apps/reference/docs/guides/auth/intro.mdx | 50 ++++++++++++++++------- apps/reference/src/data/authProviders.js | 38 ++++++++--------- 2 files changed, 54 insertions(+), 34 deletions(-) diff --git a/apps/reference/docs/guides/auth/intro.mdx b/apps/reference/docs/guides/auth/intro.mdx index 104a5359024..b8eb573829f 100644 --- a/apps/reference/docs/guides/auth/intro.mdx +++ b/apps/reference/docs/guides/auth/intro.mdx @@ -7,12 +7,13 @@ description: Use Supabase to Authenticate and Authorize your users. --- import Link from '@docusaurus/Link' +import useBaseUrl from '@docusaurus/useBaseUrl' import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem' import providers from '@site/src/data/authProviders'