Commit Graph

1268 Commits

Author SHA1 Message Date
Charis
a351b10861 adding timeouts to docs (#28197)
* adding timeouts to docs

* edits and rearrangement

* format

---------

Co-authored-by: Brian Brennglass <brian@Brians-MacBook-Pro.local>
2024-07-31 18:25:40 -03:00
Charis
e3e8cd943c feat: replace docs command menu with v2 (#28048)
Replace docs command menu with Command Menu V2 from ui-patterns/CommandMenu.

This introduces the prepackaged folder for the shared Command Menu, which contains commands that are shared across the sites (for example, docs search, theme switcher).

Commands that are only applicable to a single site are now defined within that site's own app folder (put them wherever makes sense for your app folder organization, as long as you use the hooks within a global CommandProvider it will work...)

Tested navigating around, using search and AI on laptop and mobile.
2024-07-31 14:20:30 -04:00
Charis
985ed13456 docs(quickstarts): add rls policy step (#28196)
Quick starts are missing the step to create an RLS policy, which can be
confusing if you choose to create the table from the Table Editor, and
subsequently can't select from it.
2024-07-31 14:58:37 +00:00
Guilherme Souza
f9751c2e13 chore: official supabase-py (#28209) 2024-07-29 08:00:48 -03:00
Charis
837e314088 feat(docs): add visual contributing guide (#28214)
Add a contributing guide to docs, which links to resources for contributors
and includes examples of usable components when writing docs content.
2024-07-26 15:54:20 -04:00
Charis
7036596e9d docs: create platform security section for existing security docs (#28195) 2024-07-25 18:22:07 -04:00
karlo
a86639e56b Added Flutter guides for Realtime (#28192)
* Added Flutter guides for Realtime

* Update apps/docs/content/guides/realtime/realtime-user-presence.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-07-26 01:41:01 +08:00
Aryan Mehrabi
92eb0511c1 fix: update next.js oauth pkce flow docs (#28183) 2024-07-25 17:13:28 +00:00
Charis
5cd8384bca feat(docs), refactor(docs,studio): add regions list to docs (#28125)
* feat(docs), refactor(docs,studio): add regions list to docs

Adds list of supported AWS regions to docs.

Pulls the region information into `shared-data` package to provide common source of truth for dashboard and docs.

* style: format
2024-07-23 12:45:44 -04:00
Chris Gwilliams
77529b234b Remove mention of safeupdate temporarily (#28013)
remove mention of safeupdate temporarily
2024-07-22 11:42:21 +01:00
Kang Ming
dd702704df docs: relocate auth0 migration guide (#28081) 2024-07-19 12:58:51 -04:00
Kevin Grüneberg
14e29dc0a0 chore: remove mermaid, use static SVG (#28083) 2024-07-19 18:36:00 +08:00
Kevin Grüneberg
3601bb52f5 chore: use type imports / avoid unnecessary API type export (#28088) 2024-07-19 18:35:23 +08:00
Etienne Stalmans
22d66f4999 chore: update docs and templates with search_path (#28066)
Advisor warns about missing search_path on the handle_new_user function,
which we supply in docs and SQL starter templates.
We have updated this in some docs but haven't pulled it through to everything
2024-07-18 17:54:15 +02:00
Francesco Sansalvadore
62d8c76603 Fix/docs nav widescreen (#28061)
* fix docs nav widescreen spacing

* fix getting started overlap
2024-07-18 10:12:52 +02:00
Francesco Sansalvadore
084294fe79 feat: docs breadcrumbs (#27929)
docs guides breadcrumbs
2024-07-15 10:25:13 +02:00
Charis
a3ca009680 fix(docs): footenote links from toc (#27937)
The footnote link/anchor was incorrect because the getAnchor logic doesn't check if the component comes with its own id (which overrides the generated id), and the anchor must match the id. This is the case for footnote headings, which are auto-generated by remarkGfm.
2024-07-15 10:18:05 +02:00
Kang Ming
51c81c94f0 docs: add migration guide for Auth0 (#27866)
* docs: add migration guide for Auth0

* chore: fix reviewdog

* docs: add reference section

* chore: update heading to h4

* chore: resolved comments & fix some vale errors

* fix: reorg and language

* chore: fix accordion for FAQ

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-07-12 13:06:35 -07:00
Charis
0624e3a9b9 fix(docs): handle invalid data for project api endpoint (#27936)
The endpoint may successfully return data that isn't valid as a project API endpoint/anon key. I added a check to make sure the endpoint exists and the anon key isn't a known error string before displaying it.
2024-07-11 16:37:08 -04:00
Charis
3df871be4b fix: update code examples for ssr on social login guides (#27906) 2024-07-11 11:54:04 -04:00
Charis
2f6328ea3c fix: erroring table of contents (#27826)
Table of Contents errored in some cases because I forgot to check for
the case where the value can be null.
2024-07-05 16:42:52 +00:00
Francesco Sansalvadore
0d657df42e feat: docs global top nav (#26917)
Docs global top nav
2024-07-04 11:51:13 +02:00
Ziinc
200481b7a0 docs: log drains documentation (#26370)
* docs: log drains documentation

* docs: pricing update for log drains

* docs: more datadog forwarding behaviour

* docs: move log drains to separate page

* docs: fix naming of provider

* dosc: us spelling

* Revert "docs: pricing update for log drains"

This reverts commit cb5f6ceb5f.

* docs: update links in admonition

* docs: tweak wording

* docs: fix typo

* docs: remove pricing page link

* docs: add elastic filebeat docs

* docs: add generic webhook drain
2024-07-04 09:56:51 +08:00
Charis
f4779d4844 refactor: migrate guides to app router (#23101)
Migrate guides to App Router.
2024-07-03 10:25:06 -04:00
Charis
161ba3da32 docs: document more ways to secure the data api (#27756)
Document ways to increase the security of Data API, including:

- Disabling it entirely
- Exposing a custom schema instead of the `public` schema

Also found a duplicated link in the nav for CLS, so removed it.
2024-07-03 12:32:16 +00:00
Francesco Sansalvadore
efc5ee6ec4 global image component (#27410)
* global ui Image component

* migrate docs images to new global component

* use Image component in www mdx components

* update Image description

* remove redundant props

* better ZoomContent types

* remove ThemeImage

* remove ZommableImg component

* add use client to Image component
2024-07-03 13:02:13 +02:00
Chase Granberry
ce808954df docs: init Realtime authz docs (#22803)
* chore: init Realtime authz docs

* fix: some Vale fixes

* fix: run Prettier

* fix: Prettier

* fix: add note to contact us with placeholder link

* fix: swap rules for policies

* fix: lots of changes

* fix: update for latest Authz model

* fix: nits

* fix: more nits

* fix: nit

* edits

* fix: remove realtime.channel names and fix `in` filters

* fix: caps

* fix: moar

* fix: change h3 to h4

* fix: clarify interaction with postgres_changes

* fix: added simple steps to enable

* Update apps/docs/content/guides/realtime/authorization.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/content/guides/realtime/authorization.mdx

Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>

* Update apps/docs/content/guides/realtime/authorization.mdx

Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>

* Update apps/docs/content/guides/realtime/authorization.mdx

Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>

* fix: add clarity to how it works

* fix: `features` to `extensions`

* fix: clarity

* fix: spelling

* fix: add detail about the test query.

* updates

* updates

* updates

* fix: update schema

* fix: prettier

* fix: rewrite section

* fix: create tables sql

* fix: shorten policy names

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>
Co-authored-by: Wen Bo Xie <wenbo.xie3@gmail.com>
2024-07-02 14:46:29 -04:00
Guilherme Souza
5e8efeb415 docs: add quickstart for iOS and SwiftUI (#27535) 2024-06-25 14:24:32 -03:00
Charis
ac192a5024 refactor(docs): migrate home page to app router (#27221) 2024-06-24 18:47:53 -04:00
Francesco Sansalvadore
407501b16c fix docs table overflow issues (#27322)
* fix table overflow issues

* w-full on table container

* refactor Table component

* fix table type

* cleanup

* removeEventListener
2024-06-18 18:25:08 +02:00
Lakshan Perera
cf0ed10e1f fix: update edge function logging & troubleshooting guides (#27265) 2024-06-14 11:50:31 +02:00
Lakshan Perera
a3d1f87a09 chore: change Edge Function guide's sidebar titles (#27218) 2024-06-12 17:04:06 +00:00
karlo
1469f543ae Added Debugging Section for Realtime (#27165) 2024-06-12 05:01:28 +08:00
Kang Ming
f205b95e22 docs: update auth ui (#27158) 2024-06-11 01:41:35 +08:00
karlo
64fa8721b6 chore: Add Operational Error Codes for Realtime (#27110) 2024-06-09 09:21:15 +08:00
Stojan Dimitrovski
5772fbf911 docs: add error codes auth (#22793) 2024-06-08 12:31:52 +02:00
Thor 雷神 Schaeff
dda1c05ebd docs: Debugging Edge Functions with Inspector (#27014)
* chore: update ai types.

* docs: start ef inspector docs.

* chore: break out into own page.

* chore: spelling.

* chore: chrome devtools only.
2024-06-06 17:21:36 +08:00
O-Aditya
1775dd17de Fix #26802: Implement client-side only JWT secret generation (#26831)
* Fix #26802: Implement client-side only JWT secret generation

* generate random string with getRandomValues

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-06-03 14:56:55 +00:00
Thor 雷神 Schaeff
1a571a2368 docs: edgy bedrock. (#26909)
* docs: edgy bedrock.

* fix: nav.

* Apply suggestions from code review

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-01 22:28:39 +08:00
Kang Ming
ac7922b84c docs: update auth docs (#26878)
* docs: fix broken links

* docs: update auth docs
2024-05-31 16:07:43 +08:00
Hieu
d855bfb3f8 feat: automate mgmt api spec update (#26655)
* fix: correct mgmt api naming

* feat: new command to generate mgmt api sections

* feat: sort section items

* chore: tidy up

* fix: add generate sections to the default command

* feat: add gha to auto update mgmt api docs

* chore: tidy up

* fix: operationId logic to support self-hosting references

* chore: update latest mgmt api specs

* chore: update latest mgmt api specs
2024-05-31 08:53:19 +07:00
Lakshan Perera
a133a111d2 Some updates to Edge Functions guides (#26877)
* chore: link to Sentry guide from Debugging section

* chore: Change Edge Function Quickstart to Get started

This section isn't much of a quickstart. Updated the first guide title
to "Create an Edge Function"

* chore: moved Edge Functions limits to a separate page

* chore: added a page on HTTP Status codes Edge Functions can return
2024-05-30 16:56:32 -02:30
Francesco Sansalvadore
7f42a81dce Chore/custom html elements cleanup (#26836)
* clean up CustomHTMLElements duplication

* save file

* docs --passWithNoTests

* update CustomHTMLElements.utils.test file to tsx
2024-05-30 10:45:57 +02:00
Jonathan Summers-Muir
ec760d4e97 add Admonition to Design System (#26710)
* add Admonition to Design System

* added notices about FormLabel

* Update label.mdx
2024-05-24 09:21:41 +00:00
Francesco Sansalvadore
511e7c728c docs: fix broken links (#26711)
* fix rest api docs nav links

* remove unused data-apis page
2024-05-24 11:09:11 +02:00
Francesco Sansalvadore
9c4eb2c2eb docs icons inconsistencies (#26715)
* fix docs inconsistent icons

* remove redundant and old icons

* revert links change

* fix prev link

* Apply suggestions from code review

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-05-24 07:04:22 +00:00
Charis
3c196e3bf5 enhance(refs): add params and return examples for database and auth (#26676)
enhance(refs): add params and return types

Add params and return types for database and auth functions in
supabase-js library.
2024-05-22 19:55:00 -04:00
Greg Richardson
3f1df65bba SQL to REST translator (#25978)
* feat: sql-to-rest poc

* feat: sql-to-supabase-js poc

* chore: upgrade to libpg-query@15

* feat: sql-to-rest docs tool

* docs(sql-to-rest): add introduction

* docs: wording improvements

* fix: theme

* chore: tailwind placeholder

* feat(sql-to-rest): limit, offset, and range

* feat(sql-to-rest): sort by

* fix(sql-to-rest): ui theme

* feat(sql-to-rest): casts

* feat(sql-to-rest): dynamic faqs in ui

* feat(sql-to-rest): improve ui responsiveness

* feat(sql-to-rest): more advanced faqs in ui

* feat(sql-to-rest): http and curl syntax highlighting

* feat(sql-to-rest): baseUrl in http/curl rendering

* docs(sql-to-rest): clarification on curl flags

* feat(sql-to-rest): more faqs

* refactor(sql-to-rest): split faqs into own file

* refactor(sql-to-rest): move formatters to sql-to-rest package

* docs(sql-to-rest): move page to new tools section

* feat(sql-to-rest): joins and resource embeddings

* chore(sql-to-rest): rename 'convert' to 'translate'

* feat(sql-to-rest): add faqs

* feat(sql-to-rest): ui improvements

* feat(sql-to-rest): faq title adjustment

* feat(sql-to-rest): link to client lib docs

* feat(sql-to-rest): assumptions

* feat(sql-to-rest): friendly 'not supported yet' errors

* feat(sql-to-rest): json columns

* feat(sql-to-rest): remove curl -G flag if unused

* feat(sql-to-rest): better error handling

* chore: revert accidental rls ai work

* fix: build errors

* fix(sql-to-rest): theme

* feat(sql-to-rest): change base url

* feat(sql-to-rest): basic aggregate poc

* feat(sql-to-rest): group by

* feat(sql-to-rest): more group by checks

* feat(sql-to-rest): count(*) special case

* fix(sql-to-rest): tests

* feat(sql-to-rest): faq on 'and' operator

* fix(sql-to-rest): error messages

* fix(sql-to-rest): multiple filters on same column

* refactor(sql-to-rest): error hints

* feat(sql-to-rest): match and imatch

* feat(sql-to-rest): in operator

* feat(sql-to-rest): parsing error hints

* feat(sql-to-rest): default language to curl

* feat(sql-to-rest): format on cmd+s

* feat(sql-to-rest): format initial value

* fix(sql-to-rest): turn off tab query group

* feat(sql-to-rest): improve wording in error messages

* feat(sql-to-rest): animated code blocks

* feat(sql-to-rest): more error hints

* fix(sql-to-rest): strip primary relation prefix from columns

* feat(sql-to-rest): json column in order by clause

* feat(sql-to-rest): validate all referenced relations exist in from clause

* refactor(sql-to-rest): split core sql-to-rest lib into separate repo

* feat(sql-to-rest): upgrade to v0.1.1

* feat(sql-to-rest): upgrade to v0.1.2

* feat(sql-to-rest): upgrade to v0.1.4

* chore: upgrade libpg-query

* feat: update 'create a pr' link

* fix: app builds

* fix: prettier

* fix: typecheck

* fix: studio tests

* chore: remove console.log

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* docs(sql-to-rest): remove broken link to client libraries

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-22 12:37:01 -06:00
Andreas Elia
4a2a68bab3 Fix "Options" component border radius transition and padding (#26332)
fix options border radius transition and padding

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-22 02:06:04 +00:00
Hieu
d48948ba10 fix: RefSectionHandler to support mgmt-api/api sections (#26601) 2024-05-21 11:29:31 +02:00