mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
allow overriding the configurations for the main documentation plugin.
This commit is contained in:
@@ -61,6 +61,7 @@ export default function logosPreset(
|
||||
const { plugins = [], themes = [] } = classicPreset(context, {
|
||||
docs: {
|
||||
routeBasePath: '/',
|
||||
...(options.docs ?? {}),
|
||||
},
|
||||
theme: {},
|
||||
})
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { PluginOptions as DocPluginOptions } from '@docusaurus/plugin-content-docs'
|
||||
import { DefaultThemeOptions } from './themes'
|
||||
|
||||
export enum ThemeNames {
|
||||
@@ -11,9 +12,10 @@ export enum BusinessUnits {
|
||||
|
||||
export type PresetConfig = {
|
||||
businessUnit: BusinessUnits
|
||||
|
||||
theme?: {
|
||||
name: ThemeNames.Default
|
||||
options?: DefaultThemeOptions
|
||||
}
|
||||
|
||||
docs?: Partial<DocPluginOptions>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user