Skip to content

Commit

Permalink
Patch docs (#817)
Browse files Browse the repository at this point in the history
* Patch docs

* 移除文档首页中的注释链接,简化内容

* Update docs and translate

* 优化文档翻译功能,使用数组替换多个 str_replace 调用,提升代码可读性

* 移除文档首页中的无用链接,简化内容

* 在文档首页添加 VitePress 默认主题主页的链接

* 将文档首页中的“GitHub”链接文本更改为“仓库”,以提高中文用户的理解度

* 将文档首页中的“仓库”链接文本更改为“GitHub”,以保持一致性

* Update docs and translate

* 重构文档翻译功能,支持多语言翻译并更新路径映射

* 将导航中的“FAQ”文本更改为“常见问题”,以提高中文用户的理解度

* Update docs and translate

---------

Co-authored-by: Deeka Wong <[email protected]>
Co-authored-by: huangdijia <[email protected]>
  • Loading branch information
3 people authored Dec 26, 2024
1 parent f4950fa commit 20c8f2a
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .vitepress/src/zh-cn/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {DefaultTheme} from "vitepress";

const nav:DefaultTheme.NavItem[] = [
{ text: '组件', link: '/zh-cn/components/' },
{ text: 'FAQ', link: '/zh-cn/faq/index' },
{ text: '常见问题', link: '/zh-cn/faq/index' },
{ text: '更多', items:[
{ text: 'Hyperf', link: 'https://hyperf.wiki/' },
{ text: 'MineAdmin', link: 'https://www.mineadmin.com/' }
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/src/zh-hk/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {DefaultTheme} from "vitepress";

const nav:DefaultTheme.NavItem[] = [
{ text: '組件', link: '/zh-hk/components/' },
{ text: 'FAQ', link: '/zh-hk/faq/index' },
{ text: '常見問題', link: '/zh-hk/faq/index' },
{ text: '更多', items:[
{ text: 'Hyperf', link: 'https://hyperf.wiki/' },
{ text: 'MineAdmin', link: 'https://www.mineadmin.com/' }
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/src/zh-tw/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {DefaultTheme} from "vitepress";

const nav:DefaultTheme.NavItem[] = [
{ text: '元件', link: '/zh-tw/components/' },
{ text: 'FAQ', link: '/zh-tw/faq/index' },
{ text: '常見問題', link: '/zh-tw/faq/index' },
{ text: '更多', items:[
{ text: 'Hyperf', link: 'https://hyperf.wiki/' },
{ text: 'MineAdmin', link: 'https://www.mineadmin.com/' }
Expand Down
3 changes: 0 additions & 3 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ hero:
text: "最受欢迎的 Hyperf 组件"
tagline: "让 Hyperf 像 Laravel 一样简单且强大 🚀"
actions:
# - theme: brand
# text: 入门
# link: /zh-cn/guide/
- theme: brand
text: 组件
link: /zh-cn/components/
Expand Down
49 changes: 49 additions & 0 deletions zh-cn/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home

hero:
name: "FriendsOfHyperf"
text: "最受欢迎的 Hyperf 组件"
tagline: "让 Hyperf 像 Laravel 一样简单且强大 🚀"
actions:
- theme: brand
text: 组件
link: /zh-cn/components/
- theme: alt
text: GitHub
link: "https://github.com/friendsofhyperf/components"

features:
- title: Sentry
details: 这是 Sentry 的 Hyperf SDK。
link: /zh-cn/components/sentry/
- title: Telecope
details: Telescope 是 Hyperf 框架的优雅调试助手。
link: /zh-cn/components/telescope/
- title: Tinker
details: Tinker 是 Hyperf 框架的强大 REPL。
link: /zh-cn/components/tinker/
- title: Web Tinker
details: 在浏览器中使用 Tinker。
link: /zh-cn/components/web-tinker/
- title: Encryption
details: Encryption 提供了一个简单、方便的加密和解密功能。
link: /zh-cn/components/encryption/
- title: Cache
details: Cache 提供了一个富有表现力的统一缓存 API。
link: /zh-cn/components/cache/
- title: HttpClient
details: HttpClient 提供了一个简单、方便的 HTTP 客户端。
link: /zh-cn/components/http-client/
- title: Validated DTO
details: Validated DTO 提供了一个简单、方便的数据验证功能。
link: /zh-cn/components/validated-dto/
- title: Lock
details: Lock 提供了一个简单、方便的分布式锁功能。
link: /zh-cn/components/lock/
- title: More
details: 更多组件…
link: /zh-cn/components/
---

3 changes: 0 additions & 3 deletions zh-hk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ hero:
text: "最受歡迎的 Hyperf 組件"
tagline: "讓 Hyperf 像 Laravel 一樣簡單且強大 🚀"
actions:
# - theme: brand
# text: 入門
# link: /zh-hk/guide/
- theme: brand
text: 組件
link: /zh-hk/components/
Expand Down
5 changes: 1 addition & 4 deletions zh-tw/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ hero:
text: "最受歡迎的 Hyperf 元件"
tagline: "讓 Hyperf 像 Laravel 一樣簡單且強大 🚀"
actions:
# - theme: brand
# text: 入門
# link: /zh-tw/guide/
- theme: brand
text: 元件
link: /zh-tw/components/
Expand All @@ -22,7 +19,7 @@ features:
details: 這是 Sentry 的 Hyperf SDK。
link: /zh-tw/components/sentry/
- title: Telecope
details: Telescope 是 Hyperf 框架的優雅偵錯助手
details: Telescope 是 Hyperf 框架的優雅除錯助手
link: /zh-tw/components/telescope/
- title: Tinker
details: Tinker 是 Hyperf 框架的強大 REPL。
Expand Down

0 comments on commit 20c8f2a

Please sign in to comment.