Skip to content

Commit

Permalink
docs: fix build errors + update medusa docs link (#8550)
Browse files Browse the repository at this point in the history
* docs: update medusa docs link

* fix @medusajs/icon version

* fix user guide build

* fix build error
  • Loading branch information
shahednasser authored Aug 13, 2024
1 parent b2250ed commit 35da5de
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion www/apps/api-reference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@mdx-js/loader": "^3.0.0",
"@mdx-js/react": "^3.0.0",
"@medusajs/icons": "^1.2.0",
"@medusajs/icons": "preview",
"@medusajs/ui": "^3.0.0",
"@next/mdx": "14.2.3",
"@readme/openapi-parser": "^2.5.0",
Expand Down
4 changes: 2 additions & 2 deletions www/apps/resources/app/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Explore Medusa's commerce modules, SDKs, configurations, recipes, and more.

<Note title="Getting started?">

Follow the [Medusa Book](https://medusa-docs-v2-git-docs-v2-medusajs.vercel.app) to become an advanced Medusa developer.
Follow the [Medusa v2 Docs](!docs!) to become an advanced Medusa developer.

</Note>

Expand Down Expand Up @@ -165,4 +165,4 @@ Follow the [Medusa Book](https://medusa-docs-v2-git-docs-v2-medusajs.vercel.app)
href: "/nextjs-starter",
showLinkIcon: false
},
]} />
]} />
2 changes: 1 addition & 1 deletion www/apps/resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@medusajs/icons": "^1.2.0",
"@medusajs/icons": "preview",
"@next/mdx": "^14.2.3",
"clsx": "^2.1.0",
"docs-ui": "*",
Expand Down
4 changes: 2 additions & 2 deletions www/apps/user-guide/app/page.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BellAlert, Sidebar } from "@medusajs/icons"
import { BellAlert, SidebarLeft } from "@medusajs/icons"

export const metadata = {
title: `Medusa Admin User Guide`,
Expand Down Expand Up @@ -40,7 +40,7 @@ The sidebar menu includes the main navigation of your Medusa Admin. You can use

![Sidebar Menu](https://res.cloudinary.com/dza7lstvk/image/upload/v1697793775/Medusa%20Docs/User%20Guide/Screenshot_2023-10-20_at_12.22.43_PM_shbr0e.png)

You can hide the sidebar by clicking the <InlineIcon Icon={Sidebar} alt="sidebar" /> icon at the top next to the sidebar. Clicking it again shows the sidebar.
You can hide the sidebar by clicking the <InlineIcon Icon={SidebarLeft} alt="sidebar" /> icon at the top next to the sidebar. Clicking it again shows the sidebar.

### Search Bar

Expand Down
2 changes: 1 addition & 1 deletion www/apps/user-guide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@mdx-js/loader": "^3.0.0",
"@mdx-js/react": "^3.0.0",
"@medusajs/icons": "^1.2.0",
"@medusajs/icons": "preview",
"@next/mdx": "^14.2.3",
"clsx": "^2.1.0",
"docs-ui": "*",
Expand Down
2 changes: 1 addition & 1 deletion www/packages/docs-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"@medusajs/icons": "^1.2.0",
"@medusajs/icons": "preview",
"@medusajs/ui": "^3.0.0",
"@octokit/request": "^8.1.1",
"@react-hook/resize-observer": "^1.2.6",
Expand Down
17 changes: 13 additions & 4 deletions www/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,15 @@ __metadata:
languageName: node
linkType: hard

"@medusajs/icons@npm:preview":
version: 1.2.2-preview-20240812060602
resolution: "@medusajs/icons@npm:1.2.2-preview-20240812060602"
peerDependencies:
react: ^16.x || ^17.x || ^18.x
checksum: c5bfbe0b536fa8b6cffd63aa95c3a8fa4ed8eaf9bf3295a1b2b77a38605f5ac12743baa64fc74feffeebd2333d77d9e28bfb8545dcd2d2c6990cd06dd0dd14d3
languageName: node
linkType: hard

"@medusajs/ui-preset@npm:^1.1.2":
version: 1.1.2
resolution: "@medusajs/ui-preset@npm:1.1.2"
Expand Down Expand Up @@ -5655,7 +5664,7 @@ __metadata:
dependencies:
"@mdx-js/loader": ^3.0.0
"@mdx-js/react": ^3.0.0
"@medusajs/icons": ^1.2.0
"@medusajs/icons": preview
"@medusajs/ui": ^3.0.0
"@next/bundle-analyzer": ^14.2.3
"@next/mdx": 14.2.3
Expand Down Expand Up @@ -7235,7 +7244,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "docs-ui@workspace:packages/docs-ui"
dependencies:
"@medusajs/icons": ^1.2.0
"@medusajs/icons": preview
"@medusajs/ui": ^3.0.0
"@octokit/request": ^8.1.1
"@react-hook/resize-observer": ^1.2.6
Expand Down Expand Up @@ -13440,7 +13449,7 @@ eslint-config-next@latest:
dependencies:
"@mdx-js/loader": ^3.0.1
"@mdx-js/react": ^3.0.1
"@medusajs/icons": ^1.2.0
"@medusajs/icons": preview
"@next/mdx": ^14.2.3
"@types/mdx": ^2.0.11
"@types/node": ^20
Expand Down Expand Up @@ -15125,7 +15134,7 @@ turbo@latest:
dependencies:
"@mdx-js/loader": ^3.0.0
"@mdx-js/react": ^3.0.0
"@medusajs/icons": ^1.2.0
"@medusajs/icons": preview
"@next/mdx": ^14.2.3
"@types/mdx": ^2.0.10
"@types/node": ^20
Expand Down

0 comments on commit 35da5de

Please sign in to comment.