diff --git a/custom.css b/custom.css index 2d038b8..cf4fe54 100644 --- a/custom.css +++ b/custom.css @@ -11,3 +11,23 @@ img[src*="favicon"] { header .text-lg { font-size: 1rem; } + +/* Repository marks for the footer's text links */ +#footer a[href="https://gitea.kenanzhu.com/AutoLibrary/AutoLibrary"]::before, +#footer a[href="https://gitlab.com/KenanZhu/AutoLibraryManuals"]::before { + content: ""; + display: inline-block; + width: 1rem; + 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"); +} diff --git a/docs.json b/docs.json index 552536b..73c897c 100644 --- a/docs.json +++ b/docs.json @@ -171,7 +171,12 @@ { "label": "项目源码", "href": "https://gitea.kenanzhu.com/AutoLibrary/AutoLibrary", - "icon": "code" + "icon": "/images/repositories/gitea.svg" + }, + { + "label": "手册源码", + "href": "https://gitlab.com/KenanZhu/AutoLibraryManuals", + "icon": "/images/repositories/gitlab.svg" } ] }, diff --git a/images/repositories/gitea.svg b/images/repositories/gitea.svg new file mode 100644 index 0000000..e4643ce --- /dev/null +++ b/images/repositories/gitea.svg @@ -0,0 +1 @@ + diff --git a/images/repositories/gitlab.svg b/images/repositories/gitlab.svg new file mode 100644 index 0000000..c650177 --- /dev/null +++ b/images/repositories/gitlab.svg @@ -0,0 +1,10 @@ + diff --git a/zh/manual/v1.3.0/faq/contact.mdx b/zh/manual/v1.3.0/faq/contact.mdx index 4fc8d30..33af061 100644 --- a/zh/manual/v1.3.0/faq/contact.mdx +++ b/zh/manual/v1.3.0/faq/contact.mdx @@ -10,7 +10,7 @@ description: "AutoLibrary 的相关链接,以及快速获取联系我们的方 查看 AutoLibrary 源码和开发进展。 @@ -31,7 +31,7 @@ description: "AutoLibrary 的相关链接,以及快速获取联系我们的方 查看手册源码或提交文档修改。 diff --git a/zh/manual/v1.4.0/faq/contact.mdx b/zh/manual/v1.4.0/faq/contact.mdx index 7c887d4..9253d18 100644 --- a/zh/manual/v1.4.0/faq/contact.mdx +++ b/zh/manual/v1.4.0/faq/contact.mdx @@ -10,14 +10,14 @@ description: "AutoLibrary 的相关链接,以及快速获取联系我们的方 查看 AutoLibrary 源码和开发进展。 查看手册源码或提交文档修改。