mirror of
https://github.com/voson-wang/toon.git
synced 2026-01-29 15:24:10 +08:00
24 lines
736 B
TypeScript
24 lines
736 B
TypeScript
import type { Theme } from 'vitepress'
|
|
import CopyOrDownloadAsMarkdownButtons from 'vitepress-plugin-llms/vitepress-components/CopyOrDownloadAsMarkdownButtons.vue'
|
|
import DefaultTheme from 'vitepress/theme'
|
|
import PlaygroundLayout from './components/PlaygroundLayout.vue'
|
|
import VPInput from './components/VPInput.vue'
|
|
|
|
import './vars.css'
|
|
import './overrides.css'
|
|
import 'uno.css'
|
|
|
|
const config: Theme = {
|
|
extends: DefaultTheme,
|
|
enhanceApp({ app }) {
|
|
app.config.globalProperties.$spec = {
|
|
version: '3.0',
|
|
}
|
|
app.component('CopyOrDownloadAsMarkdownButtons', CopyOrDownloadAsMarkdownButtons)
|
|
app.component('PlaygroundLayout', PlaygroundLayout)
|
|
app.component('VPInput', VPInput)
|
|
},
|
|
}
|
|
|
|
export default config
|