Skip to content

Commit 7e1deea

Browse files
committed
docs: add JSON-LD schemas to docs
1 parent c9648cc commit 7e1deea

File tree

26 files changed

+146
-17
lines changed

26 files changed

+146
-17
lines changed

www/apps/api-reference/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242

4343
*::selection {
44-
@apply bg-medusa-bg-highlight;
44+
@apply bg-medusa-fg-subtle text-medusa-fg-on-inverted;
4545
}
4646

4747
* {

www/apps/api-reference/app/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ import { BareboneLayout, WideLayout } from "docs-ui"
44
import clsx from "clsx"
55
import { Metadata } from "next"
66
import { inter, robotoMono } from "./fonts"
7+
import { config } from "@/config"
78

89
const ogImage =
910
"https://res.cloudinary.com/dza7lstvk/image/upload/v1732200992/Medusa%20Resources/opengraph-image_daq6nx.jpg"
1011

1112
export const metadata: Metadata = {
12-
title: "Medusa API Reference",
13-
description: "Check out Medusa's API reference",
13+
title: `%s - ${config.titleSuffix}`,
14+
description: config.description,
1415
metadataBase: new URL(
1516
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
1617
),

www/apps/api-reference/config/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
55

66
export const config: DocsConfig = {
77
...globalConfig,
8+
titleSuffix: "Medusa API Reference",
9+
description:
10+
"Comprehensive reference for Medusa's API routes, request/response structures, authentication methods, and error handling.",
811
baseUrl,
912
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
1013
// sidebar is auto generated

www/apps/book/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
*::selection {
17-
@apply bg-medusa-bg-highlight;
17+
@apply bg-medusa-fg-subtle text-medusa-fg-on-inverted;
1818
}
1919

2020
*:not(.code-block-elm) {

www/apps/book/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const metadata: Metadata = {
1313
template: `%s - ${config.titleSuffix}`,
1414
default: config.titleSuffix || "",
1515
},
16-
description: "Explore and learn how to use Medusa.",
16+
description: config.description,
1717
metadataBase: new URL(
1818
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
1919
),

www/apps/book/config/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
88
export const config: DocsConfig = {
99
...globalConfig,
1010
titleSuffix: "Medusa Documentation",
11+
description:
12+
"Explore and learn how to use Medusa. Learn how to get started, the fundamental concepts, how to customize Medusa, and more.",
1113
baseUrl,
1214
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
1315
sidebars: generatedSidebars as Sidebar.Sidebar[],

www/apps/cloud/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
*::selection {
17-
@apply bg-medusa-bg-highlight;
17+
@apply bg-medusa-fg-subtle text-medusa-fg-on-inverted;
1818
}
1919

2020
*:not(.code-block-elm) {

www/apps/cloud/app/layout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ export const metadata: Metadata = {
1515
template: `%s - ${config.titleSuffix}`,
1616
default: config.titleSuffix || "",
1717
},
18-
description:
19-
"Learn about Cloud, Medusa's PaaS offering for scalable deployments.",
18+
description: config.description,
2019
metadataBase: new URL(
2120
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
2221
),

www/apps/cloud/config/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
88
export const config: DocsConfig = {
99
...globalConfig,
1010
titleSuffix: "Medusa Cloud Documentation",
11+
description:
12+
"Learn about Cloud, Medusa's PaaS offering for scalable deployments. Learn how to sign up, deploy, and manage your Medusa Cloud projects.",
1113
baseUrl,
1214
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
1315
sidebars: generatedSidebars as Sidebar.Sidebar[],

www/apps/resources/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
*::selection {
23-
@apply bg-medusa-bg-highlight;
23+
@apply bg-medusa-fg-subtle text-medusa-fg-on-inverted;
2424
}
2525

2626
* {

0 commit comments

Comments
 (0)