Skip to content

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

more nav fixes

Jonathan Summers-Muir8d5f05aa84c0
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
index f7fb8c6ca6a..9a0cb7c64d8 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
@@ -327,8 +327,14 @@ export const realtime = {
items: [
{ name: 'Overview', url: '/guides/realtime', items: [] },
{ name: 'Quickstart', url: '/guides/realtime/quickstart', items: [] },
- { name: 'Postgres CDC', url: '/guides/realtime/postgres-cdc', items: [] },
- { name: 'Rate Limits', url: '/guides/realtime/rate-limits', items: [] },
+ {
+ name: 'Channels',
+ url: undefined,
+ items: [
+ { name: 'Postgres CDC', url: '/guides/realtime/postgres-cdc', items: [] },
+ { name: 'Rate Limits', url: '/guides/realtime/rate-limits', items: [] },
+ ],
+ },
],
}
@@ -383,7 +389,6 @@ export const integrations = {
icon: '/img/icons/menu/integrations.svg',
label: 'Integrations',
items: [
- { name: 'Supabase Marketplace', url: '/guides/integrations/integrations', items: [] },
{
name: 'Auth',
url: undefined,
@@ -424,6 +429,7 @@ export const integrations = {
{ name: 'Plasmic', url: '/guides/integrations/plasmic', items: [] },
],
},
+ { name: 'Supabase Marketplace', url: '/guides/integrations/integrations', items: [] },
],
}
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
index c9b12bfd94d..1d89aa2b0e9 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
@@ -34,7 +34,7 @@ const SideNav = () => {
case url.includes(`/docs/guides/storage`) && url:
setLevel('storage')
break
- case url.includes(`/doc/guides/realtime`) && url:
+ case url.includes(`/docs/guides/realtime`) && url:
setLevel('realtime')
break
case url.includes(`/docs/edge-functions`) && url:
@@ -43,7 +43,7 @@ const SideNav = () => {
case url.includes(`/docs/reference`) && url:
setLevel('reference')
break
- case url.includes(`/docs/integrations`) && url:
+ case url.includes(`/docs/guides/integrations`) && url:
setLevel('integrations')
break
case url.includes(`/docs/platform`) && url:
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx
index 3f35a53e2a2..ec3f12e93e4 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx
@@ -57,31 +57,39 @@ const NavigationMenuGuideList = ({ currentLevel, setLevel, id }) => {
<div key={x.name}>
{x.items && x.items.length > 0 ? (
<>
- {index !== 0 && <div className="h-px w-full bg-green-500 my-3"></div>}
+ {/* {<div className="h-px w-full bg-green-500 my-3"></div>} */}
<span className="font-mono text-xs uppercase text-scale-1200 font-medium tracking-wider">
{x.name}
</span>
- {x.items.map((x) => {
+ {x.items.map((x, subItemIndex) => {
return (
- <li key={x.name}>
- <Link href={`/${x.url}`} passHref>
- <a className="cursor-pointer transition text-scale-1000 text-sm hover:text-brand-900">
- {x.name}
- </a>
- </Link>
- </li>
+ <>
+ <li key={x.name}>
+ <Link href={`/${x.url}`} passHref>
+ <a className="cursor-pointer transition text-scale-1000 text-sm hover:text-brand-900">
+ {x.name}
+ </a>
+ </Link>
+ </li>
+ {subItemIndex == x.items.length && (
+ <div className="h-px w-full bg-green-500 my-3"></div>
+ )}
+ </>
)
})}
</>
) : (
- <li>
- <Link href={`/${x.url}`} passHref>
- <a className="cursor-pointer transition text-scale-1000 text-sm hover:text-brand-900 flex gap-3">
- {x.icon && <img className="w-3" src={`${router.basePath}${x.icon}`} />}
- {x.name}
- </a>
- </Link>
- </li>
+ <>
+ {/* {index === 0 && <div className="h-px w-full bg-green-500 my-3"></div>} */}
+ <li>
+ <Link href={`/${x.url}`} passHref>
+ <a className="cursor-pointer transition text-scale-1000 text-sm hover:text-brand-900 flex gap-3">
+ {x.icon && <img className="w-3" src={`${router.basePath}${x.icon}`} />}
+ {x.name}
+ </a>
+ </Link>
+ </li>
+ </>
)}
</div>
)