41 lines
1.2 KiB
TypeScript
Executable File

import { defineConfig } from 'vitepress'
import { zh } from './zh'
import { en } from './en'
import { ja } from './ja'
import { defaultLang, generateSidebarConfig, gitea } from './common'
import { generateSidebar } from 'vitepress-sidebar'
// https://vitepress.dev/reference/site-config
export default defineConfig({
head: [
['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
],
rewrites: {
[`${defaultLang}/:rest*`]: ":rest*",
},
cleanUrls: true,
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: {
light: '/marsho-full.svg',
dark: '/marsho-full.svg',
alt: 'Marsho Logo'
},
sidebar: generateSidebar(
[...generateSidebarConfig(),]
),
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 },
ja: { label: "日本語", ...ja },
},
lastUpdated: true,
})