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