From 1f291d067bd9e40af54308bb65d2a4e56c007499 Mon Sep 17 00:00:00 2001 From: Paul Copplestone Date: Mon, 22 Mar 2021 20:42:48 +0800 Subject: [PATCH] Updates all links in blog posts and docs --- .../react-todo-list/src/components/Auth.js | 2 +- .../react-todo-list/src/components/Home.js | 2 +- examples/with-stencil/README.md | 2 +- web/blog/2020-10-30-improved-dx.md | 6 +-- .../2020-11-02-supabase-alpha-october-2020.md | 2 +- .../2021-02-27-cracking-postgres-interview.md | 2 +- .../2021-03-02-supabase-beta-february-2021.md | 2 +- web/blog/2021-03-11-using-supabase-replit.md | 4 +- web/docs/guides/auth.mdx | 3 +- web/docs/guides/client-libraries.mdx | 22 +++++----- web/spec/supabase.yml | 16 ++++---- web/static/_redirects | 41 ------------------- www/_blog/2020-10-30-improved-dx.mdx | 6 +-- ...2020-11-02-supabase-alpha-october-2020.mdx | 2 +- ...2021-02-27-cracking-postgres-interview.mdx | 2 +- ...2021-03-02-supabase-beta-february-2021.mdx | 2 +- .../2021-03-11-using-supabase-replit.mdx | 4 +- www/pages/beta.tsx | 6 +-- 18 files changed, 43 insertions(+), 83 deletions(-) delete mode 100644 web/static/_redirects diff --git a/examples/react-todo-list/src/components/Auth.js b/examples/react-todo-list/src/components/Auth.js index ed8c4262a26..8da4248dd71 100644 --- a/examples/react-todo-list/src/components/Auth.js +++ b/examples/react-todo-list/src/components/Auth.js @@ -33,7 +33,7 @@ const Auth = () => { }; const forgotPassword = async (e) => { - // Read more on https://supabase.io/docs/client/reset-password-email#notes + // Read more on https://supabase.io/docs/reference/javascript/reset-password-email#notes e.preventDefault(); const email = prompt("Please enter your email:"); diff --git a/examples/react-todo-list/src/components/Home.js b/examples/react-todo-list/src/components/Home.js index 27244b01288..b4baddc51b2 100644 --- a/examples/react-todo-list/src/components/Home.js +++ b/examples/react-todo-list/src/components/Home.js @@ -12,7 +12,7 @@ const Home = ({ user }) => { useEffect(() => { /* Recovery url is of the form * #access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery - * Read more on https://supabase.io/docs/client/reset-password-email#notes + * Read more on https://supabase.io/docs/reference/javascript/reset-password-email#notes */ let url = window.location.hash; let query = url.substr(1); diff --git a/examples/with-stencil/README.md b/examples/with-stencil/README.md index bb3c37f75d0..c5c3079cba4 100644 --- a/examples/with-stencil/README.md +++ b/examples/with-stencil/README.md @@ -42,7 +42,7 @@ const supabaseConfig = { }; ``` -You can find more about _Supabase Client_ config [on the official documentation page](https://supabase.io/docs/client/initializing). +You can find more about _Supabase Client_ config [on the official documentation page](https://supabase.io/docs/reference/javascript/initializing). To start a project, run: ```sh diff --git a/web/blog/2020-10-30-improved-dx.md b/web/blog/2020-10-30-improved-dx.md index 7fcff3aed7b..38355ec7a50 100644 --- a/web/blog/2020-10-30-improved-dx.md +++ b/web/blog/2020-10-30-improved-dx.md @@ -17,9 +17,9 @@ Today we're releasing [supabase-js](https://github.com/supabase/supabase-js) ver ### New Docs -Before digging into the improvements, we're excited to point out our new [developer docs](/docs/client/supabase-client). While they're still a work in progress, here are some things we think you'll like: +Before digging into the improvements, we're excited to point out our new [developer docs](/docs/reference/javascript/supabase-client). While they're still a work in progress, here are some things we think you'll like: -- The [Reference Docs](/docs/client/supabase-client) are auto-generated from our TypeScript definitions and then enriched with examples. This forces us to document our code and makes it easier to keep everything in sync. +- The [Reference Docs](/docs/reference/javascript/supabase-client) are auto-generated from our TypeScript definitions and then enriched with examples. This forces us to document our code and makes it easier to keep everything in sync. - We added placeholders for the other languages that the community is developing. They have already started with Python, C#, Dart, Rust, and Swift. Expect to see the docs filling up soon! - We've added sections for all of the open source tools we use, including [Postgres](/docs/postgres/server/about), [PostgREST](/docs/postgrest/server/about), [GoTrue](/docs/gotrue/server/about), and [Realtime](/docs/realtime/server/about). We'll be filling these with lots of valuable information including self-hosting, benchmarks, and simple guides. @@ -114,7 +114,7 @@ To summarise the steps: 1. Install the new version: `npm install @supabase/supabase-js@latest` 2. Update all your `body` constants to `data` -3. Update all your `supabase.auth` functions with the new [Auth interface](/docs/client/auth-signup) +3. Update all your `supabase.auth` functions with the new [Auth interface](/docs/reference/javascript/auth-signup) ### Get started diff --git a/web/blog/2020-11-02-supabase-alpha-october-2020.md b/web/blog/2020-11-02-supabase-alpha-october-2020.md index aa8a0076d17..5f6a4ebc85a 100644 --- a/web/blog/2020-11-02-supabase-alpha-october-2020.md +++ b/web/blog/2020-11-02-supabase-alpha-october-2020.md @@ -47,7 +47,7 @@ One of the most requested Auth features was the ability to send magic links that ### Kaizen -- We have new and improved [docs](https://supabase.io/docs/client/supabase-client). +- We have new and improved [docs](https://supabase.io/docs/reference/javascript/supabase-client). - We converted [realtime-js](https://github.com/supabase/realtime-js/) to TypeScript. - Dashboard Performance: we heavily optimised our dashboard routes. - With the help of the community, we [closed a lot of issues](https://github.com/orgs/supabase/projects/5) during Hacktoberfest. diff --git a/web/blog/2021-02-27-cracking-postgres-interview.md b/web/blog/2021-02-27-cracking-postgres-interview.md index c507c8c3d9d..44431780850 100644 --- a/web/blog/2021-02-27-cracking-postgres-interview.md +++ b/web/blog/2021-02-27-cracking-postgres-interview.md @@ -108,7 +108,7 @@ CREATE POLICY "Individuals can only write their own messages." ON messages FOR ### Know how to do business logic on SQL/[PLPGSQL](https://www.postgresql.org/docs/current/plpgsql-overview.html#PLPGSQL-ADVANTAGES) -PL/pgSQL is a procedural programming language that can be used to write functions inside of your database. It can be useful for making [remote procedure calls](https://supabase.io/docs/client/rpc) from an API. You can go as deep as you want here, since it's an entire programming language, but understanding the basics will really go a long way, and give you super powers when working with your data. +PL/pgSQL is a procedural programming language that can be used to write functions inside of your database. It can be useful for making [remote procedure calls](https://supabase.io/docs/reference/javascript/rpc) from an API. You can go as deep as you want here, since it's an entire programming language, but understanding the basics will really go a long way, and give you super powers when working with your data. You can use FUNCTIONs in combination with TRIGGERs to do cool stuff like have auto-updating `updated_at` columns on your data: diff --git a/web/blog/2021-03-02-supabase-beta-february-2021.md b/web/blog/2021-03-02-supabase-beta-february-2021.md index ec4af3b056f..83f906d7184 100644 --- a/web/blog/2021-03-02-supabase-beta-february-2021.md +++ b/web/blog/2021-03-02-supabase-beta-february-2021.md @@ -39,7 +39,7 @@ Writing SQL just got 10x easier. We added autocomplete to the SQL editor, includ ### Auth Redirects -Redirect your users to specific route within your site on [`signIn()`](https://supabase.io/docs/client/auth-signin#sign-in-with-redirect) and [`signUp()`](https://supabase.io/docs/client/auth-signup#sign-up-with-redirect). +Redirect your users to specific route within your site on [`signIn()`](https://supabase.io/docs/reference/javascript/auth-signin#sign-in-with-redirect) and [`signUp()`](https://supabase.io/docs/reference/javascript/auth-signup#sign-up-with-redirect). ![Redirect your users after sign up](/img/blog/feb/auth-redirect.png) diff --git a/web/blog/2021-03-11-using-supabase-replit.md b/web/blog/2021-03-11-using-supabase-replit.md index 55bba8ee526..c21a3407d0c 100644 --- a/web/blog/2021-03-11-using-supabase-replit.md +++ b/web/blog/2021-03-11-using-supabase-replit.md @@ -89,7 +89,7 @@ const main = async() => { main() ``` -Once this is working, if you want to learn more about the [query interface](https://supabase.io/docs/client/filter) you might want to try some of these challenges: +Once this is working, if you want to learn more about the [query interface](https://supabase.io/docs/reference/javascript/filter) you might want to try some of these challenges: ``` 1. List all the countries in Antarctica @@ -126,7 +126,7 @@ const { data, error } = await supabase .select('name, country_id') .neq('name', 'The shire') -// full docs here: https://supabase.io/docs/client/filter +// full docs here: https://supabase.io/docs/reference/javascript/filter ``` We look forward to showing off some more Supabase + Replit examples. diff --git a/web/docs/guides/auth.mdx b/web/docs/guides/auth.mdx index 9c7017f8053..6dcf73a89ef 100644 --- a/web/docs/guides/auth.mdx +++ b/web/docs/guides/auth.mdx @@ -14,7 +14,8 @@ Supabase makes it simple to manage your users. When a user signs up, Supabase assigns them a unique ID. You can reference this ID anywhere in your database. For example, you might create a `profiles` table referencing the user using a `user_id` field. -Supabase provides the routes to [sign up](/docs/client/auth-signup), [log in](/docs/client/auth-signin), [log out](/docs/client/auth-signout), and manage users in your apps and websites. +Supabase provides the routes to [sign up](/docs/reference/javascript/auth-signup), [log in](/docs/reference/javascript/auth-signin), +[log out](/docs/reference/javascript/auth-signout), and manage users in your apps and websites. ### Third Party Logins diff --git a/web/docs/guides/client-libraries.mdx b/web/docs/guides/client-libraries.mdx index 00b40bcd37d..f028b1f5e32 100755 --- a/web/docs/guides/client-libraries.mdx +++ b/web/docs/guides/client-libraries.mdx @@ -9,12 +9,12 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -The [Supabase Client](/docs/client/supabase-client) makes it simple for developers to build secure and scalable products. +The [Supabase Client](/docs/reference/javascript/supabase-client) makes it simple for developers to build secure and scalable products. ## Auth -Create new users using [`signUp()`](/docs/client/auth-signup). +Create new users using [`signUp()`](/docs/reference/javascript/auth-signup). -If there is an email, but no password passed to [`signIn()`](/docs/client/auth-signin), the user will receive a magic link. +If there is an email, but no password passed to [`signIn()`](/docs/reference/javascript/auth-signin), the user will receive a magic link. -Third party logins are also handled through [`signIn()`](/docs/client/auth-signin). +Third party logins are also handled through [`signIn()`](/docs/reference/javascript/auth-signin). -You can do advanced [filtering](/docs/client/using-filters) to extract only the data that you need. +You can do advanced [filtering](/docs/reference/javascript/using-filters) to extract only the data that you need. -You can create data easily using [`insert()`](/docs/client/insert). +You can create data easily using [`insert()`](/docs/reference/javascript/insert). @@ -239,7 +239,7 @@ const { data, error } = await supabase ## Realtime Changes -The Supabase client makes it simple to listen to realtime database changes, using [`subscribe()`](/docs/client/subscribe). +The Supabase client makes it simple to listen to realtime database changes, using [`subscribe()`](/docs/reference/javascript/subscribe). -You can even [listen to Row Level changes](/docs/client/subscribe#listening-to-row-level-changes). +You can even [listen to Row Level changes](/docs/reference/javascript/subscribe#listening-to-row-level-changes). { main() ``` -Once this is working, if you want to learn more about the [query interface](https://supabase.io/docs/client/filter) you might want to try some of these challenges: +Once this is working, if you want to learn more about the [query interface](https://supabase.io/docs/reference/javascript/filter) you might want to try some of these challenges: ```jsx // 1. List all the countries in Antarctica @@ -125,7 +125,7 @@ const { data, error } = await supabase .select('name, country_id') .neq('name', 'The shire') -// full docs here: https://supabase.io/docs/client/filter +// full docs here: https://supabase.io/docs/reference/javascript/filter ``` We look forward to showing off some more Supabase + Replit examples. diff --git a/www/pages/beta.tsx b/www/pages/beta.tsx index d610bec19f0..947db9a54be 100644 --- a/www/pages/beta.tsx +++ b/www/pages/beta.tsx @@ -549,7 +549,7 @@ const NewFeaturesAndIntegrations = () => { If you're new to Supabase, here's a few of the things you get when you choose us as your backend. We provide{' '} @@ -598,7 +598,7 @@ const NewFeaturesAndIntegrations = () => { You can use your database immediately, without an ORM or an API backend. We support GraphQL-like{' '} @@ -606,7 +606,7 @@ const NewFeaturesAndIntegrations = () => { {' '} in a single request, and you can even{' '}