Files
medusa-store/www/apps/api-reference/config/index.ts
Shahed Nasser 5deb8eaf50 docs: support multiple sidebars in a project (#11768)
* 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
2025-03-07 15:47:38 +02:00

31 lines
683 B
TypeScript

import { globalConfig } from "docs-ui"
import { DocsConfig } from "types"
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
export const config: DocsConfig = {
...globalConfig,
baseUrl,
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
// sidebar is auto generated
sidebars: [
{
sidebar_id: "api-ref",
title: "API Reference",
items: [
{
type: "link",
title: "Introduction",
path: "introduction",
loaded: true,
},
],
},
],
project: {
title: "API Reference",
key: "api-reference",
},
logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`,
}