chore: add vitepress doc custom theme

This commit is contained in:
Relakkes
2024-09-26 15:38:18 +08:00
parent 4e10e65216
commit 340926bcd3
4 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme'
import MyLayout from './MyLayout.vue'
export default {
extends: DefaultTheme,
// 使用注入插槽的包装组件覆盖 Layout
Layout: MyLayout
}