Skip to content

Commit 5b925e4

Browse files
committed
更新文档
1 parent bcaa9ee commit 5b925e4

File tree

11 files changed

+15
-4
lines changed

11 files changed

+15
-4
lines changed

ChangeMirrors.sh

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

DockerInstallation.sh

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

docs/sponsor/main.html

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

docs/theme/partials/toc.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<strong>{{'Sponsors' if i18n_page_locale == 'en' else '贊助商' if i18n_page_locale == 'zh-Hant' else '赞助商'}}</strong>
1515
</div>
1616
<div class="sponsor-wrapper sponsor-flex-wrapper-toc no-select">
17-
<a class="sponsor-item sponsor-item-toc sponsor-item-toc-full-row" target="_blank" rel="noopener noreferrer" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
17+
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
1818
<img src="/assets/images/sponsor/1panel.png" alt="1Panel" style="filter: grayscale(1) invert(0.6)" />
1919
</a>
2020
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.duotuyun.com" title="智能化防护,每一次连接皆在安全之下">
@@ -57,6 +57,10 @@
5757
<img src="/assets/images/sponsor/wuyouyun.png#only-light" alt="无忧云" style="filter: grayscale(1) invert(0.4)" />
5858
<img src="/assets/images/sponsor/wuyouyun.png#only-dark" alt="无忧云" style="filter: grayscale(1) invert(0.8)" />
5959
</a>
60+
<a class="sponsor-item sponsor-item-toc" target="_blank" href="https://www.svyun.com" title="大陆香港美日全球千兆大带宽、BGP多线、高频云、物理服务器">
61+
<img src="/assets/images/sponsor/suweiyun-light.png#only-light" alt="速维云" style="filter: grayscale(1) invert(0.4)" />
62+
<img src="/assets/images/sponsor/suweiyun-dark.png#only-dark" alt="速维云" style="filter: grayscale(1) invert(0.4)" />
63+
</a>
6064
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://arcadia.cool" title="一站式代码运维平台">
6165
<img src="/assets/images/sponsor/arcadia-light.png#only-light" alt="Arcadia" style="padding: 0 2px; filter: grayscale(1) invert(0.5)" />
6266
<img src="/assets/images/sponsor/arcadia-dark.png#only-dark" alt="Arcadia" style="padding: 0 2px; filter: grayscale(1) invert(0.4)" />

docs/use/index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ If you are a developer of another project and want to create a custom script bas
794794
1. Keep the original structure; empty out the function bodies if not needed.
795795
2. Remove unused OS repo content `gen_repo_files_xxx`, which takes up over 60% of the script.
796796
3. Remove unused feature modules, e.g., `handle_command_options`, `backup_original_mirrors`, `upgrade_software`.
797-
4. Remove unnecessary language packs, for example: `function msg_pack_en() {}`
797+
4. Remove unnecessary language packs, for example: `function msg_pack_en() { :; }`
798798
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.
799799
800800
??? note "Variable list (click to expand)"

docs/use/index.md

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

0 commit comments

Comments
 (0)