更新文档

This commit is contained in:
Super Manito
2026-01-13 09:34:27 +08:00
parent bcaa9eebca
commit 5b925e40cb
11 changed files with 15 additions and 4 deletions

View File

@@ -170,6 +170,7 @@ SPONSOR_ADS=(
"云悠YUNYOO · 全球高性价比云服务器低至15.99元起 ➜ \033[3mhttps://yunyoo.cc\033[0m"
"HKGserver · 全球家宽双ISP住宅原生云服务器54元/月起 ➜ \033[3mhttps://www.hkgserver.com\033[0m"
"无忧云 · BGP多线高性能、高主频自动化云、物理服务器 ➜ \033[3mhttps://https://www.wuyouyun.com\033[0m"
"速维云 · 大陆香港美日全球千兆大带宽、BGP多线、高频云、物理服务器 ➜ \033[3mhttps://www.svyun.com\033[0m"
"语鹿云盾 · 专业CDN加速、防御亚太百兆三网优化CDN低至9元起 ➜ \033[3mhttps://www.lucdn.cn\033[0m"
"不二云 · 国内外建站快响应服务器的不二之选 ➜ \033[3mhttps://cb2.cn\033[0m"
"CN2network · 超低价优质机器免实名自动开通 ➜ \033[3mhttps://idc.cn2network.com\033[0m"

View File

@@ -88,6 +88,7 @@ SPONSOR_ADS=(
"云悠YUNYOO · 全球高性价比云服务器低至15.99元起 ➜ \033[3mhttps://yunyoo.cc\033[0m"
"HKGserver · 全球家宽双ISP住宅原生云服务器54元/月起 ➜ \033[3mhttps://www.hkgserver.com\033[0m"
"无忧云 · BGP多线高性能、高主频自动化云、物理服务器 ➜ \033[3mhttps://https://www.wuyouyun.com\033[0m"
"速维云 · 大陆香港美日全球千兆大带宽、BGP多线、高频云、物理服务器 ➜ \033[3mhttps://www.svyun.com\033[0m"
"语鹿云盾 · 专业CDN加速、防御亚太百兆三网优化CDN低至9元起 ➜ \033[3mhttps://www.lucdn.cn\033[0m"
"不二云 · 国内外建站快响应服务器的不二之选 ➜ \033[3mhttps://cb2.cn\033[0m"
"CN2network · 超低价优质机器免实名自动开通 ➜ \033[3mhttps://idc.cn2network.com\033[0m"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

@@ -52,6 +52,11 @@
<!-- 26 12 30 -->
<img src="/assets/images/sponsor/wuyouyun.png" alt="无忧云" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.svyun.com" title="大陆香港美日全球千兆大带宽、BGP多线、高频云、物理服务器">
<!-- 27 1 13 -->
<img src="/assets/images/sponsor/suweiyun-light.png#only-light" alt="速维云" />
<img src="/assets/images/sponsor/suweiyun-dark.png#only-dark" alt="速维云" />
</a>
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://arcadia.cool" title="一站式代码运维平台">
<img src="/assets/images/sponsor/arcadia-light.png#only-light" alt="Arcadia" style="width: 57% !important" />
<img src="/assets/images/sponsor/arcadia-dark.png#only-dark" alt="Arcadia" style="width: 57% !important" />

View File

@@ -14,7 +14,7 @@
<strong>{{'Sponsors' if i18n_page_locale == 'en' else '贊助商' 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" rel="noopener noreferrer" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
<img src="/assets/images/sponsor/1panel.png" alt="1Panel" style="filter: grayscale(1) invert(0.6)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.duotuyun.com" title="智能化防护,每一次连接皆在安全之下">
@@ -57,6 +57,10 @@
<img src="/assets/images/sponsor/wuyouyun.png#only-light" alt="无忧云" style="filter: grayscale(1) invert(0.4)" />
<img src="/assets/images/sponsor/wuyouyun.png#only-dark" alt="无忧云" style="filter: grayscale(1) invert(0.8)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.svyun.com" title="大陆香港美日全球千兆大带宽、BGP多线、高频云、物理服务器">
<img src="/assets/images/sponsor/suweiyun-light.png#only-light" alt="速维云" style="filter: grayscale(1) invert(0.4)" />
<img src="/assets/images/sponsor/suweiyun-dark.png#only-dark" alt="速维云" style="filter: grayscale(1) invert(0.4)" />
</a>
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://arcadia.cool" title="一站式代码运维平台">
<img src="/assets/images/sponsor/arcadia-light.png#only-light" alt="Arcadia" style="padding: 0 2px; filter: grayscale(1) invert(0.5)" />
<img src="/assets/images/sponsor/arcadia-dark.png#only-dark" alt="Arcadia" style="padding: 0 2px; filter: grayscale(1) invert(0.4)" />

View File

@@ -794,7 +794,7 @@ If you are a developer of another project and want to create a custom script bas
1. Keep the original structure; empty out the function bodies if not needed.
2. Remove unused OS repo content `gen_repo_files_xxx`, which takes up over 60% of the script.
3. Remove unused feature modules, e.g., `handle_command_options`, `backup_original_mirrors`, `upgrade_software`.
4. Remove unnecessary language packs, for example: `function msg_pack_en() {}`
4. Remove unnecessary language packs, for example: `function msg_pack_en() { :; }`
6. Main configuration is controlled by unified variables, as are command options. These global variables are all uppercase and use underscores. See the table below. Declare them at the top of the script (reserved comment area) for quick customization.
??? note "Variable list (click to expand)"

View File

@@ -796,7 +796,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
1. 首先在删除内容时应尽可能保留脚本原始结构,直接把涉及函数中的内容删除即可,使其保留为空函数
2. 可以删除一些不使用(操作系统)的软件源原始内容 `gen_repo_files_xxx`,这些内容占据了脚本 `60%` 以上的体积
3. 如果你不使用某些功能那么可以删除对应功能模块函数中的内容,`命令选项 handle_command_options`、`备份原有软件源 backup_original_mirrors`、`更新软件包 upgrade_software`
4. 移除不需要的语言包,例:`function msg_pack_en() {}`
4. 移除不需要的语言包,例:`function msg_pack_en() { :; }`
6. 脚本主要功能配置是由统一的变量控制的,命令选项亦是如此,这些全局变量由全大写字母构成并遵循下划线命名法,具体变量详见如下表格,你只需要将这些变量声明在脚本头部(预留注释区域)即可快速完成定制
??? note "变量列表(点击展开查看)"

View File

@@ -796,7 +796,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --help
1. 首先在刪除內容時應盡可能保留腳本原始結構,直接把涉及函數中的內容刪除即可,使其保留為空函數
2. 可以刪除一些不使用(作業系統)的軟體源原始內容 `gen_repo_files_xxx`,這些內容佔據了腳本 `60%` 以上的體積
3. 如果你不使用某些功能,那麼可以刪除對應功能模組函數中的內容,`命令選項 handle_command_options`、`備份原有軟體源 backup_original_mirrors`、`更新軟體包 upgrade_software`
4. 移除不需要的語言包,例:`function msg_pack_en() {}`
4. 移除不需要的語言包,例:`function msg_pack_en() { :; }`
6. 腳本主要功能配置是由統一的變量控制的,命令選項亦是如此,這些全局變量由全大寫字母構成並遵循下劃線命名法,具體變量詳見如下表格,你只需要將這些變量聲明在腳本頭部(預留註釋區域)即可快速完成定制
??? note "變數列表(點擊展開查看)"