docs: add user guide to navbar (#11611)
* docs: add user guide to navbar * fix titles
This commit is contained in:
1 parent
b45c1e1580
commit
b966198258
10 files changed
+58
-49
No files matched your search
@@ -7,7 +7,7 @@ import {
|
|||||||
} from "@medusajs/icons"
|
} from "@medusajs/icons"
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: `Page Not Found in Medusa Admin`,
|
title: `Page Not Found`,
|
||||||
}
|
}
|
||||||
|
|
||||||
# {metadata.title}
|
# {metadata.title}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { BellAlert, SidebarLeft } from "@medusajs/icons"
|
import { BellAlert, SidebarLeft } from "@medusajs/icons"
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: `Medusa Admin User Guide in Medusa Admin`,
|
title: `Medusa Admin User Guide`,
|
||||||
}
|
}
|
||||||
|
|
||||||
# {metadata.title}
|
# {metadata.title}
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import {
|
|||||||
BorderedIcon,
|
BorderedIcon,
|
||||||
Button,
|
Button,
|
||||||
GITHUB_ISSUES_LINK,
|
GITHUB_ISSUES_LINK,
|
||||||
LinkButton,
|
|
||||||
SearchModalOpener,
|
SearchModalOpener,
|
||||||
useLayout,
|
useLayout,
|
||||||
useMainNav,
|
useMainNav,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export const navDropdownItems: NavigationItem[] = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: "link",
|
type: "link",
|
||||||
title: "Guides",
|
title: "All Guides",
|
||||||
link: "/resources",
|
link: "/resources",
|
||||||
useAsFallback: true,
|
useAsFallback: true,
|
||||||
},
|
},
|
||||||
@@ -47,11 +47,6 @@ export const navDropdownItems: NavigationItem[] = [
|
|||||||
title: "Recipes",
|
title: "Recipes",
|
||||||
link: "/resources/recipes",
|
link: "/resources/recipes",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "link",
|
|
||||||
title: "Plugin Guides",
|
|
||||||
link: "/resources/plugins",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "divider",
|
type: "divider",
|
||||||
},
|
},
|
||||||
@@ -65,17 +60,17 @@ export const navDropdownItems: NavigationItem[] = [
|
|||||||
title: "Storefront Development",
|
title: "Storefront Development",
|
||||||
link: "/resources/storefront-development",
|
link: "/resources/storefront-development",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "link",
|
|
||||||
title: "UI Library",
|
|
||||||
link: "/ui",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "dropdown",
|
type: "dropdown",
|
||||||
title: "Tools & SDKs",
|
title: "Tools & SDKs",
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
type: "link",
|
||||||
|
title: "UI Library",
|
||||||
|
link: "/ui",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "link",
|
type: "link",
|
||||||
title: "Medusa CLI",
|
title: "Medusa CLI",
|
||||||
@@ -211,6 +206,11 @@ export const navDropdownItems: NavigationItem[] = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "link",
|
||||||
|
title: "User Guide",
|
||||||
|
path: "/user-guide",
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
export const searchFilters: OptionType[] = [
|
export const searchFilters: OptionType[] = [
|
||||||
@@ -224,15 +224,14 @@ export const searchFilters: OptionType[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "admin-v2",
|
value: "admin-v2",
|
||||||
label: "Admin API (v2)",
|
label: "Admin API",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "store-v2",
|
value: "store-v2",
|
||||||
label: "Store API (v2)",
|
label: "Store API",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "ui",
|
value: "ui",
|
||||||
label: "Medusa UI",
|
label: "Medusa UI",
|
||||||
},
|
},
|
||||||
// TODO add more filters
|
|
||||||
]
|
]
|
||||||
@@ -24,12 +24,12 @@ export const LayoutProvider = ({
|
|||||||
const [showCollapsedNavbar, setShowCollapsedNavbar] = useState(false)
|
const [showCollapsedNavbar, setShowCollapsedNavbar] = useState(false)
|
||||||
|
|
||||||
useResizeObserver(mainContentRef as React.RefObject<HTMLDivElement>, () => {
|
useResizeObserver(mainContentRef as React.RefObject<HTMLDivElement>, () => {
|
||||||
if (disableResizeObserver || window.innerWidth < 992) {
|
if (disableResizeObserver || window.innerWidth < 1100) {
|
||||||
setShowCollapsedNavbar(false)
|
setShowCollapsedNavbar(false)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (mainContentRef.current) {
|
if (mainContentRef.current) {
|
||||||
setShowCollapsedNavbar(mainContentRef.current.clientWidth < 992)
|
setShowCollapsedNavbar(mainContentRef.current.clientWidth < 1100)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ export const admin = [
|
|||||||
"title": "customerGroup",
|
"title": "customerGroup",
|
||||||
"path": "/references/js-sdk/admin/customerGroup"
|
"path": "/references/js-sdk/admin/customerGroup"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"title": "draftOrder",
|
||||||
|
"path": "/references/js-sdk/admin/draftOrder"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"title": "exchange",
|
"title": "exchange",
|
||||||
"path": "/references/js-sdk/admin/exchange"
|
"path": "/references/js-sdk/admin/exchange"
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
export const draftOrder = [
|
||||||
|
{
|
||||||
|
"title": "draftOrder",
|
||||||
|
"path": "/references/js-sdk/admin/draftOrder"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -1,39 +1,40 @@
|
|||||||
export * from "./inventory.js"
|
export * from "./inventory.js"
|
||||||
export * from "./query.js"
|
|
||||||
export * from "./pricing.js"
|
export * from "./pricing.js"
|
||||||
|
export * from "./query.js"
|
||||||
export * from "./tax.js"
|
export * from "./tax.js"
|
||||||
export * from "./fulfillment.js"
|
export * from "./stock-location.js"
|
||||||
export * from "./server.js"
|
export * from "./server.js"
|
||||||
export * from "./sales-channel.js"
|
export * from "./sales-channel.js"
|
||||||
export * from "./cart.js"
|
|
||||||
export * from "./storefront.js"
|
|
||||||
export * from "./payment.js"
|
|
||||||
export * from "./customer.js"
|
|
||||||
export * from "./stripe.js"
|
|
||||||
export * from "./order.js"
|
|
||||||
export * from "./product.js"
|
export * from "./product.js"
|
||||||
export * from "./region.js"
|
export * from "./payment.js"
|
||||||
|
export * from "./storefront.js"
|
||||||
|
export * from "./stripe.js"
|
||||||
|
export * from "./cart.js"
|
||||||
|
export * from "./order.js"
|
||||||
export * from "./js-sdk.js"
|
export * from "./js-sdk.js"
|
||||||
export * from "./checkout.js"
|
export * from "./concept.js"
|
||||||
export * from "./example.js"
|
export * from "./region.js"
|
||||||
|
export * from "./fulfillment.js"
|
||||||
|
export * from "./auth.js"
|
||||||
export * from "./product-category.js"
|
export * from "./product-category.js"
|
||||||
export * from "./product-collection.js"
|
export * from "./product-collection.js"
|
||||||
export * from "./publishable-api-key.js"
|
export * from "./checkout.js"
|
||||||
export * from "./auth.js"
|
|
||||||
export * from "./api-key.js"
|
export * from "./api-key.js"
|
||||||
export * from "./concept.js"
|
|
||||||
export * from "./event-bus.js"
|
|
||||||
export * from "./step.js"
|
|
||||||
export * from "./link.js"
|
|
||||||
export * from "./workflow.js"
|
export * from "./workflow.js"
|
||||||
export * from "./logger.js"
|
export * from "./publishable-api-key.js"
|
||||||
export * from "./file.js"
|
export * from "./example.js"
|
||||||
export * from "./user.js"
|
export * from "./step.js"
|
||||||
export * from "./promotion.js"
|
|
||||||
export * from "./currency.js"
|
|
||||||
export * from "./remote-query.js"
|
|
||||||
export * from "./admin.js"
|
|
||||||
export * from "./stock-location.js"
|
|
||||||
export * from "./store.js"
|
export * from "./store.js"
|
||||||
export * from "./notification.js"
|
export * from "./promotion.js"
|
||||||
export * from "./locking.js"
|
export * from "./locking.js"
|
||||||
|
export * from "./logger.js"
|
||||||
|
export * from "./remote-query.js"
|
||||||
|
export * from "./event-bus.js"
|
||||||
|
export * from "./notification.js"
|
||||||
|
export * from "./user.js"
|
||||||
|
export * from "./file.js"
|
||||||
|
export * from "./admin.js"
|
||||||
|
export * from "./customer.js"
|
||||||
|
export * from "./link.js"
|
||||||
|
export * from "./draft-order.js"
|
||||||
|
export * from "./currency.js"
|
||||||
@@ -27,6 +27,10 @@ export const jsSdk = [
|
|||||||
"title": "customerGroup",
|
"title": "customerGroup",
|
||||||
"path": "/references/js-sdk/admin/customerGroup"
|
"path": "/references/js-sdk/admin/customerGroup"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"title": "draftOrder",
|
||||||
|
"path": "/references/js-sdk/admin/draftOrder"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"title": "exchange",
|
"title": "exchange",
|
||||||
"path": "/references/js-sdk/admin/exchange"
|
"path": "/references/js-sdk/admin/exchange"
|
||||||
|
|||||||
@@ -99,10 +99,6 @@ export const query = [
|
|||||||
"title": "batchProductsWorkflow",
|
"title": "batchProductsWorkflow",
|
||||||
"path": "/references/medusa-workflows/batchProductsWorkflow"
|
"path": "/references/medusa-workflows/batchProductsWorkflow"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"title": "createProductsWorkflow",
|
|
||||||
"path": "/references/medusa-workflows/createProductsWorkflow"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"title": "deleteProductVariantsWorkflow",
|
"title": "deleteProductVariantsWorkflow",
|
||||||
"path": "/references/medusa-workflows/deleteProductVariantsWorkflow"
|
"path": "/references/medusa-workflows/deleteProductVariantsWorkflow"
|
||||||
|
|||||||
Reference in new issue
Block a user