* changed to new sidebar across projects except resources * finalize multi sidebar support * clean up * remove redundant property * small changes * fixes * generate * fix error * fix initial open
27 lines
685 B
TypeScript
27 lines
685 B
TypeScript
import { DocsConfig, Sidebar } from "types"
|
|
import { generatedSidebars } from "@/generated/sidebar.mjs"
|
|
import { globalConfig } from "docs-ui"
|
|
|
|
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,
|
|
},
|
|
],
|
|
},
|
|
}
|