finish sidebar changes

This commit is contained in:
Shahed Nasser
2025-03-10 16:02:26 +02:00
parent affd5e83d4
commit 0c71bce1e2
16 changed files with 17605 additions and 17788 deletions
@@ -1,177 +1,175 @@
/** @type {import('types').Sidebar.SidebarItem[]} */
export const architecturalModulesSidebar = [
{
type: "sidebar",
sidebar_id: "architectural-modules",
title: "Architectural Modules",
type: "link",
path: "/architectural-modules",
title: "Overview",
},
{
type: "separator",
},
{
type: "category",
title: "Cache Modules",
initialOpen: true,
children: [
{
type: "link",
path: "/architectural-modules",
path: "/architectural-modules/cache",
title: "Overview",
},
{
type: "separator",
type: "link",
path: "/architectural-modules/cache/in-memory",
title: "In-Memory",
},
{
type: "category",
title: "Cache Modules",
type: "link",
path: "/architectural-modules/cache/redis",
title: "Redis",
},
{
type: "sub-category",
title: "Guides",
children: [
{
type: "link",
path: "/architectural-modules/cache",
title: "Overview",
},
{
type: "link",
path: "/architectural-modules/cache/in-memory",
title: "In-Memory",
},
{
type: "link",
path: "/architectural-modules/cache/redis",
title: "Redis",
},
{
type: "sub-category",
title: "Guides",
children: [
{
type: "link",
path: "/architectural-modules/cache/create",
title: "Create Cache Module",
},
],
},
],
},
{
type: "category",
title: "Event Modules",
children: [
{
type: "link",
path: "/architectural-modules/event",
title: "Overview",
},
{
type: "link",
path: "/architectural-modules/event/local",
title: "Local",
},
{
type: "link",
path: "/architectural-modules/event/redis",
title: "Redis",
},
{
type: "sub-category",
title: "Guides",
children: [
{
type: "link",
path: "/architectural-modules/event/create",
title: "Create Event Module",
},
],
},
],
},
{
type: "category",
title: "File Module Providers",
children: [
{
type: "link",
path: "/architectural-modules/file",
title: "Overview",
},
{
type: "link",
path: "/architectural-modules/file/local",
title: "Local",
},
{
type: "link",
path: "/architectural-modules/file/s3",
title: "AWS S3 (and Compatible APIs)",
},
{
type: "sub-category",
title: "Guides",
children: [
{
type: "link",
path: "/references/file-provider-module",
title: "Create File Provider",
},
],
},
],
},
{
type: "category",
title: "Notification Module Providers",
children: [
{
type: "link",
path: "/architectural-modules/notification",
title: "Overview",
},
{
type: "link",
path: "/architectural-modules/notification/local",
title: "Local",
},
{
type: "link",
path: "/architectural-modules/notification/sendgrid",
title: "SendGrid",
},
{
type: "sub-category",
title: "Guides",
children: [
{
type: "link",
path: "/references/notification-provider-module",
title: "Create Notification Provider",
},
{
type: "link",
path: "/integrations/guides/resend",
title: "Integrate Resend",
},
{
type: "link",
path: "/architectural-modules/notification/send-notification",
title: "Send Notification",
},
],
},
],
},
{
type: "category",
title: "Workflow Engine Modules",
children: [
{
type: "link",
path: "/architectural-modules/workflow-engine",
title: "Overview",
},
{
type: "link",
path: "/architectural-modules/workflow-engine/in-memory",
title: "In-Memory",
},
{
type: "link",
path: "/architectural-modules/workflow-engine/redis",
title: "Redis",
path: "/architectural-modules/cache/create",
title: "Create Cache Module",
},
],
},
],
},
{
type: "category",
title: "Event Modules",
initialOpen: true,
children: [
{
type: "link",
path: "/architectural-modules/event",
title: "Overview",
},
{
type: "link",
path: "/architectural-modules/event/local",
title: "Local",
},
{
type: "link",
path: "/architectural-modules/event/redis",
title: "Redis",
},
{
type: "sub-category",
title: "Guides",
children: [
{
type: "link",
path: "/architectural-modules/event/create",
title: "Create Event Module",
},
],
},
],
},
{
type: "category",
title: "File Module Providers",
initialOpen: true,
children: [
{
type: "link",
path: "/architectural-modules/file",
title: "Overview",
},
{
type: "link",
path: "/architectural-modules/file/local",
title: "Local",
},
{
type: "link",
path: "/architectural-modules/file/s3",
title: "AWS S3 (and Compatible APIs)",
},
{
type: "sub-category",
title: "Guides",
children: [
{
type: "link",
path: "/references/file-provider-module",
title: "Create File Provider",
},
],
},
],
},
{
type: "category",
title: "Notification Module Providers",
initialOpen: true,
children: [
{
type: "link",
path: "/architectural-modules/notification",
title: "Overview",
},
{
type: "link",
path: "/architectural-modules/notification/local",
title: "Local",
},
{
type: "link",
path: "/architectural-modules/notification/sendgrid",
title: "SendGrid",
},
{
type: "sub-category",
title: "Guides",
children: [
{
type: "link",
path: "/references/notification-provider-module",
title: "Create Notification Provider",
},
{
type: "link",
path: "/integrations/guides/resend",
title: "Integrate Resend",
},
{
type: "link",
path: "/architectural-modules/notification/send-notification",
title: "Send Notification",
},
],
},
],
},
{
type: "category",
title: "Workflow Engine Modules",
initialOpen: true,
children: [
{
type: "link",
path: "/architectural-modules/workflow-engine",
title: "Overview",
},
{
type: "link",
path: "/architectural-modules/workflow-engine/in-memory",
title: "In-Memory",
},
{
type: "link",
path: "/architectural-modules/workflow-engine/redis",
title: "Redis",
},
],
},
]
@@ -0,0 +1,48 @@
import { apiKeySidebar } from "./api-key.mjs"
import { authSidebar } from "./auth.mjs"
import { cartSidebar } from "./cart.mjs"
import { currencySidebar } from "./currency.mjs"
import { customerSidebar } from "./customer.mjs"
import { fulfillmentSidebar } from "./fulfillment.mjs"
import { inventorySidebar } from "./inventory.mjs"
import { orderSidebar } from "./order-module.mjs"
import { paymentSidebar } from "./payment.mjs"
import { pricingSidebar } from "./pricing.mjs"
import { productSidebar } from "./product.mjs"
import { promotionSidebar } from "./promotion.mjs"
import { regionSidebar } from "./region.mjs"
import { salesChannelSidebar } from "./sales-channel.mjs"
import { stockLocationSidebar } from "./stock-location.mjs"
import { storeSidebar } from "./store.mjs"
import { taxSidebar } from "./tax.mjs"
import { userSidebar } from "./user.mjs"
/** @type {import('types').Sidebar.SidebarItem[]} */
export const commerceModulesSidebar = [
{
type: "link",
title: "Overview",
path: "/commerce-modules",
},
{
type: "separator",
},
...apiKeySidebar,
...authSidebar,
...cartSidebar,
...currencySidebar,
...customerSidebar,
...fulfillmentSidebar,
...inventorySidebar,
...orderSidebar,
...paymentSidebar,
...pricingSidebar,
...productSidebar,
...promotionSidebar,
...regionSidebar,
...salesChannelSidebar,
...stockLocationSidebar,
...storeSidebar,
...taxSidebar,
...userSidebar,
]
-48
View File
@@ -1,48 +0,0 @@
/** @type {import('types').Sidebar.SidebarItem[]} */
export const examplesSidebar = [
{
type: "sidebar",
sidebar_id: "examples",
title: "Examples",
children: [
{
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: [],
},
],
},
]
-15
View File
@@ -1,15 +0,0 @@
/** @type {import('types').Sidebar.SidebarItem[]} */
export const pluginsSidebar = [
{
type: "sidebar",
sidebar_id: "plugins",
title: "Plugins",
children: [
{
type: "link",
title: "Overview",
path: "/plugins",
},
],
},
]
+89 -91
View File
@@ -1,114 +1,112 @@
/** @type {import('types').Sidebar.SidebarItem[]} */
export const troubleshootingSidebar = [
{
type: "sidebar",
sidebar_id: "troubleshooting",
title: "Troubleshooting",
type: "link",
path: "/troubleshooting",
title: "Overview",
},
{
type: "separator",
},
{
type: "category",
title: "Installation",
initialOpen: true,
children: [
{
type: "link",
path: "/troubleshooting",
title: "Overview",
path: "/troubleshooting/create-medusa-app-errors",
title: "Create Medusa App Errors",
},
{
type: "separator",
type: "link",
path: "/troubleshooting/errors-installing-cli",
title: "Errors Installing CLI",
},
{
type: "category",
title: "Installation",
children: [
{
type: "link",
path: "/troubleshooting/create-medusa-app-errors",
title: "Create Medusa App Errors",
},
{
type: "link",
path: "/troubleshooting/errors-installing-cli",
title: "Errors Installing CLI",
},
{
type: "link",
path: "/troubleshooting/general-errors",
title: "General Errors",
},
],
type: "link",
path: "/troubleshooting/general-errors",
title: "General Errors",
},
],
},
{
type: "category",
title: "Medusa Application",
initialOpen: true,
children: [
{
type: "link",
path: "/troubleshooting/eaddrinuse",
title: "EADDRINUSE Error",
},
{
type: "category",
title: "Medusa Application",
children: [
{
type: "link",
path: "/troubleshooting/eaddrinuse",
title: "EADDRINUSE Error",
},
{
type: "link",
path: "/troubleshooting/database-errors",
title: "Database Errors",
},
{
type: "link",
path: "/troubleshooting/dist-imports",
title: "Importing from /dist",
},
{
type: "link",
path: "/troubleshooting/workflow-errors",
title: "Workflow Errors",
},
{
type: "link",
path: "/troubleshooting/test-errors",
title: "Test Errors",
},
],
type: "link",
path: "/troubleshooting/database-errors",
title: "Database Errors",
},
{
type: "category",
title: "Admin Development",
children: [
{
type: "link",
path: "/troubleshooting/medusa-admin/no-widget-route",
title: "Widget or Route not Showing",
},
],
type: "link",
path: "/troubleshooting/dist-imports",
title: "Importing from /dist",
},
{
type: "category",
title: "Upgrade",
children: [
{
type: "link",
path: "/troubleshooting/errors-after-upgrading",
title: "Errors After Upgrading",
},
],
type: "link",
path: "/troubleshooting/workflow-errors",
title: "Workflow Errors",
},
{
type: "category",
title: "Frontend",
children: [
{
type: "link",
path: "/troubleshooting/cors-errors",
title: "CORS Errors",
},
],
type: "link",
path: "/troubleshooting/test-errors",
title: "Test Errors",
},
],
},
{
type: "category",
title: "Admin Development",
initialOpen: true,
children: [
{
type: "category",
title: "Integrations",
hasTitleStyling: true,
children: [
{
type: "link",
path: "/troubleshooting/s3",
title: "S3 Module Provider Errors",
},
],
type: "link",
path: "/troubleshooting/medusa-admin/no-widget-route",
title: "Widget or Route not Showing",
},
],
},
{
type: "category",
title: "Upgrade",
initialOpen: true,
children: [
{
type: "link",
path: "/troubleshooting/errors-after-upgrading",
title: "Errors After Upgrading",
},
],
},
{
type: "category",
title: "Frontend",
initialOpen: true,
children: [
{
type: "link",
path: "/troubleshooting/cors-errors",
title: "CORS Errors",
},
],
},
{
type: "category",
title: "Integrations",
initialOpen: true,
children: [
{
type: "link",
path: "/troubleshooting/s3",
title: "S3 Module Provider Errors",
},
],
},