2023-07-18 02:00:06 +02:00
|
|
|
// https://vitepress.dev/guide/custom-theme
|
2023-07-18 14:38:14 +02:00
|
|
|
import { h } from "vue";
|
|
|
|
import Theme from "vitepress/theme";
|
2023-07-25 22:38:04 +02:00
|
|
|
import "./styles/base.styl";
|
2023-07-18 02:00:06 +02:00
|
|
|
|
2023-08-12 23:51:05 +02:00
|
|
|
import ElementPlus from "element-plus";
|
|
|
|
import "element-plus/dist/index.css";
|
|
|
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
|
|
|
2023-08-18 16:03:09 +02:00
|
|
|
import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
|
|
|
|
|
2023-07-18 02:00:06 +02:00
|
|
|
export default {
|
2023-07-18 14:38:14 +02:00
|
|
|
extends: Theme,
|
2023-07-30 03:12:47 +02:00
|
|
|
Layout: () => {
|
|
|
|
return h(Theme.Layout, null, {
|
|
|
|
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
|
|
|
});
|
|
|
|
},
|
2023-07-18 14:38:14 +02:00
|
|
|
enhanceApp({ app, router, siteData }) {
|
2023-08-12 23:51:05 +02:00
|
|
|
app.use(ElementPlus);
|
2023-08-18 16:03:09 +02:00
|
|
|
enhanceAppWithTabs(app);
|
2023-07-18 14:38:14 +02:00
|
|
|
},
|
|
|
|
};
|