Skip to content

Commit

Permalink
refactor: 💡 vitepress config
Browse files Browse the repository at this point in the history
  • Loading branch information
huyikai committed Mar 10, 2024
1 parent c312432 commit e3287d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import './styles/styles.css';

import theme, { VPButton } from '@huyikai/vitepress-helper/theme/index';

import Home from './home.vue';
import theme from '@huyikai/vitepress-helper/theme/index';

export default {
extends: theme,
enhanceApp: ({ app }: any) => {
enhanceApp: ({ app }) => {
app.component('Home', Home);
app.component('VPButton', VPButton);
}
};

0 comments on commit e3287d5

Please # to comment.