mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 22:59:53 +00:00
✨ 添加 VitePress 配置和主题支持;更新 .gitignore 文件以排除不必要的目录;新增中英文文档首页
This commit is contained in:
31
docs/.vitepress/config/index.ts
Normal file
31
docs/.vitepress/config/index.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
import {zh} from './zh'
|
||||
import {en} from './en'
|
||||
import { gitea } from './common'
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
head: [
|
||||
['link', { rel: 'icon', type: 'image/x-icon', href: './favicon.ico' }],
|
||||
],
|
||||
rewrites: {
|
||||
[`zh/:rest*`]: ":rest*",
|
||||
},
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
logo: {
|
||||
light: './marsho-full.svg',
|
||||
dark: './marsho-full.svg',
|
||||
alt: 'Marsho Logo'
|
||||
},
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/LiteyukiStudio/nonebot-plugin-marshoai' },
|
||||
{ icon: gitea, link: 'https://git.liteyuki.icu/LiteyukiStudio/nonebot-plugin-marshoai'}
|
||||
]
|
||||
},
|
||||
locales: {
|
||||
root: { label: "简体中文", ...zh },
|
||||
en: { label: "English", ...en },
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user