mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-02 05:19:50 +00:00
✨ 添加 VitePress 配置和主题支持;更新 .gitignore 文件以排除不必要的目录;新增中英文文档首页
This commit is contained in:
3
docs/.vitepress/config/common.ts
Normal file
3
docs/.vitepress/config/common.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export const gitea = {
|
||||
svg: '<svg t="1725391346807" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5067" width="256" height="256"><path d="M1004.692673 466.396616l-447.094409-447.073929c-25.743103-25.763582-67.501405-25.763582-93.264987 0l-103.873521 103.873521 78.171378 78.171378c12.533635-6.00058 26.562294-9.359266 41.389666-9.359266 53.02219 0 96.00928 42.98709 96.00928 96.00928 0 14.827372-3.358686 28.856031-9.359266 41.389666l127.97824 127.97824c12.533635-6.00058 26.562294-9.359266 41.389666-9.359266 53.02219 0 96.00928 42.98709 96.00928 96.00928s-42.98709 96.00928-96.00928 96.00928-96.00928-42.98709-96.00928-96.00928c0-14.827372 3.358686-28.856031 9.359266-41.389666l-127.97824-127.97824c-3.051489 1.454065-6.184898 2.744293-9.379746 3.870681l0 266.97461c37.273227 13.188988 63.99936 48.721433 63.99936 90.520695 0 53.02219-42.98709 96.00928-96.00928 96.00928s-96.00928-42.98709-96.00928-96.00928c0-41.799262 26.726133-77.331707 63.99936-90.520695l0-266.97461c-37.273227-13.188988-63.99936-48.721433-63.99936-90.520695 0-14.827372 3.358686-28.856031 9.359266-41.389666l-78.171378-78.171378-295.892081 295.871601c-25.743103 25.784062-25.743103 67.542365 0 93.285467l447.114889 447.073929c25.743103 25.743103 67.480925 25.743103 93.264987 0l445.00547-445.00547c25.763582-25.763582 25.763582-67.542365 0-93.285467z" fill="#a2d8f4" p-id="5068"></path></svg>'
|
||||
}
|
19
docs/.vitepress/config/en.ts
Normal file
19
docs/.vitepress/config/en.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import {defineConfig} from 'vitepress'
|
||||
|
||||
export const en = defineConfig({
|
||||
lang: "en-US",
|
||||
title: "Marsho AI",
|
||||
description: "Kawaii, Intelligent and Easy to Extend",
|
||||
themeConfig: {
|
||||
docFooter: {
|
||||
prev: 'Prev',
|
||||
next: 'Next'
|
||||
},
|
||||
langMenuLabel: 'Language',
|
||||
returnToTopLabel: 'To top',
|
||||
sidebarMenuLabel: 'Option',
|
||||
darkModeSwitchLabel: 'Theme',
|
||||
lightModeSwitchTitle: 'Light',
|
||||
darkModeSwitchTitle: 'Dark',
|
||||
},
|
||||
})
|
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 },
|
||||
},
|
||||
})
|
0
docs/.vitepress/config/ja.ts
Normal file
0
docs/.vitepress/config/ja.ts
Normal file
19
docs/.vitepress/config/zh.ts
Normal file
19
docs/.vitepress/config/zh.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import {defineConfig} from 'vitepress'
|
||||
|
||||
export const zh = defineConfig({
|
||||
lang: "zh-Hans",
|
||||
title: "小棉智能",
|
||||
description: "可爱,智能且易扩展",
|
||||
themeConfig: {
|
||||
docFooter: {
|
||||
prev: '上一页',
|
||||
next: '下一页'
|
||||
},
|
||||
langMenuLabel: '语言',
|
||||
returnToTopLabel: '返回顶部',
|
||||
sidebarMenuLabel: '菜单',
|
||||
darkModeSwitchLabel: '主题',
|
||||
lightModeSwitchTitle: '轻色模式',
|
||||
darkModeSwitchTitle: '深色模式',
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user