mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-23 21:17:54 +02:00
fix(plugin-docs,theme): refactor docs plugin routes and component tree (#7966)
This commit is contained in:
parent
c29218ea1d
commit
3b9b497d13
35 changed files with 1189 additions and 857 deletions
|
@ -30,7 +30,9 @@ export const DEFAULT_OPTIONS: Omit<PluginOptions, 'id' | 'sidebarPath'> = {
|
|||
exclude: GlobExcludeDefault,
|
||||
sidebarItemsGenerator: DefaultSidebarItemsGenerator,
|
||||
numberPrefixParser: DefaultNumberPrefixParser,
|
||||
docLayoutComponent: '@theme/DocPage',
|
||||
docsRootComponent: '@theme/DocsRoot',
|
||||
docVersionRootComponent: '@theme/DocVersionRoot',
|
||||
docRootComponent: '@theme/DocRoot',
|
||||
docItemComponent: '@theme/DocItem',
|
||||
docTagDocListComponent: '@theme/DocTagDocListPage',
|
||||
docTagsListComponent: '@theme/DocTagsListPage',
|
||||
|
@ -104,7 +106,11 @@ const OptionsSchema = Joi.object<PluginOptions>({
|
|||
}),
|
||||
)
|
||||
.default(() => DEFAULT_OPTIONS.numberPrefixParser),
|
||||
docLayoutComponent: Joi.string().default(DEFAULT_OPTIONS.docLayoutComponent),
|
||||
docsRootComponent: Joi.string().default(DEFAULT_OPTIONS.docsRootComponent),
|
||||
docVersionRootComponent: Joi.string().default(
|
||||
DEFAULT_OPTIONS.docVersionRootComponent,
|
||||
),
|
||||
docRootComponent: Joi.string().default(DEFAULT_OPTIONS.docRootComponent),
|
||||
docItemComponent: Joi.string().default(DEFAULT_OPTIONS.docItemComponent),
|
||||
docTagsListComponent: Joi.string().default(
|
||||
DEFAULT_OPTIONS.docTagsListComponent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue