更新文档

This commit is contained in:
SuperManito
2023-05-03 23:41:43 +08:00
parent 23280a5fc3
commit 985d3c6fac
4 changed files with 17 additions and 22 deletions

View File

@@ -6,12 +6,12 @@
<p align="center">
<strong>
<a href="https://supermanito.github.io/LinuxMirrors">官方网站</a>
<a href="https://supermanito.github.io/LinuxMirrors">官方网站</a></br></br>
GNU/Linux 一键更换系统软件源脚本</br>
本项目旨在为从事计算机相关行业的朋友们提供便利
</strong>
</p>
- __GNU/Linux 一键更换系统软件源脚本__
- __本项目旨在为从事计算机相关行业的朋友们提供便利__
- ### 适配系统及版本号 <img src="./docs/assets/images/icon/linux.svg" width="16" height="16" style="vertical-align: -0.15em" alt="Linux Logo"/>
@@ -71,8 +71,6 @@
### LICENSE
Copyright © 2023, [SuperManito](https://github.com/SuperManito). Released under the [MIT](https://github.com/SuperManito/LinuxMirrors/blob/main/LICENSE).
项目已设立开源许可协议,传播时请在显著位置标注来源和作者,请尊重作者的知识成果,建议通过命令直接调用脚本
如有意见与建议您可以提交至 [Issues](https://github.com/SuperManito/LinuxMirrors/issues),如果您需要提交您的代码,请前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls)
__如果您觉得这个项目不错对您有所帮助的话方便在右上角给颗 ⭐ 并分享给更多的朋友吗__

View File

@@ -5,10 +5,7 @@ hide:
---
![](./assets/images/logo.png)
GNU/Linux 一键更换系统软件源脚本
本项目旨在为从事计算机相关行业的朋友们提供便利
## 适配系统及版本号

View File

@@ -4,14 +4,14 @@
| `--source` | 指定软件源地址 | 地址 |
| `--branch` | 指定软件源分支 | 分支名 |
| `--abroad` | 使用海外软件源 | 无 |
| `--web-protocol` | 指定 WEB 协议 | http 或 https |
| `--intranet` | 使用内网地址 | true 或 false |
| `--install-epel` | 安装 EPEL 附加软件包 | true 或 false |
| `--close-firewall` | 关闭防火墙 | true 或 false |
| `--backup` | 备份原有软件源 | true 或 false |
| `--web-protocol` | 指定 WEB 协议 | `http``https` |
| `--intranet` | 使用内网地址 | `true``false` |
| `--install-epel` | 安装 EPEL 附加软件包 | `true``false` |
| `--close-firewall` | 关闭防火墙 | `true``false` |
| `--backup` | 备份原有软件源 | `true``false` |
| `--ignore-backup-tips` | 忽略覆盖备份提示 | 无 |
| `--updata-software` | 更新软件包 | true 或 false |
| `--clean-cache` | 清理下载缓存 | true 或 false |
| `--updata-software` | 更新软件包 | `true``false` |
| `--clean-cache` | 清理下载缓存 | `true``false` |
## 示例
@@ -20,7 +20,7 @@
若不想通过交互选择默认提供的软件源,你可以使用该命令选项指定软件源地址
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
bash ChangeMirrors.sh --source mirrors.ustc.edu.cn
```
### 指定软件源分支
@@ -88,8 +88,8 @@ bash ChangeMirrors.sh \
``` sh title="参考命令" linenums="1"
bash ChangeMirrors.sh \
--source <软件源域名> \
--web-protocol <http/https> \
--source mirror.example.com \
--web-protocol http \
--intranet false \
--install-epel true \
--close-firewall true \

View File

@@ -1,5 +1,5 @@
site_name: LinuxMirrors
repo_name: 主要托管仓库
repo_name: SuperManito/LinuxMirrors
repo_url: https://github.com/SuperManito/LinuxMirrors
edit_uri: edit/main/docs/
copyright: Copyright &copy; 2021 - 2023 <a href="https://github.com/SuperManito" target="_blank"> SuperManito</a>