|
1
|
import { DocsConfig, Sidebar } from "types" |
|
2
|
import { generatedSidebars } from "@/generated/sidebar.mjs" |
|
3
|
import { globalConfig } from "docs-ui" |
|
4
|
|
|
5
|
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000" |
|
6
|
|
|
7
|
export const config: DocsConfig = { |
|
8
|
...globalConfig, |
|
9
|
titleSuffix: "Medusa UI", |
|
10
|
description: |
|
11
|
"Learn about Medusa UI, A React package with primitives for building Medusa applications. Explore components, hooks, colors, icons, and more.", |
|
12
|
baseUrl, |
|
13
|
basePath: process.env.NEXT_PUBLIC_BASE_PATH, |
|
14
|
sidebars: generatedSidebars as Sidebar.Sidebar[], |
|
15
|
project: { |
|
16
|
title: "UI", |
|
17
|
key: "ui", |
|
18
|
}, |
|
19
|
logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`, |
|
20
|
breadcrumbOptions: { |
|
21
|
startItems: [ |
|
22
|
{ |
|
23
|
title: "Documentation", |
|
24
|
link: baseUrl, |
|
25
|
}, |
|
26
|
], |
|
27
|
}, |
|
28
|
version: { |
|
29
|
...globalConfig.version, |
|
30
|
hide: true, |
|
31
|
}, |
|
32
|
} |