16 lines
423 B
TypeScript
16 lines
423 B
TypeScript
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;
|