32 lines
887 B
TypeScript
32 lines
887 B
TypeScript
import "./custom.css";
|
|
import "./style.css";
|
|
|
|
import DefaultTheme from "vitepress/theme";
|
|
// https://vitepress.dev/guide/custom-theme
|
|
import { h } from "vue";
|
|
|
|
import AudioButton from "./components/AudioButton.vue";
|
|
import Details from "./components/Details.vue";
|
|
import PDF from "./components/PDF.vue";
|
|
import TTS from "./components/TTS.vue";
|
|
import YouTube from "./components/YouTube.vue";
|
|
|
|
import type { Theme } from "vitepress";
|
|
|
|
export default {
|
|
extends: DefaultTheme,
|
|
Layout: () => {
|
|
return h(DefaultTheme.Layout, null, {
|
|
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
|
});
|
|
},
|
|
enhanceApp({ app, router, siteData }) {
|
|
// ...
|
|
app.component("AudioButton", AudioButton);
|
|
app.component("Details", Details);
|
|
app.component("TTS", TTS);
|
|
app.component("YouTube", YouTube);
|
|
app.component("PDF", PDF);
|
|
},
|
|
} satisfies Theme;
|