Skip to content

Commit b966198

Browse files
authored
docs: add user guide to navbar (#11611)
* docs: add user guide to navbar * fix titles
1 parent b45c1e1 commit b966198

File tree

10 files changed

+55
-46
lines changed

10 files changed

+55
-46
lines changed

www/apps/user-guide/app/not-found.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "@medusajs/icons"
88

99
export const metadata = {
10-
title: `Page Not Found in Medusa Admin`,
10+
title: `Page Not Found`,
1111
}
1212

1313
# {metadata.title}

www/apps/user-guide/app/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BellAlert, SidebarLeft } from "@medusajs/icons"
22

33
export const metadata = {
4-
title: `Medusa Admin User Guide in Medusa Admin`,
4+
title: `Medusa Admin User Guide`,
55
}
66

77
# {metadata.title}

www/packages/docs-ui/src/components/MainNav/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
BorderedIcon,
77
Button,
88
GITHUB_ISSUES_LINK,
9-
LinkButton,
109
SearchModalOpener,
1110
useLayout,
1211
useMainNav,

www/packages/docs-ui/src/constants.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const navDropdownItems: NavigationItem[] = [
3333
children: [
3434
{
3535
type: "link",
36-
title: "Guides",
36+
title: "All Guides",
3737
link: "/resources",
3838
useAsFallback: true,
3939
},
@@ -47,11 +47,6 @@ export const navDropdownItems: NavigationItem[] = [
4747
title: "Recipes",
4848
link: "/resources/recipes",
4949
},
50-
{
51-
type: "link",
52-
title: "Plugin Guides",
53-
link: "/resources/plugins",
54-
},
5550
{
5651
type: "divider",
5752
},
@@ -65,17 +60,17 @@ export const navDropdownItems: NavigationItem[] = [
6560
title: "Storefront Development",
6661
link: "/resources/storefront-development",
6762
},
68-
{
69-
type: "link",
70-
title: "UI Library",
71-
link: "/ui",
72-
},
7363
],
7464
},
7565
{
7666
type: "dropdown",
7767
title: "Tools & SDKs",
7868
children: [
69+
{
70+
type: "link",
71+
title: "UI Library",
72+
link: "/ui",
73+
},
7974
{
8075
type: "link",
8176
title: "Medusa CLI",
@@ -211,6 +206,11 @@ export const navDropdownItems: NavigationItem[] = [
211206
},
212207
],
213208
},
209+
{
210+
type: "link",
211+
title: "User Guide",
212+
path: "/user-guide",
213+
},
214214
]
215215

216216
export const searchFilters: OptionType[] = [
@@ -224,15 +224,14 @@ export const searchFilters: OptionType[] = [
224224
},
225225
{
226226
value: "admin-v2",
227-
label: "Admin API (v2)",
227+
label: "Admin API",
228228
},
229229
{
230230
value: "store-v2",
231-
label: "Store API (v2)",
231+
label: "Store API",
232232
},
233233
{
234234
value: "ui",
235235
label: "Medusa UI",
236236
},
237-
// TODO add more filters
238237
]

www/packages/docs-ui/src/providers/Layout/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export const LayoutProvider = ({
2424
const [showCollapsedNavbar, setShowCollapsedNavbar] = useState(false)
2525

2626
useResizeObserver(mainContentRef as React.RefObject<HTMLDivElement>, () => {
27-
if (disableResizeObserver || window.innerWidth < 992) {
27+
if (disableResizeObserver || window.innerWidth < 1100) {
2828
setShowCollapsedNavbar(false)
2929
return
3030
}
3131
if (mainContentRef.current) {
32-
setShowCollapsedNavbar(mainContentRef.current.clientWidth < 992)
32+
setShowCollapsedNavbar(mainContentRef.current.clientWidth < 1100)
3333
}
3434
})
3535

www/packages/tags/src/tags/admin.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export const admin = [
2323
"title": "customerGroup",
2424
"path": "/references/js-sdk/admin/customerGroup"
2525
},
26+
{
27+
"title": "draftOrder",
28+
"path": "/references/js-sdk/admin/draftOrder"
29+
},
2630
{
2731
"title": "exchange",
2832
"path": "/references/js-sdk/admin/exchange"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const draftOrder = [
2+
{
3+
"title": "draftOrder",
4+
"path": "/references/js-sdk/admin/draftOrder"
5+
}
6+
]
Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
export * from "./inventory.js"
2-
export * from "./query.js"
32
export * from "./pricing.js"
3+
export * from "./query.js"
44
export * from "./tax.js"
5-
export * from "./fulfillment.js"
5+
export * from "./stock-location.js"
66
export * from "./server.js"
77
export * from "./sales-channel.js"
8-
export * from "./cart.js"
9-
export * from "./storefront.js"
8+
export * from "./product.js"
109
export * from "./payment.js"
11-
export * from "./customer.js"
10+
export * from "./storefront.js"
1211
export * from "./stripe.js"
12+
export * from "./cart.js"
1313
export * from "./order.js"
14-
export * from "./product.js"
15-
export * from "./region.js"
1614
export * from "./js-sdk.js"
17-
export * from "./checkout.js"
18-
export * from "./example.js"
15+
export * from "./concept.js"
16+
export * from "./region.js"
17+
export * from "./fulfillment.js"
18+
export * from "./auth.js"
1919
export * from "./product-category.js"
2020
export * from "./product-collection.js"
21-
export * from "./publishable-api-key.js"
22-
export * from "./auth.js"
21+
export * from "./checkout.js"
2322
export * from "./api-key.js"
24-
export * from "./concept.js"
25-
export * from "./event-bus.js"
26-
export * from "./step.js"
27-
export * from "./link.js"
2823
export * from "./workflow.js"
29-
export * from "./logger.js"
30-
export * from "./file.js"
31-
export * from "./user.js"
24+
export * from "./publishable-api-key.js"
25+
export * from "./example.js"
26+
export * from "./step.js"
27+
export * from "./store.js"
3228
export * from "./promotion.js"
33-
export * from "./currency.js"
29+
export * from "./locking.js"
30+
export * from "./logger.js"
3431
export * from "./remote-query.js"
35-
export * from "./admin.js"
36-
export * from "./stock-location.js"
37-
export * from "./store.js"
32+
export * from "./event-bus.js"
3833
export * from "./notification.js"
39-
export * from "./locking.js"
34+
export * from "./user.js"
35+
export * from "./file.js"
36+
export * from "./admin.js"
37+
export * from "./customer.js"
38+
export * from "./link.js"
39+
export * from "./draft-order.js"
40+
export * from "./currency.js"

www/packages/tags/src/tags/js-sdk.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export const jsSdk = [
2727
"title": "customerGroup",
2828
"path": "/references/js-sdk/admin/customerGroup"
2929
},
30+
{
31+
"title": "draftOrder",
32+
"path": "/references/js-sdk/admin/draftOrder"
33+
},
3034
{
3135
"title": "exchange",
3236
"path": "/references/js-sdk/admin/exchange"

www/packages/tags/src/tags/query.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ export const query = [
9999
"title": "batchProductsWorkflow",
100100
"path": "/references/medusa-workflows/batchProductsWorkflow"
101101
},
102-
{
103-
"title": "createProductsWorkflow",
104-
"path": "/references/medusa-workflows/createProductsWorkflow"
105-
},
106102
{
107103
"title": "deleteProductVariantsWorkflow",
108104
"path": "/references/medusa-workflows/deleteProductVariantsWorkflow"

0 commit comments

Comments
 (0)