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 0ef2715 commit ab60a85
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
import 'vitepress/dist/client/theme-default/styles/vars.css';
import 'vitepress/dist/client/theme-default/styles/base.css';
import 'vitepress/dist/client/theme-default/styles/utils.css';
import './styles/styles.css';
import 'vitepress/dist/client/theme-default/styles/components/custom-block.css';
import 'vitepress/dist/client/theme-default/styles/components/vp-code.css';
import 'vitepress/dist/client/theme-default/styles/components/vp-code-group.css';
import 'vitepress/dist/client/theme-default/styles/components/vp-doc.css';
import 'vitepress/dist/client/theme-default/styles/components/vp-sponsor.css';

import Home from './home.vue';
import Layout from '@huyikai/vitepress-helper/theme/Theme.vue';
import VPBadge from 'vitepress/dist/client/theme-default/components/VPBadge.vue';
import theme from '@huyikai/vitepress-helper/theme/index';

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

0 comments on commit ab60a85

Please # to comment.