21 lines
677 B
TypeScript
21 lines
677 B
TypeScript
// The default VitePress theme in the BreakPilot platform look: palette, type
|
|
// and surfaces in custom.css, the BreakPilot wordmark in the navbar, and a
|
|
// custom home page (HomePage.vue) used from docs/index.md.
|
|
import { h } from 'vue'
|
|
import DefaultTheme from 'vitepress/theme'
|
|
import type { Theme } from 'vitepress'
|
|
import HomePage from './components/HomePage.vue'
|
|
import Wordmark from './components/Wordmark.vue'
|
|
import './custom.css'
|
|
|
|
export default {
|
|
extends: DefaultTheme,
|
|
Layout: () =>
|
|
h(DefaultTheme.Layout, null, {
|
|
'nav-bar-title-after': () => h(Wordmark),
|
|
}),
|
|
enhanceApp({ app }) {
|
|
app.component('HomePage', HomePage)
|
|
},
|
|
} satisfies Theme
|