add components

This commit is contained in:
polv committed 2026-03-17 17:26:32 +07:00
1 parent 260850f9a7
commit b3993abeb5
11 files changed
+741 -37

No files matched your search

+4
View File
@@ -2,10 +2,14 @@ import type { Theme } from "vitepress";
import DefaultTheme from "vitepress/theme";
import SentenceQuiz from "./components/SentenceQuiz.vue";
import "./custom.css";
import TOC from "./components/TOC.vue";
export default {
extends: DefaultTheme,
enhanceApp({ app }) {
// register your custom global components
app.component("SentenceQuiz", SentenceQuiz);
app.component("TOC", TOC);
},
} satisfies Theme;