koel/docs/.vitepress/theme/index.ts

24 lines
921 B
TypeScript
Raw Normal View History

2024-03-17 18:28:39 +00:00
import { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import UISubjectToChangeNote from '../components/UISubjectToChangeNote.vue'
import InterfaceIcon from '../components/InterfaceIcon.vue'
import Themes from '../components/Themes.vue'
import MobileAppScreenshots from '../components/MobileAppScreenshots.vue'
import PlusBadge from '../components/PlusBadge.vue'
import CaptionedImage from '../components/CaptionedImage.vue'
import Layout from '../layout/Layout.vue'
2024-04-26 13:35:26 +00:00
import './custom.pcss'
2024-03-17 18:28:39 +00:00
export default {
Layout,
extends: DefaultTheme,
enhanceApp({ app }) {
app.component('InterfaceIcon', InterfaceIcon)
app.component('Themes', Themes)
app.component('UISubjectToChangeNote', UISubjectToChangeNote)
app.component('MobileAppScreenshots', MobileAppScreenshots)
app.component('PlusBadge', PlusBadge)
app.component('CaptionedImage', CaptionedImage)
}
} satisfies Theme