Files
xk-docs/docs/.vitepress/theme/index.ts
2026-07-08 15:04:42 +08:00

14 lines
338 B
TypeScript

import DefaultTheme from 'vitepress/theme'
import Mermaid from './Mermaid.vue'
import HomePage from './HomePage.vue'
import type { Theme } from 'vitepress'
export default {
extends: DefaultTheme,
enhanceApp({ app }) {
app.component('Mermaid', Mermaid)
app.component('HomePage', HomePage)
},
setup() {},
} satisfies Theme