Files
book/.vitepress/theme/index.ts
2024-12-19 22:50:59 +08:00

16 lines
455 B
TypeScript

import type { Theme } from "vitepress"
import DefaultTheme from "vitepress/theme"
import BVideo from "./components/BVideo.vue"
import Author from "./components/Author.vue"
import CodeEditor from "./components/CodeEditor.vue"
import './custom.css'
export default {
extends: DefaultTheme,
async enhanceApp({ app }) {
app.component("bvideo", BVideo)
app.component("author", Author)
app.component("editor", CodeEditor)
},
} satisfies Theme