mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
feat(core): rework swizzle CLI (#6243)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
d43066f6f1
commit
39b66d82ef
78 changed files with 3633 additions and 585 deletions
|
@ -207,21 +207,5 @@ ${announcementBar ? AnnouncementBarInlineJavaScript : ''}
|
|||
};
|
||||
}
|
||||
|
||||
const swizzleAllowedComponents = [
|
||||
'CodeBlock',
|
||||
'DocSidebar',
|
||||
'Footer',
|
||||
'NotFound',
|
||||
'SearchBar',
|
||||
'IconArrow',
|
||||
'IconEdit',
|
||||
'IconMenu',
|
||||
'hooks/useTheme',
|
||||
'prism-include-languages',
|
||||
];
|
||||
|
||||
export function getSwizzleComponentList(): string[] {
|
||||
return swizzleAllowedComponents;
|
||||
}
|
||||
|
||||
export {default as getSwizzleConfig} from './getSwizzleConfig';
|
||||
export {validateThemeConfig} from './validateThemeConfig';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue