|
1
|
import { DocsConfig, Sidebar } from "types" |
|
2
|
import { globalConfig } from "docs-ui" |
|
3
|
import { generatedSidebars } from "../generated/sidebar.mjs" |
|
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 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.", |
|
13
|
baseUrl, |
|
14
|
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "", |
|
15
|
sidebars: generatedSidebars as Sidebar.Sidebar[], |
|
16
|
project: { |
|
17
|
title: "Documentation", |
|
18
|
key: "book", |
|
19
|
}, |
|
20
|
logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`, |
|
21
|
breadcrumbOptions: { |
|
22
|
startItems: [ |
|
23
|
{ |
|
24
|
title: "Documentation", |
|
25
|
link: "/", |
|
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
|
} |