finish sidebar changes
This commit is contained in:
1 parent
affd5e83d4
commit
0c71bce1e2
16 files changed
+17605
-17788
No files matched your search
@@ -14,7 +14,7 @@ A commerce module also defines data models, representing tables in the database.
|
|||||||
|
|
||||||
## Commerce Modules List
|
## Commerce Modules List
|
||||||
|
|
||||||
<ChildDocs onlyTopLevel={true} type="item" />
|
<ChildDocs onlyTopLevel={true} defaultItemsPerRow={2} hideItems={["Overview"]} />
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
import { ChildDocs } from "docs-ui"
|
|
||||||
|
|
||||||
export const metadata = {
|
|
||||||
title: `Plugins`,
|
|
||||||
}
|
|
||||||
|
|
||||||
# {metadata.title}
|
|
||||||
|
|
||||||
A plugin is a package of re-usable Medusa customizations, including [modules](!docs!/learn/fundamentals/modules), [workflows](!docs!/learn/fundamentals/workflows), [API routes](!docs!/learn/fundamentals/api-routes), and more.
|
|
||||||
|
|
||||||
Plugins are useful if you want to re-use your customizations across Medusa applications, or you want to share those customizations with the community. You publish your plugin to NPM, then install it in a Medusa application to use its features.
|
|
||||||
|
|
||||||
<Note>
|
|
||||||
|
|
||||||
Learn more about plugins and their difference from modules in [this documentation](!docs!/learn/fundamentals/plugins).
|
|
||||||
|
|
||||||
</Note>
|
|
||||||
|
|
||||||
## Guides
|
|
||||||
|
|
||||||
<Note>
|
|
||||||
|
|
||||||
The sections in this guide help technical users build plugins in Medusa. If you're not a technical user, refer your technical team to this documentation instead.
|
|
||||||
|
|
||||||
</Note>
|
|
||||||
|
|
||||||
<ChildDocs showItems={["Guides"]} hideTitle />
|
|
||||||
@@ -12,4 +12,4 @@ The following troubleshooting guides are intended for technical users. If you're
|
|||||||
|
|
||||||
</Note>
|
</Note>
|
||||||
|
|
||||||
<ChildDocs hideItems={["Overview"]} />
|
<ChildDocs hideItems={["Overview"]} defaultItemsPerRow={2} />
|
||||||
@@ -98,7 +98,7 @@ export const generatedEditDates = {
|
|||||||
"app/commerce-modules/user/module-options/page.mdx": "2024-09-30T08:43:53.171Z",
|
"app/commerce-modules/user/module-options/page.mdx": "2024-09-30T08:43:53.171Z",
|
||||||
"app/commerce-modules/user/user-creation-flows/page.mdx": "2025-02-26T11:35:54.685Z",
|
"app/commerce-modules/user/user-creation-flows/page.mdx": "2025-02-26T11:35:54.685Z",
|
||||||
"app/commerce-modules/user/page.mdx": "2025-02-26T11:18:00.382Z",
|
"app/commerce-modules/user/page.mdx": "2025-02-26T11:18:00.382Z",
|
||||||
"app/commerce-modules/page.mdx": "2024-12-23T14:38:21.064Z",
|
"app/commerce-modules/page.mdx": "2025-03-10T13:51:30.338Z",
|
||||||
"app/create-medusa-app/page.mdx": "2025-01-16T10:00:25.975Z",
|
"app/create-medusa-app/page.mdx": "2025-01-16T10:00:25.975Z",
|
||||||
"app/deployment/admin/vercel/page.mdx": "2024-10-16T08:10:29.377Z",
|
"app/deployment/admin/vercel/page.mdx": "2024-10-16T08:10:29.377Z",
|
||||||
"app/deployment/medusa-application/railway/page.mdx": "2025-02-24T07:35:43.421Z",
|
"app/deployment/medusa-application/railway/page.mdx": "2025-02-24T07:35:43.421Z",
|
||||||
@@ -186,7 +186,7 @@ export const generatedEditDates = {
|
|||||||
"app/troubleshooting/errors-installing-cli/page.mdx": "2024-05-03T17:36:38+03:00",
|
"app/troubleshooting/errors-installing-cli/page.mdx": "2024-05-03T17:36:38+03:00",
|
||||||
"app/troubleshooting/general-errors/page.mdx": "2024-05-03T17:36:38+03:00",
|
"app/troubleshooting/general-errors/page.mdx": "2024-05-03T17:36:38+03:00",
|
||||||
"app/troubleshooting/s3/page.mdx": "2025-01-24T13:47:24.994Z",
|
"app/troubleshooting/s3/page.mdx": "2025-01-24T13:47:24.994Z",
|
||||||
"app/troubleshooting/page.mdx": "2025-02-26T11:40:54.162Z",
|
"app/troubleshooting/page.mdx": "2025-03-10T13:54:11.701Z",
|
||||||
"app/page.mdx": "2025-02-26T10:23:58.440Z",
|
"app/page.mdx": "2025-02-26T10:23:58.440Z",
|
||||||
"app/commerce-modules/auth/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
|
"app/commerce-modules/auth/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
|
||||||
"app/commerce-modules/auth/auth-flows/page.mdx": "2025-01-13T11:31:35.361Z",
|
"app/commerce-modules/auth/auth-flows/page.mdx": "2025-01-13T11:31:35.361Z",
|
||||||
|
|||||||
@@ -0,0 +1,264 @@
|
|||||||
|
const generatedgeneratedArchitecturalModulesSidebarSidebar = {
|
||||||
|
"sidebar_id": "architectural-modules",
|
||||||
|
"title": "Architectural Modules",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules",
|
||||||
|
"title": "Overview",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "separator"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Cache Modules",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/cache",
|
||||||
|
"title": "Overview",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/cache/in-memory",
|
||||||
|
"title": "In-Memory",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/cache/redis",
|
||||||
|
"title": "Redis",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "sub-category",
|
||||||
|
"title": "Guides",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/cache/create",
|
||||||
|
"title": "Create Cache Module",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Event Modules",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/event",
|
||||||
|
"title": "Overview",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/event/local",
|
||||||
|
"title": "Local",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/event/redis",
|
||||||
|
"title": "Redis",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "sub-category",
|
||||||
|
"title": "Guides",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/event/create",
|
||||||
|
"title": "Create Event Module",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "File Module Providers",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/file",
|
||||||
|
"title": "Overview",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/file/local",
|
||||||
|
"title": "Local",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/file/s3",
|
||||||
|
"title": "AWS S3 (and Compatible APIs)",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "sub-category",
|
||||||
|
"title": "Guides",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/references/file-provider-module",
|
||||||
|
"title": "Create File Provider",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Notification Module Providers",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/notification",
|
||||||
|
"title": "Overview",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/notification/local",
|
||||||
|
"title": "Local",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/notification/sendgrid",
|
||||||
|
"title": "SendGrid",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "sub-category",
|
||||||
|
"title": "Guides",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/references/notification-provider-module",
|
||||||
|
"title": "Create Notification Provider",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/integrations/guides/resend",
|
||||||
|
"title": "Integrate Resend",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/notification/send-notification",
|
||||||
|
"title": "Send Notification",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Workflow Engine Modules",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/workflow-engine",
|
||||||
|
"title": "Overview",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/workflow-engine/in-memory",
|
||||||
|
"title": "In-Memory",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/architectural-modules/workflow-engine/redis",
|
||||||
|
"title": "Redis",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
export default generatedgeneratedArchitecturalModulesSidebarSidebar
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -10,6 +10,9 @@ const generatedgeneratedReferencesSidebarSidebar = {
|
|||||||
"title": "Overview",
|
"title": "Overview",
|
||||||
"children": []
|
"children": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "separator"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"loaded": true,
|
"loaded": true,
|
||||||
"isPathHref": true,
|
"isPathHref": true,
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,169 @@
|
|||||||
|
const generatedgeneratedTroubleshootingSidebarSidebar = {
|
||||||
|
"sidebar_id": "troubleshooting",
|
||||||
|
"title": "Troubleshooting",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting",
|
||||||
|
"title": "Overview",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "separator"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Installation",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/create-medusa-app-errors",
|
||||||
|
"title": "Create Medusa App Errors",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/errors-installing-cli",
|
||||||
|
"title": "Errors Installing CLI",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/general-errors",
|
||||||
|
"title": "General Errors",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Medusa Application",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/eaddrinuse",
|
||||||
|
"title": "EADDRINUSE Error",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/database-errors",
|
||||||
|
"title": "Database Errors",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/dist-imports",
|
||||||
|
"title": "Importing from /dist",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/workflow-errors",
|
||||||
|
"title": "Workflow Errors",
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/test-errors",
|
||||||
|
"title": "Test Errors",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Admin Development",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/medusa-admin/no-widget-route",
|
||||||
|
"title": "Widget or Route not Showing",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Upgrade",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/errors-after-upgrading",
|
||||||
|
"title": "Errors After Upgrading",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Frontend",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/cors-errors",
|
||||||
|
"title": "CORS Errors",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "category",
|
||||||
|
"title": "Integrations",
|
||||||
|
"initialOpen": true,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"loaded": true,
|
||||||
|
"isPathHref": true,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/troubleshooting/s3",
|
||||||
|
"title": "S3 Module Provider Errors",
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
export default generatedgeneratedTroubleshootingSidebarSidebar
|
||||||
@@ -1,97 +1,15 @@
|
|||||||
import { apiKeySidebar } from "./sidebars/api-key.mjs"
|
|
||||||
import { architecturalModulesSidebar } from "./sidebars/architectural-modules.mjs"
|
import { architecturalModulesSidebar } from "./sidebars/architectural-modules.mjs"
|
||||||
import { authSidebar } from "./sidebars/auth.mjs"
|
|
||||||
import { cartSidebar } from "./sidebars/cart.mjs"
|
|
||||||
import { currencySidebar } from "./sidebars/currency.mjs"
|
|
||||||
import { customerSidebar } from "./sidebars/customer.mjs"
|
|
||||||
import { fulfillmentSidebar } from "./sidebars/fulfillment.mjs"
|
|
||||||
import { integrationsSidebar } from "./sidebars/integrations.mjs"
|
import { integrationsSidebar } from "./sidebars/integrations.mjs"
|
||||||
import { pluginsSidebar } from "./sidebars/plugins.mjs"
|
|
||||||
import { inventorySidebar } from "./sidebars/inventory.mjs"
|
|
||||||
import { orderSidebar } from "./sidebars/order-module.mjs"
|
|
||||||
import { paymentSidebar } from "./sidebars/payment.mjs"
|
|
||||||
import { pricingSidebar } from "./sidebars/pricing.mjs"
|
|
||||||
import { productSidebar } from "./sidebars/product.mjs"
|
|
||||||
import { promotionSidebar } from "./sidebars/promotion.mjs"
|
|
||||||
import { recipesSidebar } from "./sidebars/recipes.mjs"
|
import { recipesSidebar } from "./sidebars/recipes.mjs"
|
||||||
import { referencesSidebar } from "./sidebars/references.mjs"
|
import { referencesSidebar } from "./sidebars/references.mjs"
|
||||||
import { regionSidebar } from "./sidebars/region.mjs"
|
|
||||||
import { salesChannelSidebar } from "./sidebars/sales-channel.mjs"
|
|
||||||
import { toolsSidebar } from "./sidebars/tools.mjs"
|
import { toolsSidebar } from "./sidebars/tools.mjs"
|
||||||
import { stockLocationSidebar } from "./sidebars/stock-location.mjs"
|
|
||||||
import { storeSidebar } from "./sidebars/store.mjs"
|
|
||||||
import { storefrontDevelopmentSidebar } from "./sidebars/storefront.mjs"
|
import { storefrontDevelopmentSidebar } from "./sidebars/storefront.mjs"
|
||||||
import { taxSidebar } from "./sidebars/tax.mjs"
|
|
||||||
import { troubleshootingSidebar } from "./sidebars/troubleshooting.mjs"
|
import { troubleshootingSidebar } from "./sidebars/troubleshooting.mjs"
|
||||||
import { userSidebar } from "./sidebars/user.mjs"
|
|
||||||
import { examplesSidebar } from "./sidebars/examples.mjs"
|
|
||||||
import { howToTutorialsSidebar } from "./sidebars/how-to-tutorials.mjs"
|
import { howToTutorialsSidebar } from "./sidebars/how-to-tutorials.mjs"
|
||||||
|
import { commerceModulesSidebar } from "./sidebars/commerce-modules.mjs"
|
||||||
|
|
||||||
/** @type {import("types").Sidebar.RawSidebar[]} */
|
/** @type {import("types").Sidebar.RawSidebar[]} */
|
||||||
export const sidebar = [
|
export const sidebar = [
|
||||||
{
|
|
||||||
sidebar_id: "resources",
|
|
||||||
title: "Development Resources",
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
type: "link",
|
|
||||||
path: "/",
|
|
||||||
title: "Overview",
|
|
||||||
},
|
|
||||||
...examplesSidebar,
|
|
||||||
{
|
|
||||||
type: "separator",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "link",
|
|
||||||
path: "/commerce-modules",
|
|
||||||
title: "Commerce Modules",
|
|
||||||
hideChildren: true,
|
|
||||||
sort_sidebar: "alphabetize",
|
|
||||||
children: [
|
|
||||||
...apiKeySidebar,
|
|
||||||
...authSidebar,
|
|
||||||
...cartSidebar,
|
|
||||||
...currencySidebar,
|
|
||||||
...customerSidebar,
|
|
||||||
...fulfillmentSidebar,
|
|
||||||
...inventorySidebar,
|
|
||||||
...orderSidebar,
|
|
||||||
...paymentSidebar,
|
|
||||||
...pricingSidebar,
|
|
||||||
...productSidebar,
|
|
||||||
...promotionSidebar,
|
|
||||||
...regionSidebar,
|
|
||||||
...salesChannelSidebar,
|
|
||||||
...stockLocationSidebar,
|
|
||||||
...storeSidebar,
|
|
||||||
...taxSidebar,
|
|
||||||
...userSidebar,
|
|
||||||
],
|
|
||||||
},
|
|
||||||
...architecturalModulesSidebar,
|
|
||||||
...pluginsSidebar,
|
|
||||||
{
|
|
||||||
type: "separator",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "category",
|
|
||||||
title: "General",
|
|
||||||
children: [...troubleshootingSidebar],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "category",
|
|
||||||
title: "Admin",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
type: "link",
|
|
||||||
path: "/admin-widget-injection-zones",
|
|
||||||
title: "Admin Widget Injection Zones",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
sidebar_id: "recipes",
|
sidebar_id: "recipes",
|
||||||
title: "Recipes",
|
title: "Recipes",
|
||||||
@@ -122,4 +40,19 @@ export const sidebar = [
|
|||||||
title: "References",
|
title: "References",
|
||||||
items: referencesSidebar,
|
items: referencesSidebar,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
sidebar_id: "commerce-modules",
|
||||||
|
title: "Commerce Modules",
|
||||||
|
items: commerceModulesSidebar,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sidebar_id: "architectural-modules",
|
||||||
|
title: "Architectural Modules",
|
||||||
|
items: architecturalModulesSidebar,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sidebar_id: "troubleshooting",
|
||||||
|
title: "Troubleshooting",
|
||||||
|
items: troubleshootingSidebar,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
@@ -1,177 +1,175 @@
|
|||||||
/** @type {import('types').Sidebar.SidebarItem[]} */
|
/** @type {import('types').Sidebar.SidebarItem[]} */
|
||||||
export const architecturalModulesSidebar = [
|
export const architecturalModulesSidebar = [
|
||||||
{
|
{
|
||||||
type: "sidebar",
|
type: "link",
|
||||||
sidebar_id: "architectural-modules",
|
path: "/architectural-modules",
|
||||||
title: "Architectural Modules",
|
title: "Overview",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "separator",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "category",
|
||||||
|
title: "Cache Modules",
|
||||||
|
initialOpen: true,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: "link",
|
type: "link",
|
||||||
path: "/architectural-modules",
|
path: "/architectural-modules/cache",
|
||||||
title: "Overview",
|
title: "Overview",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "separator",
|
type: "link",
|
||||||
|
path: "/architectural-modules/cache/in-memory",
|
||||||
|
title: "In-Memory",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "link",
|
||||||
title: "Cache Modules",
|
path: "/architectural-modules/cache/redis",
|
||||||
|
title: "Redis",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "sub-category",
|
||||||
|
title: "Guides",
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: "link",
|
type: "link",
|
||||||
path: "/architectural-modules/cache",
|
path: "/architectural-modules/cache/create",
|
||||||
title: "Overview",
|
title: "Create Cache Module",
|
||||||
},
|
|
||||||
{
|
|
||||||
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",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
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,
|
||||||
|
]
|
||||||
@@ -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: [],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
]
|
|
||||||
@@ -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",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
]
|
|
||||||
@@ -1,114 +1,112 @@
|
|||||||
/** @type {import('types').Sidebar.SidebarItem[]} */
|
/** @type {import('types').Sidebar.SidebarItem[]} */
|
||||||
export const troubleshootingSidebar = [
|
export const troubleshootingSidebar = [
|
||||||
{
|
{
|
||||||
type: "sidebar",
|
type: "link",
|
||||||
sidebar_id: "troubleshooting",
|
path: "/troubleshooting",
|
||||||
title: "Troubleshooting",
|
title: "Overview",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "separator",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "category",
|
||||||
|
title: "Installation",
|
||||||
|
initialOpen: true,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: "link",
|
type: "link",
|
||||||
path: "/troubleshooting",
|
path: "/troubleshooting/create-medusa-app-errors",
|
||||||
title: "Overview",
|
title: "Create Medusa App Errors",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "separator",
|
type: "link",
|
||||||
|
path: "/troubleshooting/errors-installing-cli",
|
||||||
|
title: "Errors Installing CLI",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "link",
|
||||||
title: "Installation",
|
path: "/troubleshooting/general-errors",
|
||||||
children: [
|
title: "General Errors",
|
||||||
{
|
},
|
||||||
type: "link",
|
],
|
||||||
path: "/troubleshooting/create-medusa-app-errors",
|
},
|
||||||
title: "Create Medusa App Errors",
|
{
|
||||||
},
|
type: "category",
|
||||||
{
|
title: "Medusa Application",
|
||||||
type: "link",
|
initialOpen: true,
|
||||||
path: "/troubleshooting/errors-installing-cli",
|
children: [
|
||||||
title: "Errors Installing CLI",
|
{
|
||||||
},
|
type: "link",
|
||||||
{
|
path: "/troubleshooting/eaddrinuse",
|
||||||
type: "link",
|
title: "EADDRINUSE Error",
|
||||||
path: "/troubleshooting/general-errors",
|
|
||||||
title: "General Errors",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "link",
|
||||||
title: "Medusa Application",
|
path: "/troubleshooting/database-errors",
|
||||||
children: [
|
title: "Database Errors",
|
||||||
{
|
|
||||||
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: "category",
|
type: "link",
|
||||||
title: "Admin Development",
|
path: "/troubleshooting/dist-imports",
|
||||||
children: [
|
title: "Importing from /dist",
|
||||||
{
|
|
||||||
type: "link",
|
|
||||||
path: "/troubleshooting/medusa-admin/no-widget-route",
|
|
||||||
title: "Widget or Route not Showing",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "link",
|
||||||
title: "Upgrade",
|
path: "/troubleshooting/workflow-errors",
|
||||||
children: [
|
title: "Workflow Errors",
|
||||||
{
|
|
||||||
type: "link",
|
|
||||||
path: "/troubleshooting/errors-after-upgrading",
|
|
||||||
title: "Errors After Upgrading",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "link",
|
||||||
title: "Frontend",
|
path: "/troubleshooting/test-errors",
|
||||||
children: [
|
title: "Test Errors",
|
||||||
{
|
|
||||||
type: "link",
|
|
||||||
path: "/troubleshooting/cors-errors",
|
|
||||||
title: "CORS Errors",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "category",
|
||||||
|
title: "Admin Development",
|
||||||
|
initialOpen: true,
|
||||||
|
children: [
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "link",
|
||||||
title: "Integrations",
|
path: "/troubleshooting/medusa-admin/no-widget-route",
|
||||||
hasTitleStyling: true,
|
title: "Widget or Route not Showing",
|
||||||
children: [
|
},
|
||||||
{
|
],
|
||||||
type: "link",
|
},
|
||||||
path: "/troubleshooting/s3",
|
{
|
||||||
title: "S3 Module Provider Errors",
|
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",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import { Sidebar } from "types"
|
import { Sidebar } from "types"
|
||||||
|
|
||||||
const getDefaultSidebar = async () =>
|
const getDefaultSidebar = async (): Promise<{ default: Sidebar.Sidebar }> => ({
|
||||||
import("@/generated/generated-resources-sidebar.mjs") as Promise<{
|
default: {
|
||||||
default: Sidebar.Sidebar
|
sidebar_id: "default",
|
||||||
}>
|
title: "",
|
||||||
|
items: [],
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
const sidebarMappings: {
|
const sidebarMappings: {
|
||||||
module: () => Promise<{ default: Sidebar.Sidebar }>
|
module: () => Promise<{ default: Sidebar.Sidebar }>
|
||||||
@@ -75,6 +78,29 @@ const sidebarMappings: {
|
|||||||
"/references-overview",
|
"/references-overview",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
module: async () =>
|
||||||
|
import(
|
||||||
|
"@/generated/generated-architectural-modules-sidebar.mjs"
|
||||||
|
) as Promise<{
|
||||||
|
default: Sidebar.Sidebar
|
||||||
|
}>,
|
||||||
|
paths: ["/architectural-modules"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
module: async () =>
|
||||||
|
import("@/generated/generated-commerce-modules-sidebar.mjs") as Promise<{
|
||||||
|
default: Sidebar.Sidebar
|
||||||
|
}>,
|
||||||
|
paths: ["/commerce-modules"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
module: async () =>
|
||||||
|
import("@/generated/generated-troubleshooting-sidebar.mjs") as Promise<{
|
||||||
|
default: Sidebar.Sidebar
|
||||||
|
}>,
|
||||||
|
paths: ["/troubleshooting"],
|
||||||
|
},
|
||||||
]
|
]
|
||||||
export async function getSidebarForPath(
|
export async function getSidebarForPath(
|
||||||
currentPath: string
|
currentPath: string
|
||||||
|
|||||||
Reference in new issue
Block a user