From 6845795a38cbae3510d49d752abf546327c0382b Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Wed, 10 Aug 2022 12:56:47 +0200 Subject: [PATCH] cleaning up routes --- apps/reference/docusaurus.config.js | 14 +++++++------- apps/reference/nav/_referenceSidebars.js | 14 +++++++------- .../src/theme/DocSidebar/Desktop/Content/index.js | 12 ++++++------ 3 files changed, 20 insertions(+), 20 deletions(-) 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) => {