mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
cleaning up routes
This commit is contained in:
1 parent
cbc2b84d73
commit
6845795a38
3 files changed
+20
-20
No files matched your search
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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' },
|
||||
],
|
||||
},
|
||||
// {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user