1 import { DocsConfig, Sidebar } from "types"
2 import { generatedSidebars } from "@/generated/sidebar.mjs"
3 import { globalConfig } from "docs-ui"
4 import { basePathUrl } from "../utils/base-path-url"
5
6 const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
7
8 export const config: DocsConfig = {
9 ...globalConfig,
10 titleSuffix: "Medusa Admin User Guide",
11 description:
12 "Explore and learn how to use the Medusa Admin. Learn how to manage products, orders, customers, and more within the Medusa Admin dashboard.",
13 baseUrl,
14 basePath: process.env.NEXT_PUBLIC_BASE_PATH,
15 sidebars: generatedSidebars as Sidebar.Sidebar[],
16 project: {
17 title: "User Guide",
18 key: "user-guide",
19 },
20 logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`,
21 breadcrumbOptions: {
22 startItems: [
23 {
24 title: "Documentation",
25 link: baseUrl,
26 },
27 ],
28 },
29 version: {
30 ...globalConfig.version,
31 bannerImage: {
32 light: basePathUrl("/images/release.png"),
33 dark: basePathUrl("/images/release-dark.png"),
34 },
35 },
36 }