mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Update desc, alow rediretion of help pages
Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
parent
8cc622de3f
commit
de0e082f9f
|
|
@ -151,9 +151,11 @@ mirror_desc:
|
|||
- name: gentoo
|
||||
desc: Gentoo Linux 的 Stage 3 镜像
|
||||
- name: gentoo-portage
|
||||
desc: Gentoo Linux 的 Portage 包管理器镜像源
|
||||
desc: Gentoo Linux 的 Portage 包管理器镜像源(HTTP / rsync 访问)
|
||||
- name: gentoo-portage.git
|
||||
desc: Gentoo Linux 的 Portage 包管理器镜像源(Git 访问)
|
||||
- name: gentoo-portage-prefix
|
||||
desc: Gentoo/Prefix 的 Portage 包管理器镜像源
|
||||
desc: Gentoo/Prefix 的 Portage 包管理器镜像源(仅适用于 macOS)
|
||||
- name: git-repo
|
||||
desc: Google 开发的项目依赖下载工具 repo 的镜像
|
||||
- name: github-release
|
||||
|
|
@ -449,6 +451,7 @@ force_help_mirrors:
|
|||
- linux-next.git
|
||||
- linux-stable.git
|
||||
- git-repo
|
||||
- gentoo-portage.git
|
||||
- chromiumos
|
||||
- weave
|
||||
- CocoaPods
|
||||
|
|
|
|||
|
|
@ -4,6 +4,14 @@
|
|||
<body>
|
||||
{% include nav.html %}
|
||||
|
||||
{% if page.redirect_help_id %}
|
||||
{% assign redirect_to_page = site.categories["help"] | where_exp:"p", "p.mirrorid == page.redirect_help_id" %}
|
||||
<script>
|
||||
var redirect_to = window.location.protocol + "//" + window.location.host + "{{redirect_to_page[0].url}}";
|
||||
window.location = redirect_to;
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% assign help_pages = site.categories["help"] | sort: 'mirrorid' %}
|
||||
<div id="help-page">
|
||||
<div class="container">
|
||||
|
|
@ -11,7 +19,7 @@
|
|||
<div class="col-sm-2 hidden-xs">
|
||||
<ul class="nav nav-pills nav-stacked" id="help-nav">
|
||||
{% for h in help_pages %}
|
||||
<li{% if h.mirrorid == page.mirrorid%} class="active"{%endif%}><a href="{{h.url}}">{{h.mirrorid}}</a></li>
|
||||
<li{% if h.mirrorid == page.mirrorid or h.redirect_help_id == page.mirrorid %} class="active"{%endif%}><a href="{{h.url}}">{{h.mirrorid}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div><!-- sidenave -->
|
||||
|
|
|
|||
|
|
@ -2,28 +2,5 @@
|
|||
category: help
|
||||
layout: help
|
||||
mirrorid: linux-next.git
|
||||
redirect_help_id: linux.git
|
||||
---
|
||||
|
||||
## Linux Kernel Git Next 分支镜像使用帮助
|
||||
|
||||
如需克隆 linux 代码,使用
|
||||
|
||||
```
|
||||
git clone https://{{ site.hostname }}/git/linux-next.git
|
||||
```
|
||||
|
||||
若要将 tuna mirror 加入已有代码库,可在已有仓库中运行
|
||||
|
||||
```
|
||||
git remote add tuna https://{{ site.hostname }}/git/linux-next.git
|
||||
```
|
||||
|
||||
或运行
|
||||
|
||||
```
|
||||
git remote set-url origin https://{{ site.hostname }}/git/linux-next.git
|
||||
```
|
||||
|
||||
将默认上游设置为 TUNA 镜像。
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,27 +2,5 @@
|
|||
category: help
|
||||
layout: help
|
||||
mirrorid: linux-stable.git
|
||||
redirect_help_id: linux.git
|
||||
---
|
||||
|
||||
## Linux Kernel Git Stable 分支镜像使用帮助
|
||||
|
||||
如需克隆 linux 代码,使用
|
||||
|
||||
```
|
||||
git clone https://{{ site.hostname }}/git/linux-stable.git
|
||||
```
|
||||
|
||||
若要将 tuna mirror 加入已有代码库,可在已有仓库中运行
|
||||
|
||||
```
|
||||
git remote add tuna https://{{ site.hostname }}/git/linux-stable.git
|
||||
```
|
||||
|
||||
或运行
|
||||
|
||||
```
|
||||
git remote set-url origin https://{{ site.hostname }}/git/linux-stable.git
|
||||
```
|
||||
|
||||
将默认上游设置为 TUNA 镜像
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ mirrorid: linux.git
|
|||
|
||||
## Linux Kernel Git 镜像使用帮助
|
||||
|
||||
本项目包含三个镜像:`linux.git`, `linux-next.git`, `linux-stable.git`,分别是主分支、稳定版分支和开发分支。在使用时,请自行更改路径中相应的仓库名称。
|
||||
|
||||
如需克隆主线 linux 代码,使用
|
||||
|
||||
```
|
||||
|
|
@ -26,6 +28,8 @@ git remote set-url origin https://{{ site.hostname }}/git/linux.git
|
|||
|
||||
将默认上游设置为 TUNA 镜像
|
||||
|
||||
### 增量下载
|
||||
|
||||
如果需要其它 linux 分支的代码(如树莓派内核代码),可以在 clone 本项目基础上增量下载分支的代码,从而加速下载
|
||||
|
||||
以树莓派为例,具体操作为
|
||||
|
|
|
|||
Loading…
Reference in New Issue