update vitepress to v1.0

This commit is contained in:
2024-03-26 19:03:14 +08:00
parent 99c45510e5
commit fc7f8b9499
131 changed files with 431 additions and 330 deletions

14
.vitepress/theme/index.ts Normal file
View File

@@ -0,0 +1,14 @@
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"
export default {
extends: DefaultTheme,
async enhanceApp({ app }) {
app.component("bvideo", BVideo)
app.component("author", Author)
app.component("editor", CodeEditor)
},
} satisfies Theme