index.ts 435 B

1234567891011121314151617
  1. // https://vitepress.dev/guide/custom-theme
  2. import type { Theme } from 'vitepress'
  3. import DefaultTheme from 'vitepress/theme'
  4. import { h } from 'vue'
  5. import './style.css'
  6. export default {
  7. extends: DefaultTheme,
  8. Layout: () => {
  9. return h(DefaultTheme.Layout, null, {
  10. // https://vitepress.dev/guide/extending-default-theme#layout-slots
  11. })
  12. },
  13. enhanceApp({ app, router, siteData }) {
  14. // ...
  15. }
  16. } satisfies Theme