docs: redesigned navigation (#9525)
Redesign navigation bar to reflect new design and allow for dropdowns Closes DX-943
This commit is contained in:
1 parent
7c5415ba3a
commit
49a91fd40e
63 files changed
+934
-978
No files matched your search
@@ -7,5 +7,12 @@ export const config: DocsConfig = {
|
||||
titleSuffix: "Medusa v2 Docs",
|
||||
baseUrl,
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
|
||||
sidebar: sidebarConfig(baseUrl),
|
||||
sidebar: sidebarConfig,
|
||||
project: {
|
||||
title: "Documentation",
|
||||
key: "book",
|
||||
},
|
||||
breadcrumbOptions: {
|
||||
showCategories: false,
|
||||
},
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Badge, getMobileSidebarItems } from "docs-ui"
|
||||
import { Badge } from "docs-ui"
|
||||
import type { SidebarConfig, SidebarItem } from "@/types"
|
||||
import { sidebar } from "../sidebar.mjs"
|
||||
|
||||
@@ -20,12 +20,7 @@ const normalizeSidebarItems = (items: SidebarItem[]) =>
|
||||
return item
|
||||
})
|
||||
|
||||
export const sidebarConfig = (baseUrl: string): SidebarConfig => {
|
||||
return {
|
||||
default: normalizeSidebarItems(sidebar),
|
||||
mobile: getMobileSidebarItems({
|
||||
baseUrl,
|
||||
version: "v2",
|
||||
}),
|
||||
}
|
||||
export const sidebarConfig: SidebarConfig = {
|
||||
default: normalizeSidebarItems(sidebar),
|
||||
mobile: [],
|
||||
}
|
||||
Reference in new issue
Block a user