Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Style nudges, fix url

Terry Suttonc2f8d191e900
diff --git a/apps/temp-docs/components/Admonition.tsx b/apps/temp-docs/components/Admonition.tsx
index 39b6b03c044..42f7049f864 100644
--- a/apps/temp-docs/components/Admonition.tsx
+++ b/apps/temp-docs/components/Admonition.tsx
@@ -14,13 +14,13 @@ const Admonition: FC<Props> = ({ type = 'note', label, children }) => {
'shadow p-4 rounded border-l-[5px] space-y-2 my-4',
`${
type === 'note'
- ? 'bg-scale-500 border-scale-800'
+ ? 'bg-scale-400 border-scale-800'
: type === 'info'
? 'bg-scale-500 border-scale-800'
: type === 'tip'
- ? 'bg-brand-500 border-brand-800'
+ ? 'bg-brand-300 border-brand-800'
: type === 'caution'
- ? 'bg-yellow-500 border-yellow-800'
+ ? 'bg-yellow-400 border-yellow-800'
: type === 'danger'
? 'bg-red-500 border-red-800'
: 'bg-scale-500 border-scale-800'
@@ -41,7 +41,7 @@ const Admonition: FC<Props> = ({ type = 'note', label, children }) => {
) : (
<IconInfo className="text-scale-1200" size={18} strokeWidth={1.5} />
)}
- <p className="text-base text-scale-1200 uppercase my-0">{label || type}</p>
+ <p className="text-sm text-scale-1200 uppercase my-0 font-bold">{label || type}</p>
</div>
<div className="admonition-content text-scale-1200 text-base space-y-1">{children}</div>
</div>
diff --git a/apps/temp-docs/docs/guides/auth/auth-captcha.mdx b/apps/temp-docs/docs/guides/auth/auth-captcha.mdx
index 1e5cc889fe3..a92a1443427 100644
--- a/apps/temp-docs/docs/guides/auth/auth-captcha.mdx
+++ b/apps/temp-docs/docs/guides/auth/auth-captcha.mdx
@@ -7,7 +7,7 @@ description: Add Captcha Protection to your Supabase project
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
-# hCaptcha guide
+## hCaptcha guide
Supabase provides you with the option of adding captcha to your sign-in, sign-up, and password reset forms. This keeps your website safe from bots and malicious scripts. Supabase authentication has support for [hCaptcha](https://www.hcaptcha.com/).
diff --git a/apps/temp-docs/docs/guides/cli/local-development.mdx b/apps/temp-docs/docs/guides/cli/local-development.mdx
index 0fed6af0583..7ff4004a730 100644
--- a/apps/temp-docs/docs/guides/cli/local-development.mdx
+++ b/apps/temp-docs/docs/guides/cli/local-development.mdx
@@ -40,13 +40,13 @@ git init
## Start Supabase services
-[Initialize](/reference/cli/usage#supabase-init) Supabase to set up the configuration for developing your project locally:
+[Initialize](/docs/reference/cli/usage#supabase-init) Supabase to set up the configuration for developing your project locally:
```bash
supabase init
```
-Make sure Docker is running. The [start](/reference/cli/usage#supabase-start) command uses Docker to start the Supabase [services](/architecture).
+Make sure Docker is running. The [start](/docs/reference/cli/usage#supabase-start) command uses Docker to start the Supabase [services](/architecture).
This command may take a while to run if this is the first time using the CLI.
```bash
@@ -54,7 +54,7 @@ supabase start
```
Once all of the Supabase services are running, you'll see output containing your local Supabase credentials.
-You can use the [stop](/reference/cli/usage#supabase-stop) command at any time to stop all services.
+You can use the [stop](/docs/reference/cli/usage#supabase-stop) command at any time to stop all services.
## Access services
@@ -130,21 +130,21 @@ create table employees (
<Admonition type="note">
-You can execute any SQL using the `DB URL` shown by [`supabase status`](/reference/cli/usage#supabase-status).
+You can execute any SQL using the `DB URL` shown by [`supabase status`](/docs/reference/cli/usage#supabase-status).
</Admonition>
-Run the [`db diff`](/reference/cli/usage#supabase-db-diff) command to detect changes in the local database:
+Run the [`db diff`](/docs/reference/cli/usage#supabase-db-diff) command to detect changes in the local database:
```sh
supabase db diff create_employees -f create_employees
```
-This creates a new migration named `supabase/migrations/<timestamp>_create_employees.sql`, representing any changes made to the local database since [`supabase start`](/reference/cli/usage#supabase-start).
+This creates a new migration named `supabase/migrations/<timestamp>_create_employees.sql`, representing any changes made to the local database since [`supabase start`](/docs/reference/cli/usage#supabase-start).
### Add sample data
-Use the seed script in `supabase/seed.sql` (created with [`supabase init`](/reference/cli/usage#supabase-init)) to add sample data to the table.
+Use the seed script in `supabase/seed.sql` (created with [`supabase init`](/docs/reference/cli/usage#supabase-init)) to add sample data to the table.
```sql
-- in supabase/seed.sql
@@ -165,7 +165,7 @@ You should now see the contents of `employees` in Studio.
### Reset database changes
-Use the [`reset`](/reference/cli/usage#supabase-db-reset) command to revert any changes to the local database.
+Use the [`reset`](/docs/reference/cli/usage#supabase-db-reset) command to revert any changes to the local database.
```sql
-- run on local database to make a change
@@ -191,7 +191,7 @@ There are a few commands required to link your project. We are in the process of
</Admonition>
-Associate your project with your remote project using [`supabase link`](/reference/cli/usage#supabase-link).
+Associate your project with your remote project using [`supabase link`](/docs/reference/cli/usage#supabase-link).
```bash
supabase link --project-ref <project-id>
@@ -206,7 +206,7 @@ This migration captures any changes required for your local database to match th
### Deploy database changes
-Deploy any local database migrations using [`db push`](/reference/cli/usage#supabase-db-push):
+Deploy any local database migrations using [`db push`](/docs/reference/cli/usage#supabase-db-push):
```sh
supabase db push
@@ -214,7 +214,7 @@ supabase db push
### Deploy Edge Functions
-Deploy any Edge Functions using [`functions deploy`](/reference/cli/usage#supabase-functions-deploy):
+Deploy any Edge Functions using [`functions deploy`](/docs/reference/cli/usage#supabase-functions-deploy):
```sh
supabase functions deploy <function_name>
diff --git a/apps/temp-docs/docs/guides/cli/managing-environments.mdx b/apps/temp-docs/docs/guides/cli/managing-environments.mdx
index 573317d4f9d..d6de4fcaedd 100644
--- a/apps/temp-docs/docs/guides/cli/managing-environments.mdx
+++ b/apps/temp-docs/docs/guides/cli/managing-environments.mdx
@@ -412,6 +412,6 @@ mv <time>_dev_A.sql <t+2>_dev_A.sql
supabase db reset
```
-In case [`reset`](/reference/cli/usage#supabase-db-reset) fails, you can manually resolve conflicts by editing `<t+2>_dev_A.sql` file.
+In case [`reset`](/docs/reference/cli/usage#supabase-db-reset) fails, you can manually resolve conflicts by editing `<t+2>_dev_A.sql` file.
Once validated locally, commit your changes to Git and push to GitHub.
diff --git a/apps/temp-docs/docs/guides/with-redwoodjs.mdx b/apps/temp-docs/docs/guides/with-redwoodjs.mdx
index e9ed843cc0b..7e7ee19c265 100644
--- a/apps/temp-docs/docs/guides/with-redwoodjs.mdx
+++ b/apps/temp-docs/docs/guides/with-redwoodjs.mdx
@@ -253,8 +253,7 @@ yarn redwood setup auth supabase
When prompted:
-Overwrite existing /api/src/lib/auth.[jt]s?
-:::
+> Overwrite existing /api/src/lib/auth.[jt]s?
Say, **yes** and it will setup the Supabase client in your app and also provide hooks used with Supabase authentication.
diff --git a/apps/temp-docs/styles/main.scss b/apps/temp-docs/styles/main.scss
index d9a4f348044..023318b87b2 100644
--- a/apps/temp-docs/styles/main.scss
+++ b/apps/temp-docs/styles/main.scss
@@ -187,7 +187,8 @@ pre[class*='language-'] {
// format <code> inside <p>
p code {
word-break: keep-all !important;
- padding: 0.1rem 0.25rem !important;
+ white-space: nowrap !important;
+ padding: 0.1rem 0.35rem !important;
&:before {
display: none;
@@ -196,3 +197,16 @@ p code {
display: none;
}
}
+// code inside admonitions
+.admonition-content p code {
+ @apply bg-scale-300;
+}
+
+article p strong {
+ color: inherit !important;
+}
+
+// fix box shadow when <code> is inside <a>
+p a:has(code) {
+ box-shadow: none !important;
+}