Skip to content

Commit 821d2bd

Browse files
committed
优化 & 更新文档
1 parent 06b64f3 commit 821d2bd

File tree

6 files changed

+61
-62
lines changed

6 files changed

+61
-62
lines changed

ChangeMirrors.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
## Author: SuperManito
3-
## Modified: 2025-04-09
3+
## Modified: 2025-04-10
44
## License: MIT
55
## GitHub: https://github.com/SuperManito/LinuxMirrors
66
## Website: https://linuxmirrors.cn
@@ -16,7 +16,7 @@
1616
mirror_list_default=(
1717
"阿里云@mirrors.aliyun.com"
1818
"腾讯云@mirrors.tencent.com"
19-
"华为云@repo.huaweicloud.com"
19+
"华为云@mirrors.huaweicloud.com"
2020
"网易@mirrors.163.com"
2121
"火山引擎@mirrors.volces.com"
2222
"清华大学@mirrors.tuna.tsinghua.edu.cn"
@@ -140,7 +140,7 @@ mirror_list_abroad=(
140140
mirror_list_extranet=(
141141
"mirrors.aliyun.com"
142142
"mirrors.tencent.com"
143-
"repo.huaweicloud.com"
143+
"mirrors.huaweicloud.com"
144144
"mirrors.volces.com"
145145
)
146146
# 软件源内网地址列表

DockerInstallation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
## Author: SuperManito
3-
## Modified: 2025-04-05
3+
## Modified: 2025-04-10
44
## License: MIT
55
## GitHub: https://github.com/SuperManito/LinuxMirrors
66
## Website: https://linuxmirrors.cn
@@ -10,7 +10,7 @@
1010
mirror_list_docker_ce=(
1111
"阿里云@mirrors.aliyun.com/docker-ce"
1212
"腾讯云@mirrors.tencent.com/docker-ce"
13-
"华为云@repo.huaweicloud.com/docker-ce"
13+
"华为云@mirrors.huaweicloud.com/docker-ce"
1414
"微软 Azure 中国@mirror.azure.cn/docker-ce"
1515
"网易@mirrors.163.com/docker-ce"
1616
"火山引擎@mirrors.volces.com/docker"

docs/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ hide:
1313

1414
<div class="grid" markdown>
1515
<figure style="margin: 0 auto" markdown>
16-
![](assets/images/brand/light/2.png#only-light){ width="300" }
17-
![](assets/images/brand/dark/2.png#only-dark){ width="300" }
16+
<div style="width: 350px; max-width: 100vw; height: 160px; position: absolute;">
17+
<span style="top: 50%; width: 50%; height: 80px; position: absolute; background-image: var(--hero-background-image); filter: blur(68px); transform: translate(-50%, -50%);">
18+
</span>
19+
</div>
20+
<img src="/assets/images/brand/light/2.png#only-light" alt="LinuxMirrors" style="width: 300px" />
21+
<img src="/assets/images/brand/dark/2.png#only-dark" alt="LinuxMirrors" style="width: 300px" />
1822
<figcaption>GNU/Linux 更换系统软件源脚本及 Docker 安装脚本</figcaption>
1923
<figcaption>一键脚本使换源更简单</figcaption>
2024
</figure>

docs/other/index.md

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,13 @@ hide:
198198
199199
- #### 纯净模式
200200
201-
!!! tip "该功能目前处于试验阶段,滚动输出的命令日志可能存在无法预料的显示问题,目前暂未发现异常"
201+
为了便于开发者使用故推出此功能,启用后会精简脚本内容输出,建议搭配其它命令选项无交互使用
202202
203203
``` bash
204204
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --pure-mode
205205
```
206-
> 为了便于开发者使用故推出此功能,启用后会精简脚本内容输出,建议搭配其它命令选项无交互使用
206+
207+
!!! tip "滚动输出的命令日志可能存在无法预料的显示问题,不过目前暂未发现异常"
207208
208209
- ### 关于服务报错无法启动
209210
@@ -230,45 +231,3 @@ hide:
230231
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
231232
232233
卸载完成后重新执行脚本安装即可
233-
234-
## 其它
235-
236-
提供一些常见服务的一键换源命令,用于备忘
237-
238-
### NPM
239-
240-
适用于 `npm` `yarn` `pnpm` 等
241-
242-
=== "淘宝源"
243-
244-
``` bash
245-
npm config set registry https://registry.npmmirror.com/
246-
```
247-
248-
=== "腾讯云"
249-
250-
``` bash
251-
npm config set registry https://mirrors.tencent.com/npm/
252-
```
253-
254-
### PYPI
255-
256-
适用于 `pip` `pip3`
257-
258-
=== "阿里云"
259-
260-
``` bash
261-
pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
262-
```
263-
264-
=== "腾讯云"
265-
266-
``` bash
267-
pip3 config set global.index-url https://mirrors.tencent.com/pypi/simple/
268-
```
269-
270-
=== "中科大"
271-
272-
``` bash
273-
pip3 config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
274-
```

docs/stylesheets/extra.css

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
--md-default-bg-color--dark: hsla(var(--md-hue), 15%, 14%, 1);
77
--view-transition-z-index-foreground: 999;
88
--view-transition-z-index-background: 1;
9+
--hero-background-image: linear-gradient(90deg, rgba(177, 177, 177, 1) 50%, rgba(177, 177, 177, 1) 50%);
10+
}
11+
12+
[data-md-color-scheme='slate'] {
13+
--hero-background-image: linear-gradient(90deg, rgba(147, 147, 147, 1) 50%, rgba(147, 147, 147, 1) 50%);
914
}
1015

1116
[data-md-color-primary=white] {
@@ -16,13 +21,21 @@
1621
--md-typeset-a-color: #2080f0;
1722
}
1823

19-
.md-typeset .admonition.tip, .md-typeset details.tip {
24+
.md-typeset .admonition.tip,
25+
.md-typeset details.tip {
2026
border-color: #009400;
2127
}
22-
.md-typeset .tip>.admonition-title, .md-typeset .tip>summary {
28+
29+
.md-typeset .tip>.admonition-title,
30+
.md-typeset .tip>summary {
2331
background-color: #0094001a;
2432
}
2533

34+
[data-md-color-scheme="slate"] .md-typeset .admonition.quote,
35+
.md-typeset details.quote {
36+
border-color: hsla(225deg, 15%, 90%, 0.24);
37+
}
38+
2639
.md-header {
2740
background-color: hsla(240, 9%, 75%, 0.33);
2841
-webkit-backdrop-filter: blur(8px);
@@ -50,10 +63,6 @@
5063
content: url(/assets/images/brand/svg/logo-dark.svg);
5164
}
5265

53-
[data-md-color-scheme="slate"] .md-typeset .admonition.quote, .md-typeset details.quote {
54-
border-color: hsla(225deg,15%,90%,0.24);
55-
}
56-
5766
@font-face {
5867
font-family: 'SF Mono';
5968
src: url('./fonts/SF-Mono-Regular.otf');
@@ -140,7 +149,7 @@
140149
}
141150

142151
.sponsor-item-toc {
143-
margin: 0;
152+
margin: 0;
144153
padding: 14px !important;
145154
height: 66px !important;
146155
box-sizing: border-box;
@@ -233,21 +242,47 @@
233242
padding: 65px 25px 35px !important;
234243
}
235244

245+
[data-termynal] {
246+
color: #000 !important;
247+
background: #e6e6e6 !important;
248+
}
249+
250+
[data-md-color-scheme="slate"] [data-termynal] {
251+
color: #eeeeee !important;
252+
background: #252a33 !important;
253+
}
254+
255+
button[data-terminal-control] {
256+
color: var(--md-typeset-a-color) !important;
257+
}
258+
259+
[data-termynal]:after {
260+
color: #585858 !important;
261+
}
262+
263+
[data-md-color-scheme="slate"] [data-termynal]:after {
264+
color: #a2a2a2 !important;
265+
}
266+
236267
/* 切换主题动画 */
237268
::view-transition-old(root),
238269
::view-transition-new(root) {
239270
animation: none;
240271
mix-blend-mode: normal;
241272
}
273+
242274
.dark::view-transition-old(root) {
243275
z-index: var(--view-transition-z-index-foreground);
244276
}
277+
245278
.dark::view-transition-new(root) {
246279
z-index: var(--view-transition-z-index-background);
247280
}
281+
248282
::view-transition-old(root) {
249283
z-index: var(--view-transition-z-index-background)
250284
}
285+
251286
::view-transition-new(root) {
252287
z-index: var(--view-transition-z-index-foreground);
253-
}
288+
}

docs/use/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ $ bash ChangeMirrors.sh --help
457457
问题报告 https://github.com/SuperManito/LinuxMirrors/issues
458458
```
459459

460-
接下来是一些高级用法的举例
460+
下面是一些高级用法的举例
461461

462462
- ### 指定软件源地址
463463

@@ -596,12 +596,13 @@ $ bash ChangeMirrors.sh --help
596596
597597
- ### 纯净模式
598598
599-
!!! tip "该功能目前处于试验阶段,滚动输出的命令日志可能存在无法预料的显示问题,目前暂未发现异常"
599+
为了便于开发者使用故推出此功能,启用后会精简脚本内容输出,建议搭配其它命令选项无交互使用
600600
601601
``` bash
602602
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --pure-mode
603603
```
604-
> 为了便于开发者使用故推出此功能,启用后会精简脚本内容输出,建议搭配其它命令选项无交互使用
604+
605+
!!! tip "滚动输出的命令日志可能存在无法预料的显示问题,不过目前暂未发现异常"
605606
606607
---
607608

0 commit comments

Comments
 (0)