From 96be78cdd59852df8ece8fe3f15382363ff63a7e Mon Sep 17 00:00:00 2001 From: CDN18 Date: Sun, 3 Nov 2024 05:33:35 +0800 Subject: [PATCH] [docs] fix zh readme reference + migrate language-specific repo markdown to docs --- docs/locales/zh/getting_started/releases.md | 2 +- docs/locales/zh/index.md | 6 +++--- docs/locales/zh/mkdocs.yml | 3 +++ README.zh.md => docs/locales/zh/repo/README.md | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) rename README.zh.md => docs/locales/zh/repo/README.md (99%) diff --git a/docs/locales/zh/getting_started/releases.md b/docs/locales/zh/getting_started/releases.md index ba7bcd5a6..01dbdbb94 100644 --- a/docs/locales/zh/getting_started/releases.md +++ b/docs/locales/zh/getting_started/releases.md @@ -5,7 +5,7 @@ GoToSocial 可以通过多种方式进行安装。我们发布官方的二进制 有许多第三方软件包由不同的发行版维护,一些用户还创建了额外的部署工具,以便你可以轻松地自行部署 GoToSocial。 {% - include "../../../../README.zh.md" + include "../repo/README.md" start='' end='' %} \ No newline at end of file diff --git a/docs/locales/zh/index.md b/docs/locales/zh/index.md index 48466ef4c..bc3030e8b 100644 --- a/docs/locales/zh/index.md +++ b/docs/locales/zh/index.md @@ -1,17 +1,17 @@ {% - include "../../../README.zh.md" + include "../../../README.md" start='' end='' %} {% - include "../../../README.zh.md" + include "../../../README.md" start='' end='' %} {% - include "../../../README.zh.md" + include "../../../README.md" start='' end='' %} diff --git a/docs/locales/zh/mkdocs.yml b/docs/locales/zh/mkdocs.yml index da8bc1618..1fc71f9e0 100644 --- a/docs/locales/zh/mkdocs.yml +++ b/docs/locales/zh/mkdocs.yml @@ -16,6 +16,9 @@ docs_dir: . edit_uri: edit/main/docs/locales/zh/ copyright: GoToSocial 以 GNU AGPL v3 许可授权。版权所有 (C) 全体 GoToSocial 开发者 admin@gotosocial.org +exclude_docs: | + repo/** + nav: - "主页": "index.md" - "FAQ": "faq.md" diff --git a/README.zh.md b/docs/locales/zh/repo/README.md similarity index 99% rename from README.zh.md rename to docs/locales/zh/repo/README.md index 15c7e02d9..3f342e91e 100644 --- a/README.zh.md +++ b/docs/locales/zh/repo/README.md @@ -266,8 +266,6 @@ GoToSocial 支持 [OpenID Connect (OIDC)](https://openid.net/connect/) 身份提 查看我们的 [入门文档](https://docs.gotosocial.org/zh-cn/latest/getting_started/),并浏览我们的 [发布页面](https://github.com/superseriousbusiness/gotosocial/releases)。 ---- - ### 支持的平台 @@ -363,6 +361,7 @@ S3 存储桶中的快照版二进制发布由 Github 提交哈希控制。要获 --- ## 致谢 + ### 库 @@ -428,6 +427,7 @@ GoToSocial 使用以下开源库、框架和工具,在此声明并致谢 💕 - [wagslane/go-password-validator](https://github.com/wagslane/go-password-validator); 密码强度验证。 [MIT 许可证](https://spdx.org/licenses/MIT.html)。 - [yuin/goldmark](https://github.com/yuin/goldmark); Markdown 解析器。 [MIT 许可证](https://spdx.org/licenses/MIT.html)。 + ### 图像归属与许可 树懒标志由 [Anna Abramek](https://abramek.art/) 设计。