0a37675f0e
- Add a new homepage to `book` project for the routing page - Move all main doc pages to be under `/v2/learn` (and added redirects + fixed links across docs) - Other: add admin components to resources dropdown + fixes to search on mobile. Closes DX-955 Preview: https://docs-v2-git-docs-router-page-medusajs.vercel.app/v2
148 lines
2.9 KiB
TypeScript
148 lines
2.9 KiB
TypeScript
import { OptionType } from "@/hooks"
|
|
import { NavigationItem } from "types"
|
|
|
|
export const GITHUB_ISSUES_PREFIX = `https://github.com/medusajs/medusa/issues/new?assignees=&labels=type%3A+docs&template=docs.yml`
|
|
export const GITHUB_UI_ISSUES_PREFIX = `https://github.com/medusajs/ui/issues/new?labels=documentation`
|
|
|
|
export const navDropdownItems: NavigationItem[] = [
|
|
{
|
|
type: "link",
|
|
path: `/v2/learn`,
|
|
title: "Get Started",
|
|
project: "book",
|
|
},
|
|
{
|
|
type: "dropdown",
|
|
title: "Product",
|
|
children: [
|
|
{
|
|
type: "link",
|
|
title: "Commerce Modules",
|
|
link: "/v2/resources/commerce-modules",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Architectural Modules",
|
|
link: "/v2/resources/architectural-modules",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "dropdown",
|
|
title: "Resources",
|
|
children: [
|
|
{
|
|
type: "link",
|
|
title: "Guides",
|
|
link: "/v2/resources",
|
|
useAsFallback: true,
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Examples",
|
|
link: "/v2/resources/examples",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Recipes",
|
|
link: "/v2/resources/recipes",
|
|
},
|
|
{
|
|
type: "divider",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "UI Library",
|
|
link: "/ui",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Admin Components",
|
|
link: "/v2/resources/admin-components",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Storefront Development",
|
|
link: "/v2/resources/storefront-development",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "dropdown",
|
|
title: "Tools & SDKs",
|
|
children: [
|
|
{
|
|
type: "link",
|
|
title: "Medusa CLI",
|
|
link: "/v2/resources/medusa-cli",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Next.js Starter",
|
|
link: "/v2/resources/nextjs-starter",
|
|
},
|
|
{
|
|
type: "divider",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Integrations",
|
|
link: "/v2/resources/integrations",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "dropdown",
|
|
title: "Reference",
|
|
children: [
|
|
{
|
|
type: "link",
|
|
title: "Admin API",
|
|
link: "/v2/api/admin",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Store API",
|
|
link: "/v2/api/store",
|
|
},
|
|
{
|
|
type: "divider",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Workflows",
|
|
link: "/v2/resources/medusa-workflows-reference",
|
|
},
|
|
{
|
|
type: "link",
|
|
title: "Data Model API",
|
|
link: "/v2/resources/references/data-model",
|
|
},
|
|
],
|
|
},
|
|
]
|
|
|
|
export const searchFilters: OptionType[] = [
|
|
{
|
|
value: "guides",
|
|
label: "Guides",
|
|
},
|
|
{
|
|
value: "references-v2",
|
|
label: "References",
|
|
},
|
|
{
|
|
value: "admin-v2",
|
|
label: "Admin API (v2)",
|
|
},
|
|
{
|
|
value: "store-v2",
|
|
label: "Store API (v2)",
|
|
},
|
|
{
|
|
value: "ui",
|
|
label: "Medusa UI",
|
|
},
|
|
// TODO add more filters
|
|
]
|