Skip to content

Commit 4d2f531

Browse files
committed
refactor(website): 优化语言配置和文档首页内容
1 parent 3c7c215 commit 4d2f531

File tree

4 files changed

+28
-20
lines changed

4 files changed

+28
-20
lines changed

website/docs/.vitepress/locales/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const require = createRequire(import.meta.url)
55
const pkg = require('vitepress/package.json')
66

77
export default defineConfig({
8-
lang: 'en-US',
8+
lang: 'en',
99
description: 'Advanced GPU governor designed specifically for MediaTek processors.',
1010

1111
themeConfig: {

website/docs/.vitepress/locales/index.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
import { defineConfig } from 'vitepress'
22
import en from './en'
3-
import zh_CN from './zh'
3+
import zh from './zh'
44

55
export default defineConfig({
66
locales: {
7+
root: {
8+
label: '中文',
9+
lang: zh.lang,
10+
themeConfig: zh.themeConfig,
11+
description: zh.description
12+
},
713
zh: {
8-
label: '简体中文',
9-
lang: zh_CN.lang,
10-
themeConfig: zh_CN.themeConfig,
11-
description: zh_CN.description
14+
label: '中文',
15+
lang: zh.lang,
16+
themeConfig: zh.themeConfig,
17+
description: zh.description
1218
},
1319
en: {
1420
label: 'English',

website/docs/.vitepress/locales/zh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const require = createRequire(import.meta.url)
55
const pkg = require('vitepress/package.json')
66

77
export default defineConfig({
8-
lang: 'zh-CN',
8+
lang: 'zh',
99
description: '专为联发科处理器设计的先进 GPU 调速器。',
1010

1111
themeConfig: {

website/docs/zh/index.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,20 @@ hero:
1919
- theme: brand
2020
text: 查看源码
2121
link: https://github.com/Seyud/Mediatek_Mali_GPU_Governor
22+
- theme: alt
23+
text: 📱 加入QQ群
24+
link: https://qun.qq.com/universal-share/share?ac=1&authKey=zwOHClW5YTIZobOTsqvF6lBaACPvS7%2F2Y0s%2FpQadAMss5d2nxcr46fmsm%2FFreVjt&busi_data=eyJncm91cENvZGUiOiI3MTk4NzIzMDkiLCJ0b2tlbiI6IjhQNUhYM1M4NUs4bFVwQmNsODRrUU1Xc0phR3dra1RUYnE0S0tMVFNzV3JUU2s3elgvSFRyUXJQdWtEQ1NVYSsiLCJ1aW4iOiIxMTA1NzgzMDMzIn0%3D&data=VgJU9DuiAPqB3ocg4Zlh8UShvQmDEgEfH4wvqCVXWOD8qcBSzYDPQuwUKVgLOIzZ-CWhtV69fyTHD4Q0GqWWKw&svctype=4&tempid=h5_group_info
25+
- theme: alt
26+
text: 💬 Telegram群
27+
link: https://t.me/MTK_GPU
2228

2329
features:
24-
- title: 🚀 高性能优化
25-
details: 基于 Rust 开发,提供快速响应的 GPU 频率调节
26-
- title: ⚡ 智能调频
27-
details: 根据实际负载动态调整 GPU 频率,实现性能与功耗的最佳平衡
28-
- title: 🎯 专为联发科优化
29-
details: 针对天玑系列处理器深度定制,完美支持 Mali GPU 架构
30-
- title: 🛡️ 稳定可靠
31-
details: 经过大量测试验证,确保系统稳定性和安全性
32-
- title: 🔧 易于配置
33-
details: 提供友好的配置界面和详细的文档说明
34-
- title: 🌐 开源免费
35-
details: 完全开源,持续更新,社区支持
36-
---
30+
- title: 🦀 Rust 核心引擎
31+
details: 使用 Rust 语言开发的高性能核心引擎,多线程监控架构确保内存安全和零成本抽象。
32+
- title: 🎮 智能游戏模式
33+
details: 自动检测游戏应用并应用性能优化的 GPU 频率策略,为游戏体验提供最佳性能。
34+
- title: 🖥️ 现代化 WebUI
35+
details: 基于 KernelSU API 的 Miuix 风格图形化管理界面,支持深色/浅色主题和多语言界面。
36+
- title: ⚙️ 高度可定制
37+
details: 灵活的配置系统,支持自定义 GPU 频率表、电压设置和四种不同的性能模式。
38+

0 commit comments

Comments
 (0)