docs: add JSON-LD schemas to docs (#14007)

This commit is contained in:
Shahed Nasser
2025-11-07 14:43:50 +02:00
committed by GitHub
parent c9648cc9cc
commit dc6f253d31
26 changed files with 146 additions and 17 deletions

View File

@@ -41,7 +41,7 @@
}
*::selection {
@apply bg-medusa-bg-highlight;
@apply bg-medusa-fg-subtle text-medusa-fg-on-inverted;
}
* {

View File

@@ -4,13 +4,14 @@ import { BareboneLayout, WideLayout } from "docs-ui"
import clsx from "clsx"
import { Metadata } from "next"
import { inter, robotoMono } from "./fonts"
import { config } from "@/config"
const ogImage =
"https://res.cloudinary.com/dza7lstvk/image/upload/v1732200992/Medusa%20Resources/opengraph-image_daq6nx.jpg"
export const metadata: Metadata = {
title: "Medusa API Reference",
description: "Check out Medusa's API reference",
title: `%s - ${config.titleSuffix}`,
description: config.description,
metadataBase: new URL(
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
),

View File

@@ -5,6 +5,9 @@ const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
export const config: DocsConfig = {
...globalConfig,
titleSuffix: "Medusa API Reference",
description:
"Comprehensive reference for Medusa's API routes, request/response structures, authentication methods, and error handling.",
baseUrl,
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
// sidebar is auto generated