From 4bc16feae46595fa6f200360ef09682b6efcaa73 Mon Sep 17 00:00:00 2001 From: KenanZhu Date: Wed, 4 Nov 2026 12:43:48 +0800 Subject: [PATCH] docs: simplify repository links --- README.md | 4 ++-- custom.css | 13 ++----------- docs.json | 11 +---------- zh/manual/v1.3.0/faq/contact.mdx | 4 ++-- zh/manual/v1.4.0/faq/contact.mdx | 4 ++-- 5 files changed, 9 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 2d0470c..1ad8bfb 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ AutoLibrary 北京建筑大学图书馆自动化工具的 Mintlify 文档站点。 -- [AutoLibrary 主项目(Gitea)](https://gitea.kenanzhu.com/AutoLibrary/AutoLibrary) -- [用户手册仓库(GitLab)](https://gitlab.com/KenanZhu/AutoLibraryManuals) +- [AutoLibrary 主项目](https://gitea.kenanzhu.com/AutoLibrary/AutoLibrary) +- [用户手册仓库](https://gitlab.com/KenanZhu/AutoLibraryManuals) - [文档贡献指南](CONTRIBUTING.md) ## 图片资源清单 diff --git a/custom.css b/custom.css index cf4fe54..6a42a66 100644 --- a/custom.css +++ b/custom.css @@ -12,8 +12,7 @@ header .text-lg { font-size: 1rem; } -/* Repository marks for the footer's text links */ -#footer a[href="https://gitea.kenanzhu.com/AutoLibrary/AutoLibrary"]::before, +/* GitLab logo for the manual repository link */ #footer a[href="https://gitlab.com/KenanZhu/AutoLibraryManuals"]::before { content: ""; display: inline-block; @@ -21,13 +20,5 @@ header .text-lg { height: 1rem; margin-inline-end: 0.375rem; vertical-align: -0.2em; - background: var(--repository-icon) center / contain no-repeat; -} - -#footer a[href="https://gitea.kenanzhu.com/AutoLibrary/AutoLibrary"] { - --repository-icon: url("/images/repositories/gitea.svg"); -} - -#footer a[href="https://gitlab.com/KenanZhu/AutoLibraryManuals"] { - --repository-icon: url("/images/repositories/gitlab.svg"); + background: url("/images/repositories/gitlab.svg") center / contain no-repeat; } diff --git a/docs.json b/docs.json index 73c897c..b539c29 100644 --- a/docs.json +++ b/docs.json @@ -172,11 +172,6 @@ "label": "项目源码", "href": "https://gitea.kenanzhu.com/AutoLibrary/AutoLibrary", "icon": "/images/repositories/gitea.svg" - }, - { - "label": "手册源码", - "href": "https://gitlab.com/KenanZhu/AutoLibraryManuals", - "icon": "/images/repositories/gitlab.svg" } ] }, @@ -194,11 +189,7 @@ "header": "代码仓库", "items": [ { - "label": "AutoLibrary(Gitea)", - "href": "https://gitea.kenanzhu.com/AutoLibrary/AutoLibrary" - }, - { - "label": "用户手册(GitLab)", + "label": "用户手册", "href": "https://gitlab.com/KenanZhu/AutoLibraryManuals" } ] diff --git a/zh/manual/v1.3.0/faq/contact.mdx b/zh/manual/v1.3.0/faq/contact.mdx index 33af061..ab3eb15 100644 --- a/zh/manual/v1.3.0/faq/contact.mdx +++ b/zh/manual/v1.3.0/faq/contact.mdx @@ -9,7 +9,7 @@ description: "AutoLibrary 的相关链接,以及快速获取联系我们的方 @@ -30,7 +30,7 @@ description: "AutoLibrary 的相关链接,以及快速获取联系我们的方 查看各版本更新内容与修复记录。 diff --git a/zh/manual/v1.4.0/faq/contact.mdx b/zh/manual/v1.4.0/faq/contact.mdx index 9253d18..f3be375 100644 --- a/zh/manual/v1.4.0/faq/contact.mdx +++ b/zh/manual/v1.4.0/faq/contact.mdx @@ -9,14 +9,14 @@ description: "AutoLibrary 的相关链接,以及快速获取联系我们的方 查看 AutoLibrary 源码和开发进展。