From 7af3cb2007a4adfdc36ac3dc0a951af987bf5ea6 Mon Sep 17 00:00:00 2001 From: YuLuo Date: Sat, 15 Jun 2024 18:51:35 +0800 Subject: [PATCH] docs: fix docs site zh show bug (#489) Signed-off-by: yuluo-yx --- docs/site/hugo.toml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/site/hugo.toml b/docs/site/hugo.toml index 8d26f66..67c1f19 100644 --- a/docs/site/hugo.toml +++ b/docs/site/hugo.toml @@ -3,7 +3,7 @@ title = "API Testing" # Language settings contentDir = "content" -defaultContentLanguage = "zh" +defaultContentLanguage = "en" defaultContentLanguageInSubdir = false # Useful when translating. enableMissingTranslationPlaceholders = true @@ -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 = "开源的接口调试 & 测试工具" @@ -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." @@ -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]] @@ -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" \ No newline at end of file