mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
fix: add support for disabled docs plugin
This commit is contained in:
@@ -43,6 +43,8 @@ export default function logosPreset(
|
||||
context: LoadContext,
|
||||
options: PluginOptions,
|
||||
): Preset {
|
||||
const docsEnabled = options.docs !== false
|
||||
|
||||
const siteConfig: typeof context.siteConfig = defaultsDeep(
|
||||
options.customSiteConfig
|
||||
? [{}, context.siteConfig, siteConfigs[options.businessUnit]]
|
||||
@@ -69,10 +71,12 @@ export default function logosPreset(
|
||||
createTeamFile(context, options)
|
||||
|
||||
const { plugins = [], themes = [] } = classicPreset(context, {
|
||||
docs: {
|
||||
routeBasePath: '/',
|
||||
...(options.docs ?? {}),
|
||||
},
|
||||
docs: docsEnabled
|
||||
? {
|
||||
routeBasePath: '/',
|
||||
...(options.docs ?? {}),
|
||||
}
|
||||
: false,
|
||||
theme: {},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user