Skip to content

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

cleaning up routes

Copple6845795a38cb
diff --git a/apps/reference/docusaurus.config.js b/apps/reference/docusaurus.config.js
index 0ad24d1754c..082383b3be9 100644
--- a/apps/reference/docusaurus.config.js
+++ b/apps/reference/docusaurus.config.js
@@ -34,7 +34,7 @@ const config = {
{
id: '_api',
path: '_api',
- routeBasePath: 'api',
+ routeBasePath: '/reference/api',
sidebarPath: require.resolve('./nav/api_sidebars.js'),
breadcrumbs: false,
},
@@ -44,7 +44,7 @@ const config = {
{
id: '_cli',
path: '_cli',
- routeBasePath: 'cli',
+ routeBasePath: '/reference/cli',
sidebarPath: require.resolve('./nav/cli_sidebars.js'),
breadcrumbs: false,
},
@@ -54,7 +54,7 @@ const config = {
{
id: '_gotrue',
path: '_gotrue',
- routeBasePath: 'auth',
+ routeBasePath: '/reference/auth',
sidebarPath: require.resolve('./nav/gotrue_sidebars.js'),
breadcrumbs: false,
},
@@ -64,7 +64,7 @@ const config = {
{
id: '_storage',
path: '_storage',
- routeBasePath: 'storage',
+ routeBasePath: '/reference/storage',
sidebarPath: require.resolve('./nav/storage_sidebars.js'),
breadcrumbs: false,
},
@@ -74,7 +74,7 @@ const config = {
{
id: '_supabase_dart',
path: '_supabase_dart',
- routeBasePath: 'supabase-dart',
+ routeBasePath: '/reference/dart',
sidebarPath: require.resolve('./nav/supabase_dart_sidebars.js'),
breadcrumbs: false,
},
@@ -84,7 +84,7 @@ const config = {
{
id: '_supabase_js',
path: '_supabase_js',
- routeBasePath: 'supabase-js',
+ routeBasePath: '/reference/javascript',
sidebarPath: require.resolve('./nav/supabase_js_sidebars.js'),
breadcrumbs: false,
},
@@ -94,7 +94,7 @@ const config = {
{
id: '_auth_helpers',
path: '_auth_helpers',
- routeBasePath: 'auth-helpers',
+ routeBasePath: '/reference/auth-helpers',
sidebarPath: require.resolve('./nav/auth_helpers_sidebars.js'),
breadcrumbs: false,
},
diff --git a/apps/reference/nav/_referenceSidebars.js b/apps/reference/nav/_referenceSidebars.js
index 19940e991f7..fbcb2842f2d 100644
--- a/apps/reference/nav/_referenceSidebars.js
+++ b/apps/reference/nav/_referenceSidebars.js
@@ -20,17 +20,17 @@ const sidebars = {
link: { type: 'doc', id: 'about' },
collapsed: false,
items: [
- { type: 'link', label: 'Supabase CLI', href: '/cli' },
- { type: 'link', label: 'Supabase API', href: '/api' },
+ { type: 'link', label: 'Supabase CLI', href: '/reference/cli' },
+ { type: 'link', label: 'Supabase API', href: '/reference/api' },
{
type: 'link',
label: 'Supabase JavaScript Library',
- href: '/supabase-js',
+ href: '/reference/javascript',
},
{
type: 'link',
label: 'Supabase Dart Library',
- href: '/supabase-dart',
+ href: '/reference/dart',
},
],
},
@@ -42,7 +42,7 @@ const sidebars = {
{
type: 'link',
label: 'Supabase Auth Helpers',
- href: '/auth-helpers',
+ href: '/reference/auth-helpers',
},
],
},
@@ -51,8 +51,8 @@ const sidebars = {
label: 'Self hosted',
collapsed: false,
items: [
- { type: 'link', label: 'Auth Server', href: '/auth' },
- { type: 'link', label: 'Storage Server', href: '/storage' },
+ { type: 'link', label: 'Auth Server', href: '/reference/auth' },
+ { type: 'link', label: 'Storage Server', href: '/reference/storage' },
],
},
// {
diff --git a/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js b/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js
index 7262050fb76..70ab3cfbfe5 100644
--- a/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js
+++ b/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js
@@ -5,12 +5,12 @@ import Link from '@docusaurus/Link'
const subNavRoutes = [
// Add any routes which should have a subnav
- '/api',
- '/cli',
- '/auth',
- '/storage',
- '/supabase-js',
- '/supabase-dart',
+ '/reference/api',
+ '/reference/cli',
+ '/reference/auth',
+ '/reference/storage',
+ '/reference/javascript',
+ '/reference/dart',
]
const requiresSubNav = (pathname, routes) => {