Files
medusa-store/www/apps/resources/sidebars/examples.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

54 lines
1.2 KiB
JavaScript

/** @type {import('types').Sidebar.SidebarItem[]} */
export const examplesSidebar = [
{
type: "sidebar",
sidebar_id: "examples",
title: "Examples",
children: [
{
type: "link",
path: "/examples",
title: "Example Snippets",
},
{
type: "ref",
path: "/recipes",
title: "Recipes",
},
{
type: "ref",
path: "/plugins",
title: "Plugins",
},
{
type: "ref",
path: "/integrations",
title: "Integrations",
},
{
type: "category",
title: "Server Examples",
autogenerate_tags: "example+server",
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
},
{
type: "category",
title: "Admin Examples",
autogenerate_tags: "example+admin",
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
children: [],
},
{
type: "category",
title: "Storefront Examples",
autogenerate_tags: "example+storefront",
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
children: [],
},
],
},
]