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;