@rise4fun/docusaurus-theme-codesandbox-button
Version:
CodeSandbox components for Docusaurus.
28 lines (22 loc) • 661 B
text/typescript
import type { Plugin } from '@docusaurus/types';
import type {
ThemeConfig,
CodeSandboxButtonThemeConfig,
} from '@rise4fun/docusaurus-theme-codesandbox-button';
import validatePeerDependencies from 'validate-peer-dependencies';
validatePeerDependencies(__dirname);
export default function themeCodeSandboxButton(): Plugin<void> {
return {
name: '@rise4fun/docusaurus-theme-codesandbox-button',
getThemePath() {
return '../lib/theme';
},
getTypeScriptThemePath() {
return '../src/theme';
},
};
}
export function getSwizzleComponentList() {
return undefined;
}
export { ThemeConfig, CodeSandboxButtonThemeConfig };