From 028406ba18cf024f4ccef5fc198ae84b77ffd63a Mon Sep 17 00:00:00 2001 From: cdn0x12 Date: Mon, 21 Apr 2025 08:09:45 +0800 Subject: [PATCH] Update zh-cn deploy config --- config.toml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/config.toml b/config.toml index cbf63af..987e160 100644 --- a/config.toml +++ b/config.toml @@ -1,7 +1,9 @@ -baseURL = "https://docs.joinmastodon.org/" -languageCode = "en-us" -defaultContentLanguage = "en" -title = "Mastodon documentation" +baseURL = "https://mastodon.d10n.wholetrans.org/" +languageCode = "zh-cn" +defaultContentLanguage = "zh-cn" +# To avoid alias conflict +defaultContentLanguageInSubdir = true +title = "Mastodon 文档" pygmentsCodeFences = true pygmentsStyle = "github-dark" metaDataFormat = "yaml" @@ -106,22 +108,22 @@ disablePathToLower = true [languages.zh-cn.menu] [[languages.zh-cn.menu.docs]] - name = "使用Mastodon" + name = "使用 Mastodon" weight = 10 identifier = "user" url = "/user/" [[languages.zh-cn.menu.docs]] - name = "运营Mastodon" + name = "运营 Mastodon" weight = 20 identifier = "admin" url = "/admin/" [[languages.zh-cn.menu.docs]] - name = "开发Mastodon应用" + name = "开发 Mastodon 应用" weight = 30 identifier = "client" url = "/client/" [[languages.zh-cn.menu.docs]] - name = "向Mastodon项目做贡献" + name = "向 Mastodon 项目做贡献" weight = 40 identifier = "dev" url = "/dev/" @@ -203,7 +205,7 @@ disablePathToLower = true [languages.zh-cn] contentDir = "content/zh-cn" languageName = "简体中文" - weight = 1 + weight = -100 [languages.ja] contentDir = "content/ja"