index.ts 414 B

123456789101112131415
  1. // https://vitepress.dev/guide/custom-theme
  2. import type { Theme } from "vitepress";
  3. import DefaultTheme from "vitepress/theme";
  4. import CustomLayout from "../../components/CustomLayout.vue";
  5. import i18n from "../../plugins/i18n";
  6. import "./style.css";
  7. export default {
  8. extends: DefaultTheme,
  9. Layout: CustomLayout,
  10. enhanceApp({ app, router, siteData }) {
  11. app.use(i18n);
  12. // ...
  13. },
  14. } satisfies Theme;