更新文档

This commit is contained in:
Super Manito
2025-06-22 12:42:05 +08:00
parent b169186c73
commit b902e410b7
9 changed files with 18 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
<p align="center">
<a href="https://linuxmirrors.cn/zh-hant">
<a href="https://linuxmirrors.cn/zh-Hant">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/brand/dark/2.png" width="320">
<img src="/docs/assets/images/brand/light/2.png" alt="LinuxMirrors" width="320">
@@ -127,7 +127,7 @@
<p align="center">
<strong>
<a href="https://linuxmirrors.cn/zh-hant" style="text-decoration: none;">官方網站</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-hant/use" style="text-decoration: none;">使用方法</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-hant/mirrors" style="text-decoration: none;">軟體源列表</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-hant/other" style="text-decoration: none;">Docker 安裝(額外腳本)</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-hant/community" style="text-decoration: none;">社群</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-hant/sponsor" style="text-decoration: none;">贊助</a>
<a href="https://linuxmirrors.cn/zh-Hant" style="text-decoration: none;">官方網站</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/use" style="text-decoration: none;">使用方法</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/mirrors" style="text-decoration: none;">軟體源列表</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/other" style="text-decoration: none;">Docker 安裝(額外腳本)</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/community" style="text-decoration: none;">社群</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://linuxmirrors.cn/zh-Hant/sponsor" style="text-decoration: none;">贊助</a>
</strong>
</p>
@@ -135,7 +135,7 @@
## 快速開始
> 項目官方網站整合了 AI 聊天與搜索,更多使用方法詳見 [**linuxmirrors.cn**](https://linuxmirrors.cn/zh-hant/use)
> 項目官方網站整合了 AI 聊天與搜索,更多使用方法詳見 [**linuxmirrors.cn**](https://linuxmirrors.cn/zh-Hant/use)
- ### GNU/Linux 更換系統軟體源

View File

@@ -384,7 +384,7 @@ const mirrorsTableData = [
const mirrorsTableColumns = [
{
colKey: 'name',
title: !window.location.pathname.includes('/zh-hant') ? '镜像站' : '鏡像站',
title: !window.location.pathname.includes('/zh-Hant') ? '镜像站' : '鏡像站',
align: 'left',
width: '180',
fixed: 'left',
@@ -400,7 +400,7 @@ const mirrorsTableColumns = [
title: 'EPEL',
align: 'center',
width: '90',
tooltip: !window.location.pathname.includes('/zh-hant') ? 'EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 组织维护的一个附加软件包仓库,它主要适用于除 Fedora 操作系统以外的红帽系 Linux 发行版' : 'EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 組織維護的一個附加軟體包倉庫,它主要適用於除 Fedora 作業系統以外的紅帽系 Linux 發行版',
tooltip: !window.location.pathname.includes('/zh-Hant') ? 'EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 组织维护的一个附加软件包仓库,它主要适用于除 Fedora 操作系统以外的红帽系 Linux 发行版' : 'EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 組織維護的一個附加軟體包倉庫,它主要適用於除 Fedora 作業系統以外的紅帽系 Linux 發行版',
},
{
colKey: 'archlinux',

View File

@@ -1,6 +1,6 @@
// get search box config
function getOramaSearchBoxConfig() {
const isDefaultLang = window.location.pathname.includes('/zh-hant') ? false : true
const isDefaultLang = window.location.pathname.includes('/zh-Hant') ? false : true
return {
themeConfig: {
// colors: {
@@ -62,7 +62,7 @@ function getOramaSearchBoxConfig() {
// localization search box component
function localizationOramaSearchBox(searchBox) {
if (!searchBox) return
const isDefaultLang = window.location.pathname.includes('/zh-hant') ? false : true
const isDefaultLang = window.location.pathname.includes('/zh-Hant') ? false : true
const askAiText = isDefaultLang ? '询问 AI' : '詢問 AI'
const searchText = isDefaultLang ? '搜索' : '搜尋'
const observer = new MutationObserver((mutations, obs) => {

View File

@@ -71,7 +71,7 @@
.sponsor-text-3::after { content: "本项目已加入 JetBrains & Netlify 开源项目计划"; }
/* 繁体中文 */
[lang="zh-hant"] .sponsor-text-1::after { content: "贊助商"; }
[lang="zh-hant"] .sponsor-text-2::after { content: "特別感謝"; }
[lang="zh-hant"] .sponsor-text-3::after { content: "本項目已加入 JetBrains & Netlify 開源項目計劃"; }
[lang="zh-Hant"] .sponsor-text-1::after { content: "贊助商"; }
[lang="zh-Hant"] .sponsor-text-2::after { content: "特別感謝"; }
[lang="zh-Hant"] .sponsor-text-3::after { content: "本項目已加入 JetBrains & Netlify 開源項目計劃"; }
</style>

View File

@@ -8,7 +8,7 @@
{% block announce %}
<span style="font-size: .6rem !important;">{{
'如果您覺得這個項目不錯對您有幫助的話,請點擊倉庫右上角的 Star 並分享給更多的朋友' if i18n_page_locale == 'zh-hant' else '如果觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友'
'如果您覺得這個項目不錯對您有幫助的話,請點擊倉庫右上角的 Star 並分享給更多的朋友' if i18n_page_locale == 'zh-Hant' else '如果觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友'
}}</span>
&nbsp;&nbsp;<span class="twemoji heart" style="font-size: .6rem;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 20.408c-.492.308-.903.546-1.192.709q-.23.129-.463.252h-.002a.75.75 0 0 1-.686 0 17 17 0 0 1-.465-.252 31 31 0 0 1-4.803-3.34C3.8 15.572 1 12.331 1 8.513 1 5.052 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262A31 31 0 0 1 14 20.408"></path></svg></span>
{% endblock %}

View File

@@ -14,7 +14,7 @@
data-emit-metadata="0"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="{{'zh-Hant' if i18n_page_locale == 'zh-hant' else 'zh-CN'}}"
data-lang="{{'zh-Hant' if i18n_page_locale == 'zh-Hant' else 'zh-CN'}}"
data-loading="lazy"
crossorigin="anonymous"
async

View File

@@ -1,4 +1,4 @@
<a class="md-header__button md-icon" href="https://www.coze.cn/store/agent/7503197985959428108?bot_id=true" target="_blank" title="{{'Coze AI 助手' if i18n_page_locale == 'zh-hant' else '扣子 AI 助手'}}">
<a class="md-header__button md-icon" href="https://www.coze.cn/store/agent/7503197985959428108?bot_id=true" target="_blank" title="{{'Coze AI 助手' if i18n_page_locale == 'zh-Hant' else '扣子 AI 助手'}}">
<div aria-label="Coze" class="coze-icon-bg">
<svg fill="currentColor" fill-rule="evenodd" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" color="#fff" style="display: block; margin: auto;">
<path clip-rule="evenodd" d="M3.908 9.096A8.092 8.092 0 0111.998 1h.006c4.468 0 8.09 3.628 8.09 8.096v3.392h1.942c2.23 0 2.732 3.126.615 3.828l-2.556.85v1.466a1.947 1.947 0 01-2.818 1.742l-1.42-.707c-.067-.03-.149 0-.17.071-1.147 3.587-6.225 3.587-7.373 0a.123.123 0 00-.169-.07l-1.42.706c-1.29.65-2.817-.292-2.817-1.742v-1.466l-2.557-.85c-2.122-.697-1.614-3.828.615-3.828h1.942V9.096zm4.571 2.613a.784.784 0 00-.784.784v1.568a.784.784 0 101.568 0v-1.568a.784.784 0 00-.784-.784zm7.045.779a.784.784 0 100 1.568.784.784 0 000-1.568zm-6.186 3.415a.78.78 0 00.17.254 3.517 3.517 0 004.98 0 .782.782 0 10-1.106-1.107 1.958 1.958 0 01-2.767 0 .78.78 0 00-1.277.254.78.78 0 000 .6z"></path>

View File

@@ -11,7 +11,7 @@
<div class="md-content" data-md-component="content">
<div class="sponsor sponsor-toc">
<div class="sponsor-label">
<strong>{{'贊助商' if i18n_page_locale == 'zh-hant' else '赞助商'}}</strong>
<strong>{{'贊助商' if i18n_page_locale == 'zh-Hant' else '赞助商'}}</strong>
</div>
<div class="sponsor-wrapper sponsor-flex-wrapper-toc no-select">
<a class="sponsor-item sponsor-item-toc sponsor-item-toc-full-row" target="_blank" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
@@ -56,9 +56,9 @@
<img src="/assets/images/sponsor/hkgserver-light.png#only-light" alt="HKGserver" style="filter: grayscale(1) invert(0.5)" />
<img src="/assets/images/sponsor/hkgserver-dark.png#only-dark" alt="HKGserver" style="filter: grayscale(1) invert(0.4)" />
</a>
<!-- <a class="sponsor-item sponsor-item-toc" target="_blank" title="{{'成為贊助商' if i18n_page_locale == 'zh-hant' else '成为赞助商'}}" href="/sponsor/">
<!-- <a class="sponsor-item sponsor-item-toc" target="_blank" title="{{'成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}" href="/sponsor/">
<span style="font-size: 0.6rem; opacity: 0.5">
<strong>{{'成為贊助商' if i18n_page_locale == 'zh-hant' else '成为赞助商'}}</strong>
<strong>{{'成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}</strong>
</span>
</a> -->
</div>

View File

@@ -169,7 +169,7 @@ plugins:
- locale: zh
default: true
name: 简体中文
- locale: zh-hant
- locale: zh-Hant
name: 繁體中文
nav_translations:
"介绍": 介紹
@@ -182,7 +182,7 @@ plugins:
build: true
copyright: 'Copyright &copy; 2025 <a href="https://github.com/SuperManito" target="_blank">SuperManito</a></br>本網站由 <a href="https://www.netlify.com" target="_blank">Netlify</a> 部署並提供全球 CDN 邊緣網路加速 <a href="https://www.netlify.com" target="_blank"><img height="64" width="64" src="/assets/images/icon/netlify.svg" style="vertical-align: -0.6em"></a>'
extra:
homepage: https://linuxmirrors.cn/zh-hant
homepage: https://linuxmirrors.cn/zh-Hant
theme:
palette:
- media: "(prefers-color-scheme)"