You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
539 B
23 lines
539 B
|
2 years ago
|
// https://vitepress.dev/guide/custom-theme
|
||
|
|
import type { Theme } from 'vitepress';
|
||
|
|
|
||
|
2 years ago
|
import DefaultTheme from 'vitepress/theme';
|
||
|
|
|
||
|
1 year ago
|
import SiteLayout from './components/site-layout.vue';
|
||
|
|
import VbenContributors from './components/vben-contributors.vue';
|
||
|
1 year ago
|
import { initHmPlugin } from './plugins/hm';
|
||
|
1 year ago
|
|
||
|
|
import './styles';
|
||
|
2 years ago
|
|
||
|
2 years ago
|
export default {
|
||
|
1 year ago
|
enhanceApp({ app }) {
|
||
|
2 years ago
|
// ...
|
||
|
1 year ago
|
app.component('VbenContributors', VbenContributors);
|
||
|
1 year ago
|
|
||
|
|
// 百度统计
|
||
|
|
initHmPlugin();
|
||
|
2 years ago
|
},
|
||
|
|
extends: DefaultTheme,
|
||
|
1 year ago
|
Layout: SiteLayout,
|
||
|
2 years ago
|
} satisfies Theme;
|