From 1400ec0f1438fd77bdbb39577ab42ae5446a5d85 Mon Sep 17 00:00:00 2001 From: SuperManito <68613938+SuperManito@users.noreply.github.com> Date: Thu, 4 May 2023 20:44:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=83=A8=E5=88=86=E6=B5=B7?= =?UTF-8?q?=E5=A4=96=E8=BD=AF=E4=BB=B6=E6=BA=90=20&=20=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeMirrors.sh | 42 +++++- README.md | 23 ++- docs/help.md | 36 ----- docs/help/index.md | 61 ++++++++ docs/index.md | 11 +- docs/mirrors.md | 243 +++++++++++++++++++++++------- docs/{other.md => other/index.md} | 0 docs/use/command-options.md | 6 +- docs/use/{main.md => index.md} | 2 +- docs/use/not-enabled.md | 19 +-- mkdocs.yml | 16 +- 11 files changed, 330 insertions(+), 129 deletions(-) delete mode 100644 docs/help.md create mode 100644 docs/help/index.md rename docs/{other.md => other/index.md} (100%) rename docs/use/{main.md => index.md} (90%) diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index fae38dc..7b40f10 100644 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -3,6 +3,7 @@ ## Modified: 2023-05-04 ## License: MIT ## Github: https://github.com/SuperManito/LinuxMirrors +## Website: https://supermanito.github.io/LinuxMirrors ## 软件源列表 # 国内格式:"软件源名称@软件源地址" @@ -23,16 +24,23 @@ mirror_list_default=( "中国科学技术大学@mirrors.ustc.edu.cn" "中国科学院软件研究所@mirror.iscas.ac.cn" ) -# 海外格式:"洲 · 软件源名称 [国家/地区]@软件源地址",请根据地理位置、国家/地区进行排序以便于用户选择,教育单位应使用中文译名 +# 海外格式:"洲 · 软件源名称 [国家/地区]@软件源地址",修改前请先前往官网阅读添加规范 mirror_list_abroad=( "亚洲 · 科盈电信 [香港]@mirror.hkt.cc" "亚洲 · xTom [香港]@mirrors.xtom.hk" "亚洲 · 01Link [香港]@mirror.01link.hk" "亚洲 · 新加坡国立大学(NUS) [新加坡]@download.nus.edu.sg/mirror" + "亚洲 · SG.GS [新加坡]@mirror.sg.gs" + "亚洲 · Neo Soon Keat [新加坡]@mirror.soonkeat.sg" "亚洲 · 自由软件实验室(NCHC) [台湾]@free.nchc.org.tw" + "亚洲 · OSS Planet [台湾]@mirror.ossplanet.net" + "亚洲 · 国立阳明交通大学 [台湾]@linux.cs.nctu.edu.tw" + "亚洲 · 淡江大学 [台湾]@ftp.tku.edu.tw" "亚洲 · AniGil Linux Archive [韩国]@mirror.anigil.com" "亚洲 · 工业网络安全卓越中心(ICSCoE) [日本]@ftp.udx.icscoe.jp/Linux" + "亚洲 · Internet Initiative Japan(IIJ) [日本]@ftp.iij.ad.jp/pub/linux" "亚洲 · 北陆先端科学技术大学院(JAIST) [日本]@ftp.jaist.ac.jp/pub/Linux" + "亚洲 · 山形大学 [日本]@linux2.yz.yamagata-u.ac.jp/pub/Linux" "亚洲 · xTom [日本]@mirrors.xtom.jp" "亚洲 · GB Network Solutions [马来西亚]@mirrors.gbnetwork.com" "亚洲 · 孔敬大学 [泰国]@mirror.kku.ac.th" @@ -41,11 +49,16 @@ mirror_list_abroad=( "北美 · 麻省理工学院(MIT) [美国]@mirrors.mit.edu" "北美 · 普林斯顿大学数学系 [美国]@mirror.math.princeton.edu/pub" "北美 · 俄勒冈州立大学开源实验室 [美国]@ftp-chi.osuosl.org/pub" - "北美 · Fremont Cabal 互联网交换中心 [美国]@mirror.fcix.net" + "北美 · Fremont Cabal 互联网交换中心(FCIX) [美国]@mirror.fcix.net" "北美 · xTom [美国]@mirrors.xtom.com" "北美 · Steadfast [美国]@mirror.steadfast.net" "北美 · 不列颠哥伦比亚大学 [加拿大]@mirror.it.ubc.ca" + "北美 · GoCodeIT [加拿大]@mirror.xenyth.net" + "北美 · Switch [加拿大]@mirrors.switch.ca" + "南美 · PoP-SC [巴西]@mirror.pop-sc.rnp.br/mirror" "南美 · 蓬塔格罗萨州立大学 [巴西]@mirror.uepg.br" + "南美 · UFSCar [巴西]@mirror.ufscar.br" + "南美 · Sysarmy Community [阿根廷]@mirrors.eze.sysarmy.com" "欧洲 · Vorboss Ltd [英国]@mirror.vorboss.net" "欧洲 · QuickHost [英国]@mirror.quickhost.uk" "欧洲 · dogado [德国]@mirror.dogado.de" @@ -53,6 +66,9 @@ mirror_list_abroad=( "欧洲 · 亚琛工业大学(RWTH Aachen) [德国]@ftp.halifax.rwth-aachen.de" "欧洲 · 德累斯顿大学(AG DSN) [德国]@ftp.agdsn.de" "欧洲 · CCIN2P3 [法国]@mirror.in2p3.fr/pub/linux" + "欧洲 · Ircam [法国]@mirrors.ircam.fr/pub" + "欧洲 · Crans [法国]@eclats.crans.org" + "欧洲 · CRIHAN [法国]@ftp.crihan.fr" "欧洲 · xTom [荷兰]@mirrors.xtom.nl" "欧洲 · DataPacket [荷兰]@mirror.datapacket.com" "欧洲 · Linux Kernel [荷兰]@eu.edge.kernel.org" @@ -66,11 +82,20 @@ mirror_list_abroad=( "欧洲 · Truenetwork [俄罗斯]@mirror.truenetwork.ru" "欧洲 · Belgian Research Network [比利时]@ftp.belnet.be/mirror" "欧洲 · 克里特大学计算机中心 [希腊]@ftp.cc.uoc.gr/mirrors/linux" - "澳洲 · Fremont Cabal 互联网交换中心 [澳大利亚]@gsl-syd.mm.fcix.net" - "澳洲 · xTom [澳大利亚]@mirrors.xtom.au" - "澳洲 · Free Software Mirror Group [新西兰]@mirror.fsmg.org.nz" + "欧洲 · 马萨里克大学信息学院 [捷克]@ftp.fi.muni.cz/pub/linux" + "欧洲 · 捷克理工大学学生会俱乐部(Silicon Hill) [捷克]@ftp.sh.cvut.cz" + "欧洲 · Vodafone [捷克]@mirror.karneval.cz/pub/linux" + "欧洲 · CZ.NIC [捷克]@mirrors.nic.cz" + "欧洲 · 苏黎世联邦理工学院 [瑞士]@mirror.ethz.ch" + "大洋 · Fremont Cabal 互联网交换中心(FCIX) [澳大利亚]@gsl-syd.mm.fcix.net" + "大洋 · AARNet [澳大利亚]@mirror.aarnet.edu.au/pub" + "大洋 · DataMossa [澳大利亚]@mirror.datamossa.io" + "大洋 · Amaze [澳大利亚]@mirror.amaze.com.au" + "大洋 · xTom [澳大利亚]@mirrors.xtom.au" + "大洋 · Over the Wire [澳大利亚]@mirror.overthewire.com.au" + "大洋 · Free Software Mirror Group [新西兰]@mirror.fsmg.org.nz" "非洲 · Liquid Telecom [肯尼亚]@mirror.liquidtelecom.com" - "非洲 · Dimension Data [南非]@ mirror.dimensiondata.com" + "非洲 · Dimension Data [南非]@mirror.dimensiondata.com" ) ## 配置需要区分公网地址和内网地址的软件源(不分地域) @@ -133,6 +158,9 @@ WARN='[\033[33mWARN\033[0m]' ERROR='[\033[31mERROR\033[0m]' WORKING='[\033[34m*\033[0m]' +## 其它 +WEBSITE="https://supermanito.github.io/LinuxMirrors" + function StartTitle() { echo -e ' +-----------------------------------+' echo -e " | \033[0;1;35;95m⡇\033[0m \033[0;1;33;93m⠄\033[0m \033[0;1;32;92m⣀⡀\033[0m \033[0;1;36;96m⡀\033[0;1;34;94m⢀\033[0m \033[0;1;35;95m⡀⢀\033[0m \033[0;1;31;91m⡷\033[0;1;33;93m⢾\033[0m \033[0;1;32;92m⠄\033[0m \033[0;1;36;96m⡀⣀\033[0m \033[0;1;34;94m⡀\033[0;1;35;95m⣀\033[0m \033[0;1;31;91m⢀⡀\033[0m \033[0;1;33;93m⡀\033[0;1;32;92m⣀\033[0m \033[0;1;36;96m⢀⣀\033[0m |" @@ -141,7 +169,7 @@ function StartTitle() { } function AuthorSignature() { - echo -e "[\033[1;34m官网\033[0m] https://supermanito.github.io/LinuxMirrors\n" + echo -e "[\033[1;34m官网\033[0m] ${WEBSITE}\n" } ## 权限判定 diff --git a/README.md b/README.md index 0afc20e..70f7f5c 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,18 @@ Material for MkDocs

-

- 官方网站

- GNU/Linux 一键更换系统软件源脚本
+ 官方网站 +
+

+

+ + GNU/Linux 一键更换系统软件源脚本 + +

+

+ 本项目旨在为从事计算机相关行业的朋友们提供便利

@@ -60,16 +67,16 @@ -- ### [软件源](https://supermanito.github.io/LinuxMirrors/mirrors.html) -- ### [使用方法](https://supermanito.github.io/LinuxMirrors/use/main.html) -- ### [常见问题](https://supermanito.github.io/LinuxMirrors/help.html) -- ### [其它脚本](https://supermanito.github.io/LinuxMirrors/other.html) +- ### [软件源](https://supermanito.github.io/LinuxMirrors/Mirrors) +- ### [使用方法](https://supermanito.github.io/LinuxMirrors/use) +- ### [常见问题](https://supermanito.github.io/LinuxMirrors/help) +- ### [其它脚本](https://supermanito.github.io/LinuxMirrors/other) *** ### 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) +如有意见与建议您可以提交至 [Issues](https://github.com/SuperManito/LinuxMirrors/issues),如果您需要提交您的代码请前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls) __如果您觉得这个项目不错对您有所帮助的话,方便在右上角给颗 ⭐ 并分享给更多的朋友吗?__ diff --git a/docs/help.md b/docs/help.md deleted file mode 100644 index 2c4e416..0000000 --- a/docs/help.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -hide: - - navigation ---- - -## 关于报错 Command not found - - - 如果提示 `Command 'curl' not found` 则说明当前未安装 `curl` 软件包 - - ``` sh - yum install -y curl || apt-get install -y curl - ``` - -## 还原已备份的软件源 - - - Debian 系 - - ``` sh - cp -rvf /etc/apt/sources.list.bak /etc/apt/sources.list - ``` - - - RedHat 系 / openEuler - - ``` sh - cp -rvf /etc/yum.repos.d.bak /etc/yum.repos.d - ``` - - - openSUSE - - ``` sh - cp -rvf /etc/zypp/repos.d.bak /etc/zypp/repos.d - ``` - -## 其它 - - - 如果提示 `bash: /proc/self/fd/11: No such file or directory`,请切换至 `Root` 用户执行 diff --git a/docs/help/index.md b/docs/help/index.md new file mode 100644 index 0000000..f3184cb --- /dev/null +++ b/docs/help/index.md @@ -0,0 +1,61 @@ +--- +hide: + - navigation +--- + +## 关于报错 Command not found + + - 如果提示 `Command 'curl' not found` 则说明当前未安装 `curl` 软件包 + + === "Debian 系 Linux" + + ``` sh + apt-get install -y curl + ``` + + `Debian`   `Ubuntu`   `Kali` + + === "RedHat 系 Linux/openEuler" + + ``` sh + yum install -y curl || dnf install -y curl + ``` + + `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `Fedora`   `openEuler` + + === "openSUSE" + + ``` sh + zypper install curl + ``` + +## 还原已备份的软件源 + +=== "Debian 系 Linux" + + ``` sh + cp -rvf /etc/apt/sources.list.bak /etc/apt/sources.list + apt-get update + ``` + + `Debian`   `Ubuntu`   `Kali` + +=== "RedHat 系 Linux/openEuler" + + ``` sh + cp -rvf /etc/yum.repos.d.bak /etc/yum.repos.d + yum makecache + ``` + + `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `Fedora`   `openEuler` + +=== "openSUSE" + + ``` sh + cp -rvf /etc/zypp/repos.d.bak /etc/zypp/repos.d + zypper ref + ``` + +## 其它 + + - 如果提示 `bash: /proc/self/fd/11: No such file or directory`,请切换至 `Root` 用户执行,切换命令为 `su root` diff --git a/docs/index.md b/docs/index.md index 313ece4..c95a451 100644 --- a/docs/index.md +++ b/docs/index.md @@ -55,7 +55,14 @@ GNU/Linux 一键更换系统软件源脚本 当前支持上述基于 Debian、RedHat、openEuler、openSUSE 的发行版和及其部分衍生版本(点击列表中的图标可快速前往其官网) 理论支持所有架构的环境,不在此支持范围内的操作系统或版本请勿运行本项目脚本 -[开始使用](/use/main.html){ .md-button .md-button--primary } [软件源](/mirrors.html){ .md-button } +[开始使用](/use){ .md-button .md-button--primary } [软件源](/Mirrors){ .md-button } 项目已设立开源许可协议,传播时请在显著位置标注来源和作者,请尊重作者的知识成果,建议通过命令直接调用脚本 -如有意见与建议您可以提交至 [Issues](https://github.com/SuperManito/LinuxMirrors/issues),如果您需要提交您的代码,请前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls) +如有意见与建议您可以提交至 [Issues](https://github.com/SuperManito/LinuxMirrors/issues),如果您需要提交您的代码请前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls) + +:material-calendar-month-outline: 适配计划 + +- [ ] OpenCloudOS +- [ ] OpenAnolis +- [ ] Arch Linux +- [ ] AlmaLinux diff --git a/docs/mirrors.md b/docs/mirrors.md index 5e79aa2..153bf21 100644 --- a/docs/mirrors.md +++ b/docs/mirrors.md @@ -29,64 +29,201 @@ hide: !!! question "使用帮助" - :material-check:{ style="color: #4DB6AC" } 支持    :material-close:{ style="color: #EF5350" } 不支持    :material-circle-off-outline:{ style="color: #F6B604" } 表示软件源分支命名不符合脚本默认规则,但可以使用命令参数来使用 + :material-check:{ style="color: #4DB6AC" } 支持    :material-close:{ style="color: #EF5350" } 不支持    :material-circle-off-outline:{ style="color: #F6B604" } 表示软件源分支命名不符合脚本默认规则,但可以通过命令参数来使用 如果使用过程中脚本不能正常输出中文内容则可对照此列表使用,顺序与脚本一致,之后一路回车即可 - ## 海外地区 -| 镜像站名称 | 镜像站地址 | -| :- | :-: | -| 亚洲 · 科盈电信 [香港] | [mirror.hkt.cc](https://mirror.hkt.cc) | -| 亚洲 · xTom [香港] | [mirrors.xtom.hk](https://mirrors.xtom.hk) | -| 亚洲 · 01Link [香港] | [mirror.01link.hk](https://mirror.01link.hk) | -| 亚洲 · 新加坡国立大学(NUS) [新加坡] | [download.nus.edu.sg/mirror](https://download.nus.edu.sg) | -| 亚洲 · 自由软件实验室(NCHC) [台湾] | [free.nchc.org.tw](https://free.nchc.org.tw) | -| 亚洲 · AniGil Linux Archive [韩国] | [mirror.anigil.com](https://mirror.anigil.com) | -| 亚洲 · 工业网络安全卓越中心(ICSCoE) [日本] | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux) | -| 亚洲 · 北陆先端科学技术大学院(JAIST) [日本] | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux) | -| 亚洲 · xTom [日本] | [mirrors.xtom.jp](https://mirrors.xtom.jp) | -| 亚洲 · GB Network Solutions [马来西亚] | [mirrors.gbnetwork.com](https://mirrors.gbnetwork.com) | -| 亚洲 · 孔敬大学 [泰国] | [mirror.kku.ac.th](https://mirror.kku.ac.th) | -| 亚洲 · RISE [菲律宾] | [mirror.rise.ph](https://mirror.rise.ph) | -| 北美 · Linux Kernel [美国] | [mirrors.kernel.org](https://mirrors.kernel.org) | -| 北美 · 麻省理工学院(MIT) [美国] | [mirrors.mit.edu](https://mirrors.mit.edu) | -| 北美 · 普林斯顿大学数学系 [美国] | [mirror.math.princeton.edu/pub](https://mirror.math.princeton.edu/pub) | -| 北美 · 俄勒冈州立大学开源实验室 [美国] | [ftp-chi.osuosl.org/pub](https://ftp-chi.osuosl.org/pub) | -| 北美 · Fremont Cabal 互联网交换中心 [美国] | [mirror.fcix.net](https://mirror.fcix.net) | -| 北美 · xTom [美国] | [mirrors.xtom.com](https://mirrors.xtom.com) | -| 北美 · Steadfast [美国] | [mirror.steadfast.net](https://mirror.steadfast.net) | -| 北美 · 不列颠哥伦比亚大学 [加拿大] | [mirror.it.ubc.ca](https://mirror.it.ubc.ca) | -| 南美 · 蓬塔格罗萨州立大学 [巴西] | [mirror.uepg.br](https://mirror.uepg.br) | -| 欧洲 · Vorboss Ltd [英国] | [mirror.vorboss.net](https://mirror.vorboss.net) | -| 欧洲 · QuickHost [英国] | [mirror.quickhost.uk](https://mirror.quickhost.uk) | -| 欧洲 · dogado [德国] | [mirror.dogado.de](https://mirror.dogado.de) | -| 欧洲 · xTom [德国] | [mirrors.xtom.de](https://mirrors.xtom.de) | -| 欧洲 · 亚琛工业大学(RWTH Aachen) [德国] | [ftp.halifax.rwth-aachen.de](https://ftp.halifax.rwth-aachen.de) | -| 欧洲 · 德累斯顿大学(AG DSN) [德国] | [ftp.agdsn.de](https://ftp.agdsn.de) | -| 欧洲 · CCIN2P3 [法国] | [mirror.in2p3.fr/pub/linux](https://mirror.in2p3.fr/pub/linux) | -| 欧洲 · xTom [荷兰] | [mirrors.xtom.nl](https://mirrors.xtom.nl) | -| 欧洲 · DataPacket [荷兰] | [mirror.datapacket.com](https://mirror.datapacket.com) | -| 欧洲 · Linux Kernel [荷兰] | [eu.edge.kernel.org](https://eu.edge.kernel.org) | -| 欧洲 · xTom [爱沙尼亚] | [mirrors.xtom.ee](https://mirrors.xtom.ee) | -| 欧洲 · netsite [丹麦] | [mirror.netsite.dk](https://mirror.netsite.dk) | -| 欧洲 · Dotsrc [丹麦] | [mirrors.dotsrc.org](https://mirrors.dotsrc.org) | -| 欧洲 · Academic Computer Club [瑞典] | [mirror.accum.se](https://mirror.accum.se) | -| 欧洲 · Lysator [瑞典] | [ftp.lysator.liu.se](https://ftp.lysator.liu.se) | -| 欧洲 · Yandex [俄罗斯] | [mirror.yandex.ru](https://mirror.yandex.ru) | -| 欧洲 · ia64 [俄罗斯] | [mirror.linux-ia64.org](https://mirror.linux-ia64.org) | -| 欧洲 · Truenetwork [俄罗斯] | [mirror.truenetwork.ru](https://mirror.truenetwork.ru) | -| 欧洲 · Belgian Research Network [比利时] | [ftp.belnet.be/mirror](https://ftp.belnet.be/mirror) | -| 欧洲 · 克里特大学计算机中心 [希腊] | [ftp.cc.uoc.gr/mirrors/linux](https://ftp.cc.uoc.gr/mirrors/linux) | -| 澳洲 · Fremont Cabal 互联网交换中心 [澳大利亚] | [gsl-syd.mm.fcix.net](https://gsl-syd.mm.fcix.net) | -| 澳洲 · xTom [澳大利亚] | [mirrors.xtom.au](https://mirrors.xtom.au) | -| 澳洲 · Free Software Mirror Group [新西兰] | [mirror.fsmg.org.nz](https://mirror.fsmg.org.nz) | -| 非洲 · Liquid Telecom [肯尼亚] | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com) | -| 非洲 · Dimension Data [南非] | [mirror.dimensiondata.com](https://mirror.dimensiondata.com) | +=== "全部地区" -该列表中的软件源参考自 [`Ubutnu 镜像列表`](https://launchpad.net/ubuntu/+cdmirrors) [`Debian 镜像列表`](https://www.debian.org/CD/http-ftp/#mirrors) [`Fedora Mirror Manager`](https://admin.fedoraproject.org/mirrormanager/mirrors) 并且全部经过了有效性验证,但未作实际测试 + | 镜像站名称 | 镜像站地址 | + | :- | :-: | + | 亚洲 · 科盈电信 [🇭🇰香港] | [mirror.hkt.cc](https://mirror.hkt.cc) | + | 亚洲 · xTom [🇭🇰香港] | [mirrors.xtom.hk](https://mirrors.xtom.hk) | + | 亚洲 · 01Link [🇭🇰香港] | [mirror.01link.hk](https://mirror.01link.hk) | + | 亚洲 · 新加坡国立大学(NUS) [🇸🇬新加坡] | [download.nus.edu.sg/mirror](https://download.nus.edu.sg) | + | 亚洲 · SG.GS [🇸🇬新加坡] | [mirror.sg.gs](https://mirror.sg.gs) | + | 亚洲 · Neo Soon Keat [🇸🇬新加坡] | [mirror.soonkeat.sg](https://mirror.soonkeat.sg) | + | 亚洲 · 自由软件实验室(NCHC) [🇹🇼台湾] | [free.nchc.org.tw](https://free.nchc.org.tw) | + | 亚洲 · OSS Planet [🇹🇼台湾] | [mirror.ossplanet.net](https://mirror.ossplanet.net) | + | 亚洲 · 国立阳明交通大学 [🇹🇼台湾] | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw) | + | 亚洲 · 淡江大学 [🇹🇼台湾] | [ftp.tku.edu.tw](https://ftp.tku.edu.tw) | + | 亚洲 · AniGil Linux Archive [🇰🇷韩国] | [mirror.anigil.com](https://mirror.anigil.com) | + | 亚洲 · 工业网络安全卓越中心(ICSCoE) [🇯🇵日本] | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux) | + | 亚洲 · Internet Initiative Japan(IIJ) [🇯🇵日本] | [ftp.iij.ad.jp/pub/linux](https://ftp.iij.ad.jp/pub/linux) | + | 亚洲 · 北陆先端科学技术大学院(JAIST) [🇯🇵日本] | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux) | + | 亚洲 · 山形大学 [🇯🇵日本] | [linux2.yz.yamagata-u.ac.jp/pub/Linux](https://linux2.yz.yamagata-u.ac.jp/pub/Linux) | + | 亚洲 · xTom [🇯🇵日本] | [mirrors.xtom.jp](https://mirrors.xtom.jp) | + | 亚洲 · GB Network Solutions [🇲🇾马来西亚] | [mirrors.gbnetwork.com](https://mirrors.gbnetwork.com) | + | 亚洲 · 孔敬大学 [🇹🇭泰国] | [mirror.kku.ac.th](https://mirror.kku.ac.th) | + | 亚洲 · RISE [🇵🇭菲律宾] | [mirror.rise.ph](https://mirror.rise.ph) | + | 北美 · Linux Kernel [🇺🇸美国] | [mirrors.kernel.org](https://mirrors.kernel.org) | + | 北美 · 麻省理工学院(MIT) [🇺🇸美国] | [mirrors.mit.edu](https://mirrors.mit.edu) | + | 北美 · 普林斯顿大学数学系 [🇺🇸美国] | [mirror.math.princeton.edu/pub](https://mirror.math.princeton.edu/pub) | + | 北美 · 俄勒冈州立大学开源实验室 [🇺🇸美国] | [ftp-chi.osuosl.org/pub](https://ftp-chi.osuosl.org/pub) | + | 北美 · Fremont Cabal 互联网交换中心(FCIX) [🇺🇸美国] | [mirror.fcix.net](https://mirror.fcix.net) | + | 北美 · xTom [🇺🇸美国] | [mirrors.xtom.com](https://mirrors.xtom.com) | + | 北美 · Steadfast [🇺🇸美国] | [mirror.steadfast.net](https://mirror.steadfast.net) | + | 北美 · 不列颠哥伦比亚大学 [🇨🇦加拿大] | [mirror.it.ubc.ca](https://mirror.it.ubc.ca) | + | 北美 · GoCodeIT [🇨🇦加拿大] | [mirror.xenyth.net](https://mirror.xenyth.net) | + | 北美 · Switch [🇨🇦加拿大] | [mirrors.switch.ca](https://mirrors.switch.ca) | + | 南美 · PoP-SC [🇧🇷巴西] | [mirror.pop-sc.rnp.br/mirror](https://mirror.pop-sc.rnp.br/mirror) | + | 南美 · 蓬塔格罗萨州立大学 [🇧🇷巴西] | [mirror.uepg.br](https://mirror.uepg.br) | + | 南美 · UFSCar [🇧🇷巴西] | [mirror.ufscar.br](https://mirror.ufscar.br) | + | 南美 · Sysarmy Community [🇦🇷阿根廷] | [mirrors.eze.sysarmy.com](https://mirrors.eze.sysarmy.com) | + | 欧洲 · Vorboss Ltd [🇬🇧英国] | [mirror.vorboss.net](https://mirror.vorboss.net) | + | 欧洲 · QuickHost [🇬🇧英国] | [mirror.quickhost.uk](https://mirror.quickhost.uk) | + | 欧洲 · dogado [🇩🇪德国] | [mirror.dogado.de](https://mirror.dogado.de) | + | 欧洲 · xTom [🇩🇪德国] | [mirrors.xtom.de](https://mirrors.xtom.de) | + | 欧洲 · 亚琛工业大学(RWTH Aachen) [🇩🇪德国] | [ftp.halifax.rwth-aachen.de](https://ftp.halifax.rwth-aachen.de) | + | 欧洲 · 德累斯顿大学(AG DSN) [🇩🇪德国] | [ftp.agdsn.de](https://ftp.agdsn.de) | + | 欧洲 · CCIN2P3 [🇫🇷法国] | [mirror.in2p3.fr/pub/linux](https://mirror.in2p3.fr/pub/linux) | + | 欧洲 · Ircam [🇫🇷法国] | [mirrors.ircam.fr/pub](https://mirrors.ircam.fr/pub) | + | 欧洲 · Crans [🇫🇷法国] | [eclats.crans.org](https://eclats.crans.org) | + | 欧洲 · CRIHAN [🇫🇷法国] | [ftp.crihan.fr](https://ftp.crihan.fr) | + | 欧洲 · xTom [🇳🇱荷兰] | [mirrors.xtom.nl](https://mirrors.xtom.nl) | + | 欧洲 · DataPacket [🇳🇱荷兰] | [mirror.datapacket.com](https://mirror.datapacket.com) | + | 欧洲 · Linux Kernel [🇳🇱荷兰] | [eu.edge.kernel.org](https://eu.edge.kernel.org) | + | 欧洲 · xTom [🇪🇪爱沙尼亚] | [mirrors.xtom.ee](https://mirrors.xtom.ee) | + | 欧洲 · netsite [🇩🇰丹麦] | [mirror.netsite.dk](https://mirror.netsite.dk) | + | 欧洲 · Dotsrc [🇩🇰丹麦] | [mirrors.dotsrc.org](https://mirrors.dotsrc.org) | + | 欧洲 · Academic Computer Club [🇸🇪瑞典] | [mirror.accum.se](https://mirror.accum.se) | + | 欧洲 · Lysator [🇸🇪瑞典] | [ftp.lysator.liu.se](https://ftp.lysator.liu.se) | + | 欧洲 · Yandex [🇷🇺俄罗斯] | [mirror.yandex.ru](https://mirror.yandex.ru) | + | 欧洲 · ia64 [🇷🇺俄罗斯] | [mirror.linux-ia64.org](https://mirror.linux-ia64.org) | + | 欧洲 · Truenetwork [🇷🇺俄罗斯] | [mirror.truenetwork.ru](https://mirror.truenetwork.ru) | + | 欧洲 · Belgian Research Network [🇧🇪比利时] | [ftp.belnet.be/mirror](https://ftp.belnet.be/mirror) | + | 欧洲 · 克里特大学计算机中心 [🇬🇷希腊] | [ftp.cc.uoc.gr/mirrors/linux](https://ftp.cc.uoc.gr/mirrors/linux) | + | 欧洲 · 马萨里克大学信息学院 [🇨🇿捷克] | [ftp.fi.muni.cz/pub/linux](https://ftp.fi.muni.cz/pub/linux) | + | 欧洲 · 捷克理工大学学生会俱乐部(Silicon Hill) [🇨🇿捷克] | [ftp.sh.cvut.cz](https://ftp.sh.cvut.cz) | + | 欧洲 · Vodafone [🇨🇿捷克] | [mirror.karneval.cz/pub/linux](https://mirror.karneval.cz/pub/linux) | + | 欧洲 · CZ.NIC [🇨🇿捷克] | [mirrors.nic.cz](https://mirrors.nic.cz) | + | 欧洲 · 苏黎世联邦理工学院 [🇨🇭瑞士] | [mirror.ethz.ch](https://mirror.ethz.ch) | + | 大洋 · Fremont Cabal 互联网交换中心(FCIX) [🇦🇺澳大利亚] | [gsl-syd.mm.fcix.net](https://gsl-syd.mm.fcix.net) | + | 大洋 · AARNet [🇦🇺澳大利亚] | [mirror.aarnet.edu.au/pub](https://mirror.aarnet.edu.au/pub) | + | 大洋 · DataMossa [🇦🇺澳大利亚] | [mirror.datamossa.io](https://mirror.datamossa.io) | + | 大洋 · Amaze [🇦🇺澳大利亚] | [mirror.amaze.com.au](https://mirror.amaze.com.au) | + | 大洋 · xTom [🇦🇺澳大利亚] | [mirrors.xtom.au](https://mirrors.xtom.au) | + | 大洋 · Over the Wire [🇦🇺澳大利亚] | [mirror.overthewire.com.au](https://mirror.overthewire.com.au) | + | 大洋 · Free Software Mirror Group [🇳🇿新西兰] | [mirror.fsmg.org.nz](https://mirror.fsmg.org.nz) | + | 非洲 · Liquid Telecom [🇰🇪肯尼亚] | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com) | + | 非洲 · Dimension Data [🇿🇦南非] | [mirror.dimensiondata.com](https://mirror.dimensiondata.com) | + +=== "亚洲" + + | 镜像站名称 | 镜像站地址 | + | :- | :-: | + | 亚洲 · 科盈电信 [🇭🇰香港] | [mirror.hkt.cc](https://mirror.hkt.cc) | + | 亚洲 · xTom [🇭🇰香港] | [mirrors.xtom.hk](https://mirrors.xtom.hk) | + | 亚洲 · 01Link [🇭🇰香港] | [mirror.01link.hk](https://mirror.01link.hk) | + | 亚洲 · 新加坡国立大学(NUS) [🇸🇬新加坡] | [download.nus.edu.sg/mirror](https://download.nus.edu.sg) | + | 亚洲 · SG.GS [🇸🇬新加坡] | [mirror.sg.gs](https://mirror.sg.gs) | + | 亚洲 · Neo Soon Keat [🇸🇬新加坡] | [mirror.soonkeat.sg](https://mirror.soonkeat.sg) | + | 亚洲 · 自由软件实验室(NCHC) [🇹🇼台湾] | [free.nchc.org.tw](https://free.nchc.org.tw) | + | 亚洲 · OSS Planet [🇹🇼台湾] | [mirror.ossplanet.net](https://mirror.ossplanet.net) | + | 亚洲 · 国立阳明交通大学 [🇹🇼台湾] | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw) | + | 亚洲 · 淡江大学 [🇹🇼台湾] | [ftp.tku.edu.tw](https://ftp.tku.edu.tw) | + | 亚洲 · AniGil Linux Archive [🇰🇷韩国] | [mirror.anigil.com](https://mirror.anigil.com) | + | 亚洲 · 工业网络安全卓越中心(ICSCoE) [🇯🇵日本] | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux) | + | 亚洲 · Internet Initiative Japan(IIJ) [🇯🇵日本] | [ftp.iij.ad.jp/pub/linux](https://ftp.iij.ad.jp/pub/linux) | + | 亚洲 · 北陆先端科学技术大学院(JAIST) [🇯🇵日本] | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux) | + | 亚洲 · 山形大学 [🇯🇵日本] | [linux2.yz.yamagata-u.ac.jp/pub/Linux](https://linux2.yz.yamagata-u.ac.jp/pub/Linux) | + | 亚洲 · xTom [🇯🇵日本] | [mirrors.xtom.jp](https://mirrors.xtom.jp) | + | 亚洲 · GB Network Solutions [🇲🇾马来西亚] | [mirrors.gbnetwork.com](https://mirrors.gbnetwork.com) | + | 亚洲 · 孔敬大学 [🇹🇭泰国] | [mirror.kku.ac.th](https://mirror.kku.ac.th) | + | 亚洲 · RISE [🇵🇭菲律宾] | [mirror.rise.ph](https://mirror.rise.ph) | + +=== "北美洲" + + | 镜像站名称 | 镜像站地址 | + | :- | :-: | + | 北美 · Linux Kernel [🇺🇸美国] | [mirrors.kernel.org](https://mirrors.kernel.org) | + | 北美 · 麻省理工学院(MIT) [🇺🇸美国] | [mirrors.mit.edu](https://mirrors.mit.edu) | + | 北美 · 普林斯顿大学数学系 [🇺🇸美国] | [mirror.math.princeton.edu/pub](https://mirror.math.princeton.edu/pub) | + | 北美 · 俄勒冈州立大学开源实验室 [🇺🇸美国] | [ftp-chi.osuosl.org/pub](https://ftp-chi.osuosl.org/pub) | + | 北美 · Fremont Cabal 互联网交换中心(FCIX) [🇺🇸美国] | [mirror.fcix.net](https://mirror.fcix.net) | + | 北美 · xTom [🇺🇸美国] | [mirrors.xtom.com](https://mirrors.xtom.com) | + | 北美 · Steadfast [🇺🇸美国] | [mirror.steadfast.net](https://mirror.steadfast.net) | + | 北美 · 不列颠哥伦比亚大学 [🇨🇦加拿大] | [mirror.it.ubc.ca](https://mirror.it.ubc.ca) | + | 北美 · GoCodeIT [🇨🇦加拿大] | [mirror.xenyth.net](https://mirror.xenyth.net) | + | 北美 · Switch [🇨🇦加拿大] | [mirrors.switch.ca](https://mirrors.switch.ca) | + +=== "南美洲" + + | 镜像站名称 | 镜像站地址 | + | :- | :-: | + | 南美 · PoP-SC [🇧🇷巴西] | [mirror.pop-sc.rnp.br/mirror](https://mirror.pop-sc.rnp.br/mirror) | + | 南美 · 蓬塔格罗萨州立大学 [🇧🇷巴西] | [mirror.uepg.br](https://mirror.uepg.br) | + | 南美 · UFSCar [🇧🇷巴西] | [mirror.ufscar.br](https://mirror.ufscar.br) | + | 南美 · Sysarmy Community [🇦🇷阿根廷] | [mirrors.eze.sysarmy.com](https://mirrors.eze.sysarmy.com) | + +=== "欧洲" + + | 镜像站名称 | 镜像站地址 | + | :- | :-: | + | 欧洲 · Vorboss Ltd [🇬🇧英国] | [mirror.vorboss.net](https://mirror.vorboss.net) | + | 欧洲 · QuickHost [🇬🇧英国] | [mirror.quickhost.uk](https://mirror.quickhost.uk) | + | 欧洲 · dogado [🇩🇪德国] | [mirror.dogado.de](https://mirror.dogado.de) | + | 欧洲 · xTom [🇩🇪德国] | [mirrors.xtom.de](https://mirrors.xtom.de) | + | 欧洲 · 亚琛工业大学(RWTH Aachen) [🇩🇪德国] | [ftp.halifax.rwth-aachen.de](https://ftp.halifax.rwth-aachen.de) | + | 欧洲 · 德累斯顿大学(AG DSN) [🇩🇪德国] | [ftp.agdsn.de](https://ftp.agdsn.de) | + | 欧洲 · CCIN2P3 [🇫🇷法国] | [mirror.in2p3.fr/pub/linux](https://mirror.in2p3.fr/pub/linux) | + | 欧洲 · Ircam [🇫🇷法国] | [mirrors.ircam.fr/pub](https://mirrors.ircam.fr/pub) | + | 欧洲 · Crans [🇫🇷法国] | [eclats.crans.org](https://eclats.crans.org) | + | 欧洲 · CRIHAN [🇫🇷法国] | [ftp.crihan.fr](https://ftp.crihan.fr) | + | 欧洲 · xTom [🇳🇱荷兰] | [mirrors.xtom.nl](https://mirrors.xtom.nl) | + | 欧洲 · DataPacket [🇳🇱荷兰] | [mirror.datapacket.com](https://mirror.datapacket.com) | + | 欧洲 · Linux Kernel [🇳🇱荷兰] | [eu.edge.kernel.org](https://eu.edge.kernel.org) | + | 欧洲 · xTom [🇪🇪爱沙尼亚] | [mirrors.xtom.ee](https://mirrors.xtom.ee) | + | 欧洲 · netsite [🇩🇰丹麦] | [mirror.netsite.dk](https://mirror.netsite.dk) | + | 欧洲 · Dotsrc [🇩🇰丹麦] | [mirrors.dotsrc.org](https://mirrors.dotsrc.org) | + | 欧洲 · Academic Computer Club [🇸🇪瑞典] | [mirror.accum.se](https://mirror.accum.se) | + | 欧洲 · Lysator [🇸🇪瑞典] | [ftp.lysator.liu.se](https://ftp.lysator.liu.se) | + | 欧洲 · Yandex [🇷🇺俄罗斯] | [mirror.yandex.ru](https://mirror.yandex.ru) | + | 欧洲 · ia64 [🇷🇺俄罗斯] | [mirror.linux-ia64.org](https://mirror.linux-ia64.org) | + | 欧洲 · Truenetwork [🇷🇺俄罗斯] | [mirror.truenetwork.ru](https://mirror.truenetwork.ru) | + | 欧洲 · Belgian Research Network [🇧🇪比利时] | [ftp.belnet.be/mirror](https://ftp.belnet.be/mirror) | + | 欧洲 · 克里特大学计算机中心 [🇬🇷希腊] | [ftp.cc.uoc.gr/mirrors/linux](https://ftp.cc.uoc.gr/mirrors/linux) | + | 欧洲 · 马萨里克大学信息学院 [🇨🇿捷克] | [ftp.fi.muni.cz/pub/linux](https://ftp.fi.muni.cz/pub/linux) | + | 欧洲 · 捷克理工大学学生会俱乐部(Silicon Hill) [🇨🇿捷克] | [ftp.sh.cvut.cz](https://ftp.sh.cvut.cz) | + | 欧洲 · Vodafone [🇨🇿捷克] | [mirror.karneval.cz/pub/linux](https://mirror.karneval.cz/pub/linux) | + | 欧洲 · CZ.NIC [🇨🇿捷克] | [mirrors.nic.cz](https://mirrors.nic.cz) | + | 欧洲 · 苏黎世联邦理工学院 [🇨🇭瑞士] | [mirror.ethz.ch](https://mirror.ethz.ch) | + +=== "大洋洲" + + | 镜像站名称 | 镜像站地址 | + | :- | :-: | + | 大洋 · Fremont Cabal 互联网交换中心(FCIX) [🇦🇺澳大利亚] | [gsl-syd.mm.fcix.net](https://gsl-syd.mm.fcix.net) | + | 大洋 · AARNet [🇦🇺澳大利亚] | [mirror.aarnet.edu.au/pub](https://mirror.aarnet.edu.au/pub) | + | 大洋 · DataMossa [🇦🇺澳大利亚] | [mirror.datamossa.io](https://mirror.datamossa.io) | + | 大洋 · Amaze [🇦🇺澳大利亚] | [mirror.amaze.com.au](https://mirror.amaze.com.au) | + | 大洋 · xTom [🇦🇺澳大利亚] | [mirrors.xtom.au](https://mirrors.xtom.au) | + | 大洋 · Over the Wire [🇦🇺澳大利亚] | [mirror.overthewire.com.au](https://mirror.overthewire.com.au) | + | 大洋 · Free Software Mirror Group [🇳🇿新西兰] | [mirror.fsmg.org.nz](https://mirror.fsmg.org.nz) | + +=== "非洲" + + | 镜像站名称 | 镜像站地址 | + | :- | :-: | + | 非洲 · Liquid Telecom [🇰🇪肯尼亚] | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com) | + | 非洲 · Dimension Data [🇿🇦南非] | [mirror.dimensiondata.com](https://mirror.dimensiondata.com) | !!! help "帮助本项目完善更多海外软件源" - 如果你想补充更多或更正当前已有海外软件源,请修改脚本内的 [`mirror_list_abroad 数组变量`](https://github.com/SuperManito/LinuxMirrors/blame/main/ChangeMirrors.sh#L27) 并按照注释中的规则进行修改 - 你可以在确认软件源地址无误后前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls),也可以自行本地使用 + 该列表中的软件源参考自 [`Ubuntu 镜像列表`](https://launchpad.net/ubuntu/+cdmirrors) [`Debian 镜像列表`](https://www.debian.org/CD/http-ftp/#mirrors) [`Fedora Mirror Manager`](https://admin.fedoraproject.org/mirrormanager/mirrors) 并且全部经过了有效性验证,但未作实际测试 + + 如果你想补充更多或更正当前已有海外软件源,请修改脚本内的 [`mirror_list_abroad 数组变量`](https://github.com/SuperManito/LinuxMirrors/blame/main/ChangeMirrors.sh#L28) 并按照注释中的规则进行修改 + 你可以在确认软件源地址无误后前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls),也可以 Fork 仓库后自行定制使用 + + - 海外软件源编辑规范: + + 通用格式:"洲 · 软件源名称 [国家/地区]@软件源地址" + + 请根据地理位置、国家/地区进行排序以便于用户选择,有标志性缩写字符的单位应在最后用括号补充,单位的名称应以域名为优先原则,下面是命名规则 + + - 教育单位:需使用中文译名,全称中若含有国家/地区的名称则也要带上,注意区分下属单位例如学院、学生会、社团等,命名以域名为优先原则,常见的二级域名格式 `ftp/mirrors.xxx.xxx` 应直接采用顶级单位的名称,如果有三级域名则应考虑是否在名称中加上下属单位 + + 注:`Technology` 一词应称为 `理工` 而不能使用 `技术` 这一翻译结果 + + - 非教育单位:应优先使用其上属官网自称的英文作为名称,如果没有并且是是除中文、英文以外的语言应使用域名作为名称 diff --git a/docs/other.md b/docs/other/index.md similarity index 100% rename from docs/other.md rename to docs/other/index.md diff --git a/docs/use/command-options.md b/docs/use/command-options.md index 641b934..5fac071 100644 --- a/docs/use/command-options.md +++ b/docs/use/command-options.md @@ -19,7 +19,7 @@ 若不想通过交互选择默认提供的软件源,你可以使用该命令选项指定软件源地址 -``` bash +``` { .bash .no-copy } bash ChangeMirrors.sh --source mirrors.ustc.edu.cn ``` @@ -74,7 +74,7 @@ bash ChangeMirrors.sh --source mirrors.ustc.edu.cn 请看下面的例子 -``` sh title="使用阿里云的 Rocky Linux 软件源" linenums="1" +``` { .bash .no-copy title="使用阿里云的 Rocky Linux 软件源" } bash ChangeMirrors.sh \ --source mirrors.aliyun.com \ --branch rockylinux @@ -86,7 +86,7 @@ bash ChangeMirrors.sh \ 不通过交互完成换源操作,需要使用大量命令选项来实现,建议熟悉后再使用 -``` sh title="参考命令" linenums="1" +``` { .bash .no-copy title="参考命令" } bash ChangeMirrors.sh \ --source mirror.example.com \ --web-protocol http \ diff --git a/docs/use/main.md b/docs/use/index.md similarity index 90% rename from docs/use/main.md rename to docs/use/index.md index 665e4c3..5d1393a 100644 --- a/docs/use/main.md +++ b/docs/use/index.md @@ -9,7 +9,7 @@ === "海外使用" ``` bash - bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad + bash <(curl -sSL https://github.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad ``` ## 注意事项 diff --git a/docs/use/not-enabled.md b/docs/use/not-enabled.md index f83eccc..9e90ac2 100644 --- a/docs/use/not-enabled.md +++ b/docs/use/not-enabled.md @@ -1,22 +1,17 @@ -=== "Debian" +遵循系统默认设置即没有启用的软件源不会在运行完本脚本后被启用,但是它们跟随脚本更换了目标软件源地址,如果你有使用需求请阅读下面的启用方法 - 默认禁用了源码仓库和预发布软件源,若需启用请将 `/etc/apt/sources.list` 文件中相关内容的所在行取消注释 +=== "Debian 系 Linux" - `Debian` - `Ubuntu` - `Kali` + 默认禁用了`deb-src`源码仓库和`proposed`预发布软件源,若需启用请将 `/etc/apt/sources.list` 文件中相关内容的所在行取消注释 -=== "RedHat/openEuler" + `Debian`   `Ubuntu`   `Kali` + +=== "RedHat 系 Linux/openEuler" 部分仓库默认没有启用,若需启用请将 `/etc/yum.repos.d` 目录下相关 repo 文件中的 `enabled` 值修改为 `1` - `Red Hat Enterprise Linux` - `CentOS` - `Rocky Linux` - `Fedora` - `openEuler` + `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `Fedora`   `openEuler` === "openSUSE" 部分仓库默认没有启用,若需启用请将 `/etc/zypp/repos.d` 目录下相关 repo 文件中的 `enabled` 值修改为 `1` - diff --git a/mkdocs.yml b/mkdocs.yml index 0ab902c..e60f35d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -40,7 +40,6 @@ theme: features: - header.autohide - navigation.tabs - - navigation.expand - navigation.path - navigation.instant - navigation.indexes @@ -60,6 +59,10 @@ extra: social: - icon: fontawesome/brands/github link: https://github.com/SuperManito/LinuxMirrors + alternate: + - name: 简体中文 + link: / + lang: zh extra_css: - stylesheets/extra.css markdown_extensions: @@ -107,15 +110,14 @@ plugins: separator: '[\s\-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;' - tags - glightbox - - offline nav: - '介绍': index.md - - '软件源': mirrors.md - - '使用方法': - - '主要命令': use/main.md + - '软件源': Mirrors.md + - '使用方法': + - '主要命令': use/index.md - '执行流程': use/execution-flow.md - '未启用源': use/not-enabled.md - '高级用法': - '命令选项': use/command-options.md - - '常见问题': help.md - - '其它脚本': other.md + - '常见问题': help/index.md + - '其它脚本': other/index.md