fixes + added new sidebars
This commit is contained in:
@@ -92,7 +92,6 @@ export default async function getCoreFlowsRefSidebarChildren(): Promise<
|
||||
title: directory.name.replaceAll("_", " "),
|
||||
children: [],
|
||||
loaded: true,
|
||||
initialOpen: false,
|
||||
}
|
||||
|
||||
if (workflowItems.length) {
|
||||
|
||||
@@ -29,7 +29,6 @@ export default function numberSidebarItems(
|
||||
numberedItems.push(
|
||||
item.type === "category"
|
||||
? {
|
||||
initialOpen: false,
|
||||
...item,
|
||||
title: item.chapterTitle,
|
||||
}
|
||||
@@ -38,7 +37,6 @@ export default function numberSidebarItems(
|
||||
title: item.chapterTitle,
|
||||
children: [],
|
||||
loaded: true,
|
||||
initialOpen: false,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ export const SidebarItemCategory = ({
|
||||
}: SidebarItemCategoryProps) => {
|
||||
const [showLoading, setShowLoading] = useState(false)
|
||||
const [open, setOpen] = useState(
|
||||
item.initialOpen !== undefined ? item.initialOpen : true
|
||||
item.initialOpen !== undefined ? item.initialOpen : false
|
||||
)
|
||||
const {
|
||||
isItemActive,
|
||||
|
||||
@@ -311,6 +311,7 @@ export const SidebarProvider = ({
|
||||
findSidebarItem({
|
||||
sidebarItems: s.items,
|
||||
item: { type: "link", path: activePath, title: "" },
|
||||
compareTitles: false,
|
||||
}) !== undefined
|
||||
) || sidebars[0]
|
||||
)
|
||||
|
||||
@@ -68,7 +68,7 @@ export const findSidebarItem = ({
|
||||
}): Sidebar.SidebarItem | undefined => {
|
||||
let foundItem: Sidebar.SidebarItem | undefined
|
||||
sidebarItems.some((i) => {
|
||||
if (areSidebarItemsEqual({ itemA: i, itemB: item })) {
|
||||
if (areSidebarItemsEqual({ itemA: i, itemB: item, compareTitles })) {
|
||||
foundItem = i
|
||||
} else if (checkChildren && "children" in i && i.children) {
|
||||
foundItem = findSidebarItem({
|
||||
|
||||
@@ -3,6 +3,10 @@ export const auth = [
|
||||
"title": "Reset Password",
|
||||
"path": "https://docs.medusajs.com/user-guide/reset-password"
|
||||
},
|
||||
{
|
||||
"title": "Create Actor Type",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/auth/create-actor-type"
|
||||
},
|
||||
{
|
||||
"title": "Log-out Customer in Storefront",
|
||||
"path": "https://docs.medusajs.com/resources/storefront-development/customers/log-out"
|
||||
@@ -27,6 +31,10 @@ export const auth = [
|
||||
"title": "Third-Party or Social Login in Storefront",
|
||||
"path": "https://docs.medusajs.com/resources/storefront-development/customers/third-party-login"
|
||||
},
|
||||
{
|
||||
"title": "Create Auth Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/auth/provider"
|
||||
},
|
||||
{
|
||||
"title": "setAuthAppMetadataStep",
|
||||
"path": "https://docs.medusajs.com/resources/references/medusa-workflows/steps/setAuthAppMetadataStep"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
export const cache = [
|
||||
{
|
||||
"title": "Create Cache Module",
|
||||
"path": "https://docs.medusajs.com/resources/architectural-modules/cache/create"
|
||||
}
|
||||
]
|
||||
@@ -1,4 +1,8 @@
|
||||
export const cart = [
|
||||
{
|
||||
"title": "Extend Cart",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/cart/extend"
|
||||
},
|
||||
{
|
||||
"title": "Implement Custom Line Item Pricing in Medusa",
|
||||
"path": "https://docs.medusajs.com/resources/examples/guides/custom-item-price"
|
||||
|
||||
@@ -11,6 +11,10 @@ export const customer = [
|
||||
"title": "Customers Overview",
|
||||
"path": "https://docs.medusajs.com/user-guide/customers"
|
||||
},
|
||||
{
|
||||
"title": "Extend Customer",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/customer/extend"
|
||||
},
|
||||
{
|
||||
"title": "Manage Customer Addresses in Storefront",
|
||||
"path": "https://docs.medusajs.com/resources/storefront-development/customers/addresses"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
export const event = [
|
||||
{
|
||||
"title": "Create Event Module",
|
||||
"path": "https://docs.medusajs.com/resources/architectural-modules/event/create"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
export const extendModule = [
|
||||
{
|
||||
"title": "Extend Cart",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/cart/extend"
|
||||
},
|
||||
{
|
||||
"title": "Extend Customer",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/customer/extend"
|
||||
},
|
||||
{
|
||||
"title": "Extend Product",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/extend"
|
||||
},
|
||||
{
|
||||
"title": "Extend Promotion",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/promotion/extend"
|
||||
}
|
||||
]
|
||||
@@ -267,6 +267,10 @@ export const fulfillment = [
|
||||
"title": "createLocationFulfillmentSetWorkflow",
|
||||
"path": "https://docs.medusajs.com/resources/references/medusa-workflows/createLocationFulfillmentSetWorkflow"
|
||||
},
|
||||
{
|
||||
"title": "Create Fulfillment Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/fulfillment/provider"
|
||||
},
|
||||
{
|
||||
"title": "fulfillment",
|
||||
"path": "https://docs.medusajs.com/resources/references/js-sdk/admin/fulfillment"
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
export const howTo = [
|
||||
{
|
||||
"title": "Create Cache Module",
|
||||
"path": "https://docs.medusajs.com/resources/architectural-modules/cache/create"
|
||||
},
|
||||
{
|
||||
"title": "Create Event Module",
|
||||
"path": "https://docs.medusajs.com/resources/architectural-modules/event/create"
|
||||
},
|
||||
{
|
||||
"title": "Send Notification",
|
||||
"path": "https://docs.medusajs.com/resources/architectural-modules/notification/send-notification"
|
||||
},
|
||||
{
|
||||
"title": "Create Actor Type",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/auth/create-actor-type"
|
||||
},
|
||||
{
|
||||
"title": "Handle Password Reset Event",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/auth/reset-password"
|
||||
},
|
||||
{
|
||||
"title": "Get Variant Prices",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/guides/price"
|
||||
},
|
||||
{
|
||||
"title": "Get Variant Price with Taxes",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/guides/price-with-taxes"
|
||||
},
|
||||
{
|
||||
"title": "Create Auth Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/auth/provider"
|
||||
},
|
||||
{
|
||||
"title": "Create Fulfillment Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/fulfillment/provider"
|
||||
},
|
||||
{
|
||||
"title": "Create Notification Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/notification-provider-module"
|
||||
},
|
||||
{
|
||||
"title": "Create Payment Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/payment/provider"
|
||||
},
|
||||
{
|
||||
"title": "Create Tax Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/tax/provider"
|
||||
}
|
||||
]
|
||||
@@ -1,40 +1,45 @@
|
||||
export * from "./user-guide.js"
|
||||
export * from "./fulfillment.js"
|
||||
export * from "./payment.js"
|
||||
export * from "./cache.js"
|
||||
export * from "./server.js"
|
||||
export * from "./how-to.js"
|
||||
export * from "./product.js"
|
||||
export * from "./event.js"
|
||||
export * from "./pricing.js"
|
||||
export * from "./promotion.js"
|
||||
export * from "./product.js"
|
||||
export * from "./auth.js"
|
||||
export * from "./user.js"
|
||||
export * from "./api-key.js"
|
||||
export * from "./auth.js"
|
||||
export * from "./notification.js"
|
||||
export * from "./workflow.js"
|
||||
export * from "./stock-location.js"
|
||||
export * from "./store.js"
|
||||
export * from "./region.js"
|
||||
export * from "./sales-channel.js"
|
||||
export * from "./user.js"
|
||||
export * from "./store.js"
|
||||
export * from "./currency.js"
|
||||
export * from "./cart.js"
|
||||
export * from "./tax.js"
|
||||
export * from "./tutorial.js"
|
||||
export * from "./extend-module.js"
|
||||
export * from "./concept.js"
|
||||
export * from "./query.js"
|
||||
export * from "./storefront.js"
|
||||
export * from "./order.js"
|
||||
export * from "./stripe.js"
|
||||
export * from "./example.js"
|
||||
export * from "./product-collection.js"
|
||||
export * from "./product-category.js"
|
||||
export * from "./publishable-api-key.js"
|
||||
export * from "./step.js"
|
||||
export * from "./event-bus.js"
|
||||
export * from "./remote-query.js"
|
||||
export * from "./link.js"
|
||||
export * from "./locking.js"
|
||||
export * from "./js-sdk.js"
|
||||
export * from "./customer.js"
|
||||
export * from "./inventory.js"
|
||||
export * from "./cart.js"
|
||||
export * from "./server.js"
|
||||
export * from "./query.js"
|
||||
export * from "./concept.js"
|
||||
export * from "./example.js"
|
||||
export * from "./publishable-api-key.js"
|
||||
export * from "./checkout.js"
|
||||
export * from "./product-collection.js"
|
||||
export * from "./step.js"
|
||||
export * from "./product-category.js"
|
||||
export * from "./link.js"
|
||||
export * from "./remote-query.js"
|
||||
export * from "./locking.js"
|
||||
export * from "./file.js"
|
||||
export * from "./js-sdk.js"
|
||||
export * from "./event-bus.js"
|
||||
export * from "./admin.js"
|
||||
export * from "./storefront.js"
|
||||
export * from "./checkout.js"
|
||||
export * from "./logger.js"
|
||||
export * from "./tax.js"
|
||||
export * from "./notification.js"
|
||||
export * from "./stripe.js"
|
||||
export * from "./order.js"
|
||||
export * from "./admin.js"
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
export const notification = [
|
||||
{
|
||||
"title": "Send Notification",
|
||||
"path": "https://docs.medusajs.com/resources/architectural-modules/notification/send-notification"
|
||||
},
|
||||
{
|
||||
"title": "Handle Password Reset Event",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/auth/reset-password"
|
||||
},
|
||||
{
|
||||
"title": "notifyOnFailureStep",
|
||||
"path": "https://docs.medusajs.com/resources/references/medusa-workflows/steps/notifyOnFailureStep"
|
||||
@@ -18,5 +26,9 @@ export const notification = [
|
||||
{
|
||||
"title": "notification",
|
||||
"path": "https://docs.medusajs.com/resources/references/js-sdk/admin/notification"
|
||||
},
|
||||
{
|
||||
"title": "Create Notification Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/notification-provider-module"
|
||||
}
|
||||
]
|
||||
@@ -214,5 +214,9 @@ export const payment = [
|
||||
{
|
||||
"title": "payment",
|
||||
"path": "https://docs.medusajs.com/resources/references/js-sdk/store/payment"
|
||||
},
|
||||
{
|
||||
"title": "Create Payment Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/payment/provider"
|
||||
}
|
||||
]
|
||||
@@ -51,6 +51,10 @@ export const product = [
|
||||
"title": "Inventory Kits",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/inventory/inventory-kit"
|
||||
},
|
||||
{
|
||||
"title": "Extend Product",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/extend"
|
||||
},
|
||||
{
|
||||
"title": "Get Variant Prices",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/guides/price"
|
||||
@@ -59,6 +63,10 @@ export const product = [
|
||||
"title": "Get Variant Price with Taxes",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/guides/price-with-taxes"
|
||||
},
|
||||
{
|
||||
"title": "Build Wishlist Plugin",
|
||||
"path": "https://docs.medusajs.com/resources/plugins/guides/wishlist"
|
||||
},
|
||||
{
|
||||
"title": "Implement Express Checkout with Medusa",
|
||||
"path": "https://docs.medusajs.com/resources/storefront-development/guides/express-checkout"
|
||||
|
||||
@@ -15,6 +15,10 @@ export const promotion = [
|
||||
"title": "Promotions Overview",
|
||||
"path": "https://docs.medusajs.com/user-guide/promotions"
|
||||
},
|
||||
{
|
||||
"title": "Extend Promotion",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/promotion/extend"
|
||||
},
|
||||
{
|
||||
"title": "getActionsToComputeFromPromotionsStep",
|
||||
"path": "https://docs.medusajs.com/resources/references/medusa-workflows/steps/getActionsToComputeFromPromotionsStep"
|
||||
|
||||
@@ -1,4 +1,36 @@
|
||||
export const server = [
|
||||
{
|
||||
"title": "Create Cache Module",
|
||||
"path": "https://docs.medusajs.com/resources/architectural-modules/cache/create"
|
||||
},
|
||||
{
|
||||
"title": "Create Event Module",
|
||||
"path": "https://docs.medusajs.com/resources/architectural-modules/event/create"
|
||||
},
|
||||
{
|
||||
"title": "Send Notification",
|
||||
"path": "https://docs.medusajs.com/resources/architectural-modules/notification/send-notification"
|
||||
},
|
||||
{
|
||||
"title": "Create Actor Type",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/auth/create-actor-type"
|
||||
},
|
||||
{
|
||||
"title": "Handle Password Reset Event",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/auth/reset-password"
|
||||
},
|
||||
{
|
||||
"title": "Extend Cart",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/cart/extend"
|
||||
},
|
||||
{
|
||||
"title": "Extend Customer",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/customer/extend"
|
||||
},
|
||||
{
|
||||
"title": "Extend Product",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/extend"
|
||||
},
|
||||
{
|
||||
"title": "Get Variant Prices",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/guides/price"
|
||||
@@ -7,8 +39,36 @@ export const server = [
|
||||
"title": "Get Variant Price with Taxes",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/guides/price-with-taxes"
|
||||
},
|
||||
{
|
||||
"title": "Extend Promotion",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/promotion/extend"
|
||||
},
|
||||
{
|
||||
"title": "Implement Custom Line Item Pricing in Medusa",
|
||||
"path": "https://docs.medusajs.com/resources/examples/guides/custom-item-price"
|
||||
},
|
||||
{
|
||||
"title": "Build Wishlist Plugin",
|
||||
"path": "https://docs.medusajs.com/resources/plugins/guides/wishlist"
|
||||
},
|
||||
{
|
||||
"title": "Create Auth Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/auth/provider"
|
||||
},
|
||||
{
|
||||
"title": "Create Fulfillment Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/fulfillment/provider"
|
||||
},
|
||||
{
|
||||
"title": "Create Notification Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/notification-provider-module"
|
||||
},
|
||||
{
|
||||
"title": "Create Payment Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/payment/provider"
|
||||
},
|
||||
{
|
||||
"title": "Create Tax Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/tax/provider"
|
||||
}
|
||||
]
|
||||
@@ -166,5 +166,9 @@ export const tax = [
|
||||
{
|
||||
"title": "taxRegion",
|
||||
"path": "https://docs.medusajs.com/resources/references/js-sdk/admin/taxRegion"
|
||||
},
|
||||
{
|
||||
"title": "Create Tax Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/tax/provider"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
export const tutorial = [
|
||||
{
|
||||
"title": "Extend Cart",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/cart/extend"
|
||||
},
|
||||
{
|
||||
"title": "Extend Customer",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/customer/extend"
|
||||
},
|
||||
{
|
||||
"title": "Extend Product",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/product/extend"
|
||||
},
|
||||
{
|
||||
"title": "Extend Promotion",
|
||||
"path": "https://docs.medusajs.com/resources/commerce-modules/promotion/extend"
|
||||
},
|
||||
{
|
||||
"title": "Implement Custom Line Item Pricing in Medusa",
|
||||
"path": "https://docs.medusajs.com/resources/examples/guides/custom-item-price"
|
||||
},
|
||||
{
|
||||
"title": "Build Wishlist Plugin",
|
||||
"path": "https://docs.medusajs.com/resources/plugins/guides/wishlist"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user