feat(core): rework swizzle CLI (#6243)

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
Joshua Chen 2022-02-25 21:13:15 +08:00 committed by GitHub
parent d43066f6f1
commit 39b66d82ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
78 changed files with 3633 additions and 585 deletions

View file

@ -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';