1
0
forked from bot/app

📝 [docs]: 新增在线展示

This commit is contained in:
2024-09-01 20:39:51 +08:00
parent 0860b61ccd
commit 9cae3edb6b
12 changed files with 591 additions and 257 deletions

View File

@ -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},
},
})

View File

@ -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
}