add components
This commit is contained in:
1 parent
260850f9a7
commit
b3993abeb5
11 files changed
+741
-37
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user