Files
medusa-store/www/apps/resources/sidebars/store.mjs
Shahed Nasser 5deb8eaf50 docs: support multiple sidebars in a project (#11768)
* changed to new sidebar across projects except resources

* finalize multi sidebar support

* clean up

* remove redundant property

* small changes

* fixes

* generate

* fix error

* fix initial open
2025-03-07 15:47:38 +02:00

176 lines
5.4 KiB
JavaScript

/** @type {import('types').Sidebar.SidebarItem[]} */
export const storeSidebar = [
{
type: "sidebar",
sidebar_id: "store",
title: "Store Module",
children: [
{
type: "link",
path: "/commerce-modules/store",
title: "Overview",
},
{
type: "separator",
},
{
type: "category",
title: "Concepts",
initialOpen: false,
children: [
{
type: "link",
path: "/commerce-modules/store/links-to-other-modules",
title: "Link to Modules",
},
],
},
{
type: "category",
title: "Server Guides",
autogenerate_tags: "server+store",
initialOpen: false,
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
description:
"Learn how to use the Store Module in your customizations on the Medusa application server.",
},
{
type: "category",
title: "Storefront Guides",
autogenerate_tags: "storefront+store,-jsSdk",
initialOpen: false,
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
description:
"Learn how to integrate the Store Module's features into your storefront.",
},
{
type: "category",
title: "Admin Guides",
autogenerate_tags: "admin+store,-jsSdk",
initialOpen: false,
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
description:
"Learn how to utilize administative features of the Store Module.",
},
{
type: "category",
title: "Admin User Guides",
autogenerate_tags: "userGuide+store",
initialOpen: false,
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
description:
"Learn how to utilize and manage Store features in the Medusa Admin dashboard.",
},
{
type: "category",
title: "References",
initialOpen: false,
description:
"Find references for tools and resources related to the Store Module, such as data models, methods, and more. These are useful for your customizations.",
children: [
{
type: "link",
path: "/commerce-modules/store/workflows",
title: "Workflows",
hideChildren: true,
children: [
{
type: "category",
title: "Workflows",
autogenerate_tags: "workflow+store",
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
},
{
type: "category",
title: "Steps",
autogenerate_tags: "step+store",
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
},
],
},
{
type: "link",
path: "/commerce-modules/store/js-sdk",
title: "JS SDK",
hideChildren: true,
children: [
{
type: "sub-category",
title: "Store",
autogenerate_tags: "jsSdk+storefront+store",
description:
"The following methods or properties are used to send requests to Store API Routes related to the Store Module.",
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
},
{
type: "sub-category",
title: "Admin",
autogenerate_tags: "jsSdk+admin+store",
description:
"The following methods or properties are used to send requests to Admin API Routes related to the Store Module.",
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
},
],
},
{
type: "link",
path: "/commerce-modules/store/admin-widget-zones",
title: "Admin Widget Zones",
},
{
type: "sidebar",
sidebar_id: "store-service-reference",
title: "Main Service Reference",
childSidebarTitle: "Store Module's Main Service Reference",
children: [
{
type: "link",
path: "/references/store",
title: "Reference Overview",
},
{
type: "separator",
},
{
type: "category",
title: "Methods",
autogenerate_path:
"/references/store/IStoreModuleService/methods",
},
],
},
{
type: "sidebar",
sidebar_id: "store-models-reference",
title: "Data Models Reference",
childSidebarTitle: "Store Module Data Models Reference",
children: [
{
type: "link",
path: "/references/store/models",
title: "Reference Overview",
},
{
type: "separator",
},
{
type: "category",
title: "Data Models",
autogenerate_path: "/references/store_models/variables",
},
],
},
],
},
],
},
]