1
0

index.ts 742 B

12345678910111213141516171819202122232425
  1. // https://vitepress.dev/guide/custom-theme
  2. import type { Theme } from 'vitepress';
  3. import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client';
  4. import DefaultTheme from 'vitepress/theme';
  5. import SiteLayout from './components/site-layout.vue';
  6. import VbenContributors from './components/vben-contributors.vue';
  7. import { initHmPlugin } from './plugins/hm';
  8. import './styles';
  9. import '@nolebase/vitepress-plugin-git-changelog/client/style.css';
  10. export default {
  11. enhanceApp({ app }) {
  12. // ...
  13. app.component('VbenContributors', VbenContributors);
  14. app.use(NolebaseGitChangelogPlugin);
  15. // 百度统计
  16. initHmPlugin();
  17. },
  18. extends: DefaultTheme,
  19. Layout: SiteLayout,
  20. } satisfies Theme;