diff --git a/docs/.vitepress/components/preview-service.vue b/docs/.vitepress/components/preview-service.vue new file mode 100644 index 0000000..35d73f1 --- /dev/null +++ b/docs/.vitepress/components/preview-service.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 42fe9a9..97404a7 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,4 +1,11 @@ +import type { Theme } from 'vitepress' import DefaultTheme from 'vitepress/theme' import './custom.css' +import PreviewService from '../components/preview-service.vue' -export default DefaultTheme +export default { + extends: DefaultTheme, + enhanceApp({ app }) { + app.component('PreviewService', PreviewService) + }, +} satisfies Theme