pages/site/.vitepress/theme/index.ts

16 lines
455 B
TypeScript

import DefaultTheme from 'vitepress/theme'
import { h } from "vue"
import { NolebaseHighlightTargetedHeading } from '@nolebase/vitepress-plugin-highlight-targeted-heading/client'
import '@nolebase/vitepress-plugin-highlight-targeted-heading/client/style.css'
import './custom.css'
export default {
...DefaultTheme,
Layout: () => {
return h(DefaultTheme.Layout, null, {
'layout-top': () => [
h(NolebaseHighlightTargetedHeading)
]
})
}
};