mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
287 B
14 lines
287 B
1 year ago
|
// .vitepress/theme/index.js
|
||
|
import { h } from 'vue'
|
||
|
import DefaultTheme from 'vitepress/theme'
|
||
|
import AdComponent from './AdComponent.vue'
|
||
|
|
||
|
export default {
|
||
|
...DefaultTheme,
|
||
|
Layout() {
|
||
|
return h(DefaultTheme.Layout, null, {
|
||
|
'doc-before': () => h(AdComponent),
|
||
|
})
|
||
|
}
|
||
|
}
|