admin-vben/website/.vitepress/theme/index.ts

22 lines
509 B
TypeScript

// https://vitepress.dev/guide/custom-theme
import type { Theme } from 'vitepress';
import { h } from 'vue';
import DefaultTheme from 'vitepress/theme';
import './style.css';
export default {
Layout: () => {
return h(DefaultTheme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
});
},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
enhanceApp({ app, router, siteData }) {
// ...
},
extends: DefaultTheme,
} satisfies Theme;