Skip to content

Commit

Permalink
docs: fix docs site zh show bug
Browse files Browse the repository at this point in the history
Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
  • Loading branch information
yuluo-yx committed Jun 14, 2024
1 parent 605cf9a commit 704df31
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/site/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = "API Testing"

# Language settings
contentDir = "content"
defaultContentLanguage = "zh"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
# Useful when translating.
enableMissingTranslationPlaceholders = true
Expand Down Expand Up @@ -63,7 +63,7 @@ id = "UA-00000000-0"
contentDir = "content/zh"
languageName = "中文"
# Weight used for sorting.
weight = 1
weight = 2
[languages.zh.params]
title = "API Testing"
description = "开源的接口调试 & 测试工具"
Expand All @@ -72,7 +72,7 @@ id = "UA-00000000-0"
contentDir = "content/en"
languageName ="English"
# Weight used for sorting.
weight = 2
weight = 1
[languages.en.params]
title = "API Testing"
description = "YAML based API testing tool. Open source interface debug and test tools."
Expand Down Expand Up @@ -254,7 +254,7 @@ enable = true
[[menu.main]]
name = "Documentation"
weight = -102
url = "/v0.0.1"
url = "/latest"

# i18n for Chinese
[[languages.zh.menu.main]]
Expand All @@ -278,7 +278,8 @@ enable = true
version = "latest"
url = "/latest"

[[params.versions]]
version = "v0.0.1"
url = "/v0.0.1"
# version explain menu
# [[params.versions]]
# version = "v0.0.1"
# url = "/v0.0.1"

0 comments on commit 704df31

Please sign in to comment.