mirror of
https://github.com/fmhy/edit.git
synced 2026-02-19 01:31:41 +11:00
Initialize vitepress
This commit is contained in:
parent
3cdf54cb89
commit
cd7ee89bf9
11 changed files with 1145 additions and 42 deletions
17
.vitepress/theme/index.ts
Normal file
17
.vitepress/theme/index.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// https://vitepress.dev/guide/custom-theme
|
||||
import { h } from 'vue'
|
||||
import type { Theme } from 'vitepress'
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import './style.css'
|
||||
|
||||
export default {
|
||||
extends: DefaultTheme,
|
||||
Layout: () => {
|
||||
return h(DefaultTheme.Layout, null, {
|
||||
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
||||
})
|
||||
},
|
||||
enhanceApp({ app, router, siteData }) {
|
||||
// ...
|
||||
}
|
||||
} satisfies Theme
|
||||
Loading…
Add table
Add a link
Reference in a new issue