ZiuChen 9c60e54509 feat: 定期检查文档更新并弹出提醒
- 扩展基础主题代码做抽取
2023-11-17 00:33:46 +08:00

20 lines
443 B
TypeScript

import { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import { refresh } from './refresh'
import { customComponents } from './customComponents'
import Layout from './Layout.vue'
import './index.css'
const theme: Theme = {
...DefaultTheme,
Layout,
enhanceApp(ctx) {
DefaultTheme.enhanceApp(ctx)
const { app } = ctx
app.use(refresh).use(customComponents)
}
}
export default theme