Files
medusa-store/www/apps/user-guide/config/index.ts
Shahed Nasser 98de6b6ca3 docs: design fixes to toc and related elements (#12747)
* docs: design fixes to toc and related elements

* change header styling

* fix heading styles

* design fixes

* fix showing badges in toc
2025-06-27 10:34:15 +03:00

35 lines
913 B
TypeScript

import { DocsConfig, Sidebar } from "types"
import { generatedSidebars } from "@/generated/sidebar.mjs"
import { globalConfig } from "docs-ui"
import { basePathUrl } from "../utils/base-path-url"
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
export const config: DocsConfig = {
...globalConfig,
titleSuffix: "Medusa Admin User Guide",
baseUrl,
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
sidebars: generatedSidebars as Sidebar.Sidebar[],
project: {
title: "User Guide",
key: "user-guide",
},
logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`,
breadcrumbOptions: {
startItems: [
{
title: "Documentation",
link: baseUrl,
},
],
},
version: {
...globalConfig.version,
bannerImage: {
light: basePathUrl("/images/release.png"),
dark: basePathUrl("/images/release-dark.png"),
},
},
}