150 lines
6.1 KiB
TypeScript
150 lines
6.1 KiB
TypeScript
import {defineConfig} from 'vitepress'
|
|
const base = '/'
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
base: base,
|
|
title: "voidraft",
|
|
description: "An elegant text snippet recording tool designed for developers.",
|
|
srcDir: 'src',
|
|
assetsDir: 'assets',
|
|
cacheDir: './.vitepress/cache',
|
|
outDir: './.vitepress/dist',
|
|
srcExclude: [],
|
|
ignoreDeadLinks: false,
|
|
head: [
|
|
["link", {rel: "icon", type: "image/png", href: "/icon/favicon-96x96.png", sizes: "96x96"}],
|
|
["link", {rel: "icon", type: "image/svg+xml", href: "/icon/favicon.svg"}],
|
|
["link", {rel: "shortcut icon", href: "/icon/favicon.ico"}],
|
|
["link", {rel: "apple-touch-icon", sizes: "180x180", href: "/icon/apple-touch-icon.png"}],
|
|
["meta", {name: "apple-mobile-web-app-title", content: "voidraft"}],
|
|
["link", {rel: "manifest", href: "/icon/site.webmanifest"}],
|
|
['meta', {name: 'viewport', content: 'width=device-width,initial-scale=1'}]
|
|
],
|
|
|
|
// 国际化配置
|
|
locales: {
|
|
root: {
|
|
label: 'English',
|
|
lang: 'en-US',
|
|
description: 'An elegant text snippet recording tool designed for developers.',
|
|
themeConfig: {
|
|
logo: '/icon/logo.png',
|
|
siteTitle: 'voidraft',
|
|
nav: [
|
|
{text: 'Home', link: '/'},
|
|
{text: 'Guide', link: '/guide/introduction'}
|
|
],
|
|
sidebar: {
|
|
'/guide/': [
|
|
{
|
|
text: 'Getting Started',
|
|
items: [
|
|
{text: 'Introduction', link: '/guide/introduction'},
|
|
{text: 'Installation', link: '/guide/installation'},
|
|
{text: 'Quick Start', link: '/guide/getting-started'}
|
|
]
|
|
},
|
|
{
|
|
text: 'Features',
|
|
items: [
|
|
{text: 'Overview', link: '/guide/features'}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
socialLinks: [
|
|
{icon: 'github', link: 'https://github.com/landaiqing/voidraft'}
|
|
],
|
|
outline: {
|
|
label: 'On this page'
|
|
},
|
|
lastUpdated: {
|
|
text: 'Last updated'
|
|
},
|
|
docFooter: {
|
|
prev: 'Previous',
|
|
next: 'Next'
|
|
},
|
|
darkModeSwitchLabel: 'Appearance',
|
|
sidebarMenuLabel: 'Menu',
|
|
returnToTopLabel: 'Return to top',
|
|
footer: {
|
|
message: 'Released under the MIT License.',
|
|
copyright: 'Copyright © 2025-present landaiqing'
|
|
}
|
|
}
|
|
},
|
|
zh: {
|
|
label: '简体中文',
|
|
lang: 'zh-CN',
|
|
link: '/zh/',
|
|
description: '一个为开发者设计的优雅文本片段记录工具',
|
|
themeConfig: {
|
|
logo: '/icon/logo.png',
|
|
siteTitle: 'voidraft',
|
|
nav: [
|
|
{text: '首页', link: '/zh/'},
|
|
{text: '指南', link: '/zh/guide/introduction'}
|
|
],
|
|
sidebar: {
|
|
'/zh/guide/': [
|
|
{
|
|
text: '开始使用',
|
|
items: [
|
|
{text: '简介', link: '/zh/guide/introduction'},
|
|
{text: '安装', link: '/zh/guide/installation'},
|
|
{text: '快速开始', link: '/zh/guide/getting-started'},
|
|
{text: '界面总览', link: '/zh/guide/ui-overview'},
|
|
{text: '块语法与结构', link: '/zh/guide/block-syntax'}
|
|
]
|
|
},
|
|
{
|
|
text: '编辑与效率',
|
|
items: [
|
|
{text: '键盘快捷键', link: '/zh/guide/keyboard-shortcuts'},
|
|
{text: '多窗口与标签页', link: '/zh/guide/multiwindow-tabs'},
|
|
{text: '扩展与插件', link: '/zh/guide/extensions'},
|
|
{text: 'HTTP 客户端', link: '/zh/guide/http-client'}
|
|
]
|
|
},
|
|
{
|
|
text: '个性化与数据',
|
|
items: [
|
|
{text: '设置与配置', link: '/zh/guide/settings'},
|
|
{text: '主题与外观', link: '/zh/guide/themes'},
|
|
{text: '备份与更新', link: '/zh/guide/backup-update'}
|
|
]
|
|
},
|
|
{
|
|
text: '问题处理',
|
|
items: [
|
|
{text: '常见问题与故障排查', link: '/zh/guide/troubleshooting'}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
socialLinks: [
|
|
{icon: 'github', link: 'https://github.com/landaiqing/voidraft'}
|
|
],
|
|
outline: {
|
|
label: '本页目录'
|
|
},
|
|
lastUpdated: {
|
|
text: '最后更新'
|
|
},
|
|
docFooter: {
|
|
prev: '上一页',
|
|
next: '下一页'
|
|
},
|
|
darkModeSwitchLabel: '外观',
|
|
sidebarMenuLabel: '菜单',
|
|
returnToTopLabel: '返回顶部',
|
|
footer: {
|
|
message: 'Released under the MIT License.',
|
|
copyright: 'Copyright © 2025-present landaiqing'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|