Skip to content

Commit 42062a2

Browse files
authored
fix: the website language is not setup correctly (#787)
* fix: the website language is not setup correctly * upgrade docsy version --------- Co-authored-by: rick <[email protected]>
1 parent bff5a58 commit 42062a2

File tree

6 files changed

+37
-26
lines changed

6 files changed

+37
-26
lines changed

docs/site/content/zh/latest/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ type = "docs"
99

1010
{{% alert title="记录" color="primary" %}}
1111

12-
该项目正在**积极**开发中,很多功能尚待补充,我们希望您[参与其中](contributions/)
12+
我们欢迎您[参与其中](contributions/)
1313

1414
{{% /alert %}}
1515

16-
API Testing 一个基于 YAML 文件的开源接口测试工具,同时支持运行在本地、服务端。
16+
API Testing (也就是 atest) 一个基于 YAML 文件的开源接口测试工具,同时支持运行在本地、服务端。
1717

1818
在选择工具时,可以从很多方面进行考量、对比,以下几点是该工具的特色或者优点:
1919

20-
* 开源与否,atest 采用 MIT 开源协议,是最流行的宽松开源协议之一。有些工具也许有非常丰富的功能、漂亮的界面,但相比于开源项目,免费的工具不定什么时候就有可能变为收费的;而且,你的使用感受几乎很难直接反馈到产品中,只能被动接受。
20+
* 开源与否,atest 采用 Apache 开源协议,是最流行的宽松开源协议之一。有些工具也许有非常丰富的功能、漂亮的界面,但相比于开源项目,免费的工具不定什么时候就有可能变为收费的;而且,你的使用感受几乎很难直接反馈到产品中,只能被动接受。
2121
* 质量、可靠性,作为一款用于测试场景的工具,atest 本身的单元测试覆盖率达 89%,单测代码与业务逻辑代码量平分秋色;另外,每次代码改动都需要通过代码扫描、单元测试等流水线。
2222
* 身材小巧,整个工具大小为 18M,支持 Windows、Linux、macOS 平台。
2323
* 只有简单的可执行二进制文件,不像部分工具会给你的操作系统安装莫名其妙的系统启动项目、系统服务等。
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
---
2-
title: "版本发布"
3-
weight: 90
4-
description: 本节内容包含 API Testing 的版本概述。
5-
---
1+
+++
2+
title = "版本发布"
3+
weight = "90"
4+
description = "本节内容包含 API Testing 的版本概述"
5+
6+
[[cascade]]
7+
type = "docs"
8+
+++

docs/site/go.mod

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
module github.com/google/docsy-example
1+
module github.com/linuxsuren/api-testing
22

33
go 1.22.1
44

55
require (
6-
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2 // indirect
7-
github.com/google/docsy v0.7.1 // indirect
8-
github.com/twbs/bootstrap v5.2.3+incompatible // indirect
6+
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 // indirect
7+
github.com/google/docsy v0.12.0 // indirect
8+
github.com/google/docsy/dependencies v0.7.2 // indirect
9+
github.com/twbs/bootstrap v5.3.6+incompatible // indirect
910
)

docs/site/go.sum

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ github.com/FortAwesome/Font-Awesome v0.0.0-20221115183454-96cafbd73ec4 h1:xfr9Si
44
github.com/FortAwesome/Font-Awesome v0.0.0-20221115183454-96cafbd73ec4/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
55
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2 h1:Uv1z5EqCfmiK4IHUwT0m3h/u/WCk+kpRfxvAZhpC7Gc=
66
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
7+
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 h1:/iluJkJiyTAdnqrw3Yi9rH2HNHhrrtCmj8VJe7I6o3w=
8+
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
79
github.com/google/docsy v0.5.1 h1:D/ZdFKiE29xM/gwPwQzmkyXhcbQGkReRS6aGrF7lnYk=
810
github.com/google/docsy v0.5.1/go.mod h1:maoUAQU5H/d+FrZIB4xg1EVWAx7RyFMGSDJyWghm31E=
911
github.com/google/docsy v0.6.0 h1:43bVF18t2JihAamelQjjGzx1vO2ljCilVrBgetCA8oI=
@@ -12,11 +14,17 @@ github.com/google/docsy v0.7.0 h1:JaeZ0/KufX/BJ3SyATb/fmZa1DFI7o5d9KU+i6+lLJY=
1214
github.com/google/docsy v0.7.0/go.mod h1:5WhIFchr5BfH6agjcInhpLRz7U7map0bcmKSpcrg6BE=
1315
github.com/google/docsy v0.7.1 h1:DUriA7Nr3lJjNi9Ulev1SfiG1sUYmvyDeU4nTp7uDxY=
1416
github.com/google/docsy v0.7.1/go.mod h1:JCmE+c+izhE0Rvzv3y+AzHhz1KdwlA9Oj5YBMklJcfc=
17+
github.com/google/docsy v0.12.0 h1:CddZKL39YyJzawr8GTVaakvcUTCJRAAYdz7W0qfZ2P4=
18+
github.com/google/docsy v0.12.0/go.mod h1:1bioDqA493neyFesaTvQ9reV0V2vYy+xUAnlnz7+miM=
1519
github.com/google/docsy/dependencies v0.5.1/go.mod h1:EDGc2znMbGUw0RW5kWwy2oGgLt0iVXBmoq4UOqstuNE=
1620
github.com/google/docsy/dependencies v0.6.0/go.mod h1:EDGc2znMbGUw0RW5kWwy2oGgLt0iVXBmoq4UOqstuNE=
1721
github.com/google/docsy/dependencies v0.7.0/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
1822
github.com/google/docsy/dependencies v0.7.1/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
23+
github.com/google/docsy/dependencies v0.7.2 h1:+t5ufoADQAj4XneFphz4A+UU0ICAxmNaRHVWtMYXPSI=
24+
github.com/google/docsy/dependencies v0.7.2/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
1925
github.com/twbs/bootstrap v4.6.2+incompatible h1:TDa+R51BTiy1wEHSYjmqDb8LxNl/zaEjAOpRE9Hwh/o=
2026
github.com/twbs/bootstrap v4.6.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
2127
github.com/twbs/bootstrap v5.2.3+incompatible h1:lOmsJx587qfF7/gE7Vv4FxEofegyJlEACeVV+Mt7cgc=
2228
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
29+
github.com/twbs/bootstrap v5.3.6+incompatible h1:efmXVyq839m5QQ0+JBUdQQ1TrmoBqvQ5kRhUueKsH+4=
30+
github.com/twbs/bootstrap v5.3.6+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

docs/site/hugo.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title = "API Testing"
33

44
# Language settings
55
contentDir = "content"
6-
defaultContentLanguage = "zh"
6+
defaultContentLanguage = "zh-cn"
77
defaultContentLanguageInSubdir = false
88
# Useful when translating.
99
enableMissingTranslationPlaceholders = true
@@ -59,12 +59,12 @@ id = "UA-00000000-0"
5959

6060
[languages]
6161

62-
[languages.zh]
62+
[languages.zh-cn]
6363
contentDir = "content/zh"
6464
languageName = "中文"
6565
# Weight used for sorting.
6666
weight = 2
67-
[languages.zh.params]
67+
[languages.zh-cn.params]
6868
title = "API Testing"
6969
description = "开源的接口调试 & 测试工具"
7070

@@ -217,22 +217,22 @@ enable = true
217217
desc = "Chat with other project developers"
218218

219219
# i18n for Chinese
220-
[[languages.zh.params.links.user]]
220+
[[languages.zh-cn.params.links.user]]
221221
name = "邮件列表"
222222
url = "https://groups.google.com/g/api-testing-tech"
223223
icon = "fa fa-envelope"
224224
desc = "来自其他用户的讨论和帮助"
225-
[[languages.zh.params.links.user]]
225+
[[languages.zh-cn.params.links.user]]
226226
name ="推特"
227227
url = "https://twitter.com/apitesting"
228228
icon = "fab fa-twitter"
229229
desc = "在 Twitter 上关注我们以获取最新消息!"
230-
[[languages.zh.params.links.developer]]
230+
[[languages.zh-cn.params.links.developer]]
231231
name = "GitHub"
232232
url = "https://github.com/LinuxSuRen/api-testing"
233233
icon = "fab fa-github"
234234
desc = "在这里进行开发!"
235-
[[languages.zh.params.links.developer]]
235+
[[languages.zh-cn.params.links.developer]]
236236
name = "Slack"
237237
url = "https://apitesting.slack.com/archives/C03E6NHLESV"
238238
icon = "fab fa-slack"
@@ -257,23 +257,23 @@ enable = true
257257
url = "/latest"
258258

259259
# i18n for Chinese
260-
[[languages.zh.menu.main]]
260+
[[languages.zh-cn.menu.main]]
261261
name = "版本发布"
262262
weight = -80
263263
url = "/releases"
264-
[[languages.zh.menu.main]]
264+
[[languages.zh-cn.menu.main]]
265265
name = "贡献"
266266
weight = -98
267267
url = "/contributions"
268-
[[languages.zh.menu.main]]
268+
[[languages.zh-cn.menu.main]]
269269
name = "关于"
270270
weight = -100
271271
url = "/about"
272-
[[languages.zh.menu.main]]
272+
[[languages.zh-cn.menu.main]]
273273
name = "新闻"
274274
weight = -101
275275
url = "/news"
276-
[[languages.zh.menu.main]]
276+
[[languages.zh-cn.menu.main]]
277277
name = "文档"
278278
weight = -102
279279
url = "/latest"
@@ -286,4 +286,3 @@ enable = true
286286
# [[params.versions]]
287287
# version = "v0.0.1"
288288
# url = "/v0.0.1"
289-

docs/site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"devDependencies": {
3434
"autoprefixer": "^10.4.14",
35-
"hugo-extended": "0.123.8",
35+
"hugo-extended": "0.148.2",
3636
"postcss-cli": "^10.1.0"
3737
}
3838
}

0 commit comments

Comments
 (0)