Skip to content

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

Adding base docs

Paul Copplestone4252efd07948
diff --git a/packages/web/content/docs/admin-api/schemas.mdx b/packages/web/content/docs/admin-api/schemas.mdx
index 2542078e802..ce2a37f4536 100644
--- a/packages/web/content/docs/admin-api/schemas.mdx
+++ b/packages/web/content/docs/admin-api/schemas.mdx
@@ -4,7 +4,26 @@ export const metadata = {
'A database contains one or more named schemas, which in turn contain tables. Schemas also contain other kinds of named objects, including data types, functions, and operators.',
}
-## Intro
+## Introduction
A database contains one or more named schemas, which in turn contain tables. Schemas also contain other kinds of named objects, including data types, functions, and operators.
Read more about schemas [here](https://www.postgresql.org/docs/current/ddl-schemas.html).
+
+
+## GET
+
+Request a list of schemas
+
+```
+curl \
+ https://fakeurl.com
+```
+
+## POST
+
+Create a new schema
+
+```
+curl \
+ https://fakeurl.com
+```
\ No newline at end of file
diff --git a/packages/web/content/docs/admin-api/tables.mdx b/packages/web/content/docs/admin-api/tables.mdx
new file mode 100644
index 00000000000..fc055781223
--- /dev/null
+++ b/packages/web/content/docs/admin-api/tables.mdx
@@ -0,0 +1,17 @@
+export const metadata = {
+ title: 'Tables',
+ description:
+ 'Something about tables.',
+}
+
+## Introduction
+
+Something about tables
+
+
+## Request a list of tables
+
+```
+curl \
+ https://fakeurl.com
+```
diff --git a/packages/web/content/docs/realtime/getting-started.mdx b/packages/web/content/docs/realtime/getting-started.mdx
index 81632093f83..2167f6fb1cf 100644
--- a/packages/web/content/docs/realtime/getting-started.mdx
+++ b/packages/web/content/docs/realtime/getting-started.mdx
@@ -1,10 +1,10 @@
export const metadata = {
title: 'Realtime',
- description: 'Listen to your database updates, inserts, and deletes over websockets.'
+ description: 'Listen to your database updates, inserts, and deletes over websockets.',
+ sidebarLabel: 'Overview'
}
-# Hello world
+## Introduction
-
-FOo bAr
\ No newline at end of file
+Some overview.
\ No newline at end of file
diff --git a/packages/web/content/docs/realtime/installation.mdx b/packages/web/content/docs/realtime/installation.mdx
new file mode 100644
index 00000000000..6971cf7a27a
--- /dev/null
+++ b/packages/web/content/docs/realtime/installation.mdx
@@ -0,0 +1,10 @@
+export const metadata = {
+ title: 'Installation',
+ description: 'How to install the server.'
+}
+
+
+## Hello world
+
+
+FOo bAr
\ No newline at end of file
diff --git a/packages/web/content/docs/realtime/realtime-js.mdx b/packages/web/content/docs/realtime/realtime-js.mdx
new file mode 100644
index 00000000000..4be607bff1d
--- /dev/null
+++ b/packages/web/content/docs/realtime/realtime-js.mdx
@@ -0,0 +1,18 @@
+export const metadata = {
+ title: 'Realtime JS',
+ description: 'How to use the JS client.'
+}
+
+
+## Install
+
+
+```sh
+npm install --save @supabase/realtime-js
+```
+
+## Usage
+
+```js
+// @TODO
+```
\ No newline at end of file
diff --git a/packages/web/content/docs/restful/getting-started.mdx b/packages/web/content/docs/restful/getting-started.mdx
index f35674a793f..5cc9d7dd5e5 100644
--- a/packages/web/content/docs/restful/getting-started.mdx
+++ b/packages/web/content/docs/restful/getting-started.mdx
@@ -1,6 +1,7 @@
export const metadata = {
title: 'Restful',
- description: 'Add a fully documented Restful API, simply by introspecting the schema.'
+ description: 'Add a fully documented Restful API, simply by introspecting the schema.',
+ sidebarLabel: 'Getting Started'
}
diff --git a/packages/web/pages/docs/[category]/[slug].js b/packages/web/pages/docs/[category]/[slug].js
index f6e380b5ff3..7651913bb0e 100644
--- a/packages/web/pages/docs/[category]/[slug].js
+++ b/packages/web/pages/docs/[category]/[slug].js
@@ -27,10 +27,12 @@ Sidebars['packaged'] = {
introduction: ['getting-started'],
}
Sidebars['admin-api'] = {
- introduction: ['getting-started', 'schemas'],
+ introduction: ['getting-started'],
+ API: ['schemas', 'tables'],
}
Sidebars['realtime'] = {
- introduction: ['getting-started'],
+ introduction: ['getting-started', 'installation'],
+ 'Client libraries': ['realtime-js'],
}
Sidebars['restful'] = {
introduction: ['getting-started'],
diff --git a/packages/web/styles/style.scss b/packages/web/styles/style.scss
index fba67e25673..0373b29dae6 100644
--- a/packages/web/styles/style.scss
+++ b/packages/web/styles/style.scss
@@ -271,7 +271,7 @@ h3.has-underline {
border: 1px solid $primary !important;
}
.DocsMenuColumn {
- border-right: 2px solid $border-color !important;
+ border-right: 1px solid $border-color !important;
.menu-label {
padding: 1rem 1rem 0 1rem;