📝 [docs]: 新增在线展示
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
import {defineConfig} from 'vitepress'
|
||||
import {generateSidebar} from 'vitepress-sidebar';
|
||||
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
|
||||
import {zh} from "./zh";
|
||||
import {en} from "./en";
|
||||
|
||||
@ -122,4 +123,5 @@ export const common = defineConfig({
|
||||
root: {label: "简体中文", ...zh},
|
||||
en: {label: "English", ...en},
|
||||
},
|
||||
|
||||
})
|
@ -1,13 +1,11 @@
|
||||
import type {Theme} from "vitepress";
|
||||
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import './liteyuki.css'
|
||||
|
||||
import StatsBar from '../../components/StatsBar.vue'
|
||||
|
||||
|
||||
|
||||
export default {
|
||||
extends: DefaultTheme,
|
||||
enhanceApp({app}) {
|
||||
app.component('StatsBar', StatsBar)
|
||||
},
|
||||
} satisfies Theme
|
||||
Layout: StatsBar
|
||||
}
|
Reference in New Issue
Block a user