Skip to content

Commit

Permalink
🎈 perf: 优化细节
Browse files Browse the repository at this point in the history
  • Loading branch information
m1m1sha committed May 7, 2024
1 parent 1ca13c9 commit 8183e3d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
25 changes: 24 additions & 1 deletion .vitepress/config/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ export const cn = defineConfig({
description: '一个简单、安全、去中心化的内网穿透 VPN 组网方案,使用 Rust 语言和 Tokio 框架实现',

themeConfig: {

search: {
provider: 'local',
},
sidebar: [
{
text: '开始',
Expand Down Expand Up @@ -35,5 +37,26 @@ export const cn = defineConfig({
],
},
],
footer: {
message: '基于 Apache License 2.0 许可发布',
copyright: '版权所有 © 2024-present EasyTier',
},
docFooter: {
prev: '上一页',
next: '下一页',
},
lastUpdated: {
text: '最后更新于',
formatOptions: {
dateStyle: 'short',
timeStyle: 'medium',
},
},
langMenuLabel: '多语言',
returnToTopLabel: '回到顶部',
sidebarMenuLabel: '菜单',
darkModeSwitchLabel: '主题',
lightModeSwitchTitle: '切换到浅色模式',
darkModeSwitchTitle: '切换到深色模式',
},
})
7 changes: 7 additions & 0 deletions .vitepress/config/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export const en = defineConfig({
description: 'a simple, safe and decentralized VPN networking solution implemented with the Rust language and Tokio framework.',

themeConfig: {
search: {
provider: 'local',
},
sidebar: [
{
text: 'Getting Started',
Expand Down Expand Up @@ -34,5 +37,9 @@ export const en = defineConfig({
],
},
],
footer: {
message: 'Released under the Apache License 2.0.',
copyright: 'Copyright © 2024-present EasyTier',
},
},
})
1 change: 1 addition & 0 deletions .vitepress/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { cn } from './cn'
export default withMermaid({
title: 'Easytier',
base: '/easytier-doc/',
lastUpdated: true,
locales: {
root: { label: '简体中文', ...cn },
en: { label: 'English', ...en },
Expand Down
2 changes: 1 addition & 1 deletion guide/license.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# 许可证

EasyTier 根据 [Apache License 2.0](https://github.com/KKRainbow/EasyTier/blob/main/LICENSE) 许可证发布
EasyTier 基于 [Apache License 2.0](https://github.com/KKRainbow/EasyTier/blob/main/LICENSE) 许可发布

0 comments on commit 8183e3d

Please sign in to comment.