diff --git a/.vitepress/config/cn.ts b/.vitepress/config/cn.ts index bb9b9b6..2e5bf61 100644 --- a/.vitepress/config/cn.ts +++ b/.vitepress/config/cn.ts @@ -5,7 +5,9 @@ export const cn = defineConfig({ description: '一个简单、安全、去中心化的内网穿透 VPN 组网方案,使用 Rust 语言和 Tokio 框架实现', themeConfig: { - + search: { + provider: 'local', + }, sidebar: [ { text: '开始', @@ -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: '切换到深色模式', }, }) diff --git a/.vitepress/config/en.ts b/.vitepress/config/en.ts index 1356d60..a21652e 100644 --- a/.vitepress/config/en.ts +++ b/.vitepress/config/en.ts @@ -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', @@ -34,5 +37,9 @@ export const en = defineConfig({ ], }, ], + footer: { + message: 'Released under the Apache License 2.0.', + copyright: 'Copyright © 2024-present EasyTier', + }, }, }) diff --git a/.vitepress/config/index.ts b/.vitepress/config/index.ts index 4e0612c..5ba99d1 100644 --- a/.vitepress/config/index.ts +++ b/.vitepress/config/index.ts @@ -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 }, diff --git a/guide/license.md b/guide/license.md index be092e6..bbf5dfb 100644 --- a/guide/license.md +++ b/guide/license.md @@ -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) 许可发布。