mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
consistency: clean up all links
This commit is contained in:
1 parent
68cab9a7c9
commit
f80e5c796a
19 files changed
+48
-224
No files matched your search
@@ -1,7 +1,7 @@
|
||||
---
|
||||
slug: /
|
||||
sidebar_position: 1
|
||||
sidebar_label: Introduction
|
||||
sidebar_label: Supabase API
|
||||
---
|
||||
|
||||
# Supabase API
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
id: intro
|
||||
slug: /
|
||||
sidebar_position: 1
|
||||
sidebar_label: Introduction
|
||||
sidebar_label: Supabase CLI
|
||||
---
|
||||
|
||||
# Supabase CLI
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
id: intro
|
||||
slug: /
|
||||
sidebar_label: Introduction
|
||||
sidebar_label: Supabase Dart Library
|
||||
---
|
||||
|
||||
# Supabase Dart
|
||||
# Supabase Dart Library
|
||||
|
||||
Dart libraries are built and supported by the community.
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
---
|
||||
id: intro
|
||||
slug: /
|
||||
sidebar_label: Introduction
|
||||
---
|
||||
|
||||
# Supabase Dart
|
||||
|
||||
Dart libraries are built and supported by the community.
|
||||
|
||||
```bash
|
||||
dart pub add supabase
|
||||
```
|
||||
|
||||
Find the source code on [GitHub](https://github.com/supabase/supabase-dart).
|
||||
|
||||
## Flutter
|
||||
|
||||
For Flutter project, you can use [supabase_flutter](https://github.com/supabase/supabase-flutter).
|
||||
|
||||
```bash
|
||||
flutter pub add supabase_flutter
|
||||
```
|
||||
|
||||
`supabase_flutter` plugin uses `supabase` plugin internally, and it adds some Flutter specific functionality such as handling deeplinks coming back from magic link verifications.
|
||||
If you are creating a Flutter application, we recommend using `supabase_flutter` instead of `supabase`.
|
||||
|
||||
For the most part `supabase_flutter` shares the same API as `supabase` with few exceptions such as initialization or OAuth sign in.
|
||||
@@ -1,7 +0,0 @@
|
||||
---
|
||||
id: release-notes
|
||||
---
|
||||
|
||||
# Release Notes
|
||||
|
||||
Start your release notes here.
|
||||
@@ -1,115 +0,0 @@
|
||||
---
|
||||
id: usage
|
||||
title: Usage
|
||||
---
|
||||
|
||||
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
|
||||
|
||||
|
||||
Supabase Dart.
|
||||
|
||||
|
||||
|
||||
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
|
||||
|
||||
|
||||
|
||||
|
||||
## Initializing the client library
|
||||
|
||||
```dart
|
||||
final supabase = SupabaseClient('<SUPABASE_URL>', '<SUPABASE_ANON_KEY>');
|
||||
```
|
||||
|
||||
|
||||
### Attributes
|
||||
|
||||
|
||||
|
||||
|
||||
### Notes
|
||||
|
||||
## Dart
|
||||
You can initialize a new Supabase client using the `SupabaseClient()` method.
|
||||
|
||||
The Supabase client is your entrypoint to the rest of the Supabase functionality
|
||||
and is the easiest way to interact with everything we offer within the Supabase ecosystem.
|
||||
|
||||
|
||||
## Flutter
|
||||
|
||||
For `supabase_flutter`, you will be using the static `initialize()` method on `Supabase` class.
|
||||
|
||||
|
||||
### Examples
|
||||
|
||||
|
||||
|
||||
####
|
||||
|
||||
```dart
|
||||
final supabase = SupabaseClient('https://xyzcompany.supabase.co', 'public-anon-key');
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
####
|
||||
|
||||
```dart title="main.dart"
|
||||
Future<void> main() async {
|
||||
await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key');
|
||||
runApp(MyApp());
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## Create a new user.
|
||||
|
||||
```dart
|
||||
final res = await supabase.auth.signUp('<USER_EMAIL>', '<USER_PASSWORD>');
|
||||
```
|
||||
|
||||
|
||||
### Attributes
|
||||
|
||||
|
||||
|
||||
|
||||
### Notes
|
||||
|
||||
- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
|
||||
- If "Email Confirmations" is turned on, a user is returned but session will be null
|
||||
- If "Email Confirmations" is turned off, both a `user` and a `session` will be returned
|
||||
- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
|
||||
|
||||
|
||||
### Examples
|
||||
|
||||
|
||||
|
||||
#### Sign up.
|
||||
|
||||
```dart
|
||||
final res = await supabase.auth.signUp('example@email.com', 'example-password');
|
||||
|
||||
final user = res.data?.user;
|
||||
final error = res.error;
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
#### Sign up with third-party providers.
|
||||
|
||||
```dart
|
||||
// Use signInWithProvider()
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"goTrueSidebar": ["intro", "usage", "release-notes"]
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
["1.0"]
|
||||
[]
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
slug: /
|
||||
sidebar_position: 1
|
||||
sidebar_label: Introduction
|
||||
sidebar_label: Supabase JavaScript Library
|
||||
---
|
||||
|
||||
# Supabase JavaScript Client
|
||||
# Supabase JavaScript Library
|
||||
|
||||
Some docs
|
||||
@@ -53,7 +53,7 @@ const config = {
|
||||
{
|
||||
id: '_gotrue',
|
||||
path: '_gotrue',
|
||||
routeBasePath: 'gotrue',
|
||||
routeBasePath: 'auth',
|
||||
sidebarPath: require.resolve('./nav/gotrue_sidebars.js'),
|
||||
breadcrumbs: false,
|
||||
},
|
||||
|
||||
@@ -79,31 +79,31 @@ const navbar = [
|
||||
|
||||
// GoTrue
|
||||
{
|
||||
to: 'gotrue',
|
||||
to: 'auth',
|
||||
position: 'left',
|
||||
label: 'GoTrue Auth Server',
|
||||
supabaseCustomNavBarRegex: '(^/gotrue$|gotrue/)',
|
||||
},
|
||||
{
|
||||
type: 'docsVersionDropdown',
|
||||
position: 'left',
|
||||
docsPluginId: '_gotrue',
|
||||
supabaseCustomNavBarRegex: '(^/gotrue$|gotrue/)',
|
||||
label: 'Auth Server',
|
||||
supabaseCustomNavBarRegex: '(^/auth$|auth/)',
|
||||
},
|
||||
// {
|
||||
// type: 'docsVersionDropdown',
|
||||
// position: 'left',
|
||||
// docsPluginId: '_gotrue',
|
||||
// supabaseCustomNavBarRegex: '(^/gotrue$|gotrue/)',
|
||||
// },
|
||||
|
||||
// Storage
|
||||
{
|
||||
to: 'storage',
|
||||
position: 'left',
|
||||
label: 'GoTrue Auth Server',
|
||||
supabaseCustomNavBarRegex: '(^/storage$|storage/)',
|
||||
},
|
||||
{
|
||||
type: 'docsVersionDropdown',
|
||||
position: 'left',
|
||||
docsPluginId: '_storage',
|
||||
label: 'Storage Server',
|
||||
supabaseCustomNavBarRegex: '(^/storage$|storage/)',
|
||||
},
|
||||
// {
|
||||
// type: 'docsVersionDropdown',
|
||||
// position: 'left',
|
||||
// docsPluginId: '_storage',
|
||||
// supabaseCustomNavBarRegex: '(^/storage$|storage/)',
|
||||
// },
|
||||
|
||||
/**
|
||||
* COMMUNITY
|
||||
@@ -114,12 +114,12 @@ const navbar = [
|
||||
label: 'Supabase Dart SDK',
|
||||
supabaseCustomNavBarRegex: '(^/supabase-dart$|supabase-dart/)',
|
||||
},
|
||||
{
|
||||
type: 'docsVersionDropdown',
|
||||
position: 'left',
|
||||
docsPluginId: '_supabase_dart',
|
||||
supabaseCustomNavBarRegex: '(^/supabase-dart$|supabase-dart/)',
|
||||
},
|
||||
// {
|
||||
// type: 'docsVersionDropdown',
|
||||
// position: 'left',
|
||||
// docsPluginId: '_supabase_dart',
|
||||
// supabaseCustomNavBarRegex: '(^/supabase-dart$|supabase-dart/)',
|
||||
// },
|
||||
]
|
||||
|
||||
module.exports = { navbar }
|
||||
@@ -20,14 +20,18 @@ const sidebars = {
|
||||
link: { type: 'doc', id: 'about' },
|
||||
collapsed: false,
|
||||
items: [
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Supabase JavaScript Client',
|
||||
href: '/supabase-js',
|
||||
},
|
||||
{ type: 'link', label: 'Supabase CLI', href: '/cli' },
|
||||
{ type: 'link', label: 'Supabase API', href: '/api' },
|
||||
{ type: 'link', label: 'Supabase Dart Client', href: '/supabase-dart' },
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Supabase JavaScript Library',
|
||||
href: '/supabase-js',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Supabase Dart Library',
|
||||
href: '/supabase-dart',
|
||||
},
|
||||
],
|
||||
},
|
||||
// {
|
||||
@@ -41,7 +45,7 @@ const sidebars = {
|
||||
label: 'Self hosted',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ type: 'link', label: 'Auth Server', href: '/gotrue' },
|
||||
{ type: 'link', label: 'Auth Server', href: '/auth' },
|
||||
{ type: 'link', label: 'Storage Server', href: '/storage' },
|
||||
],
|
||||
},
|
||||
|
||||
@@ -16,25 +16,7 @@ const sidebars = {
|
||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||
// tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],
|
||||
|
||||
apiSidebar: [
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Supabase API',
|
||||
// collapsible: false,
|
||||
// link: {
|
||||
// type: 'doc',
|
||||
// id: 'intro',
|
||||
// },
|
||||
items: ['intro', 'usage', 'release-notes'],
|
||||
},
|
||||
// 'intro',
|
||||
|
||||
// {
|
||||
// type: "category",
|
||||
// label: "Release Notes",
|
||||
// items: ["release-notes"],
|
||||
// },
|
||||
],
|
||||
sidebar: ['intro', 'usage', 'release-notes'],
|
||||
}
|
||||
|
||||
module.exports = sidebars
|
||||
@@ -16,7 +16,7 @@ const sidebars = {
|
||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||
// tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],
|
||||
|
||||
cliSidebar: [
|
||||
sidebar: [
|
||||
'intro',
|
||||
'usage',
|
||||
'config',
|
||||
|
||||
@@ -16,7 +16,7 @@ const sidebars = {
|
||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
||||
|
||||
goTrueSidebar: [
|
||||
sidebar: [
|
||||
'intro',
|
||||
'config',
|
||||
'release-notes',
|
||||
|
||||
@@ -16,7 +16,7 @@ const sidebars = {
|
||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
||||
|
||||
storageSidebar: [
|
||||
sidebar: [
|
||||
'intro',
|
||||
'usage',
|
||||
'config',
|
||||
|
||||
@@ -16,16 +16,7 @@ const sidebars = {
|
||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
||||
|
||||
goTrueSidebar: [
|
||||
'intro',
|
||||
'usage',
|
||||
'release-notes',
|
||||
// {
|
||||
// type: "category",
|
||||
// label: "Release Notes",
|
||||
// items: ["release-notes"],
|
||||
// },
|
||||
],
|
||||
sidebar: ['intro', 'usage', 'release-notes'],
|
||||
}
|
||||
|
||||
module.exports = sidebars
|
||||
@@ -16,7 +16,7 @@ const sidebars = {
|
||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
||||
|
||||
goTrueSidebar: [
|
||||
sidebar: [
|
||||
'intro',
|
||||
'usage',
|
||||
'release-notes',
|
||||
|
||||
@@ -7,7 +7,7 @@ const subNavRoutes = [
|
||||
// Add any routes which should have a subnav
|
||||
'/api',
|
||||
'/cli',
|
||||
'/gotrue',
|
||||
'/auth',
|
||||
'/storage',
|
||||
'/supabase-js',
|
||||
'/supabase-dart',
|
||||
|
||||
Reference in new issue
Block a user