docs/.vitepress/theme/index.ts
raw| 1 | import { h } from 'vue' |
| 2 | import type { Theme } from 'vitepress' |
| 3 | import DefaultTheme from 'vitepress/theme' |
| 4 | import DyneBrand from './components/DyneBrand.vue' |
| 5 | import DyneFooter from './components/DyneFooter.vue' |
| 6 | import './style.css' |
| 7 | |
| 8 | export default { |
| 9 | extends: DefaultTheme, |
| 10 | Layout: () => { |
| 11 | return h(DefaultTheme.Layout, null, { |
| 12 | 'nav-bar-title-before': () => h(DyneBrand, { variant: 'nav' }), |
| 13 | 'layout-bottom': () => h(DyneFooter) |
| 14 | }) |
| 15 | } |
| 16 | } satisfies Theme |