mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Use site.hostname instead of hard coded tuna hostname
This commit is contained in:
parent
0c701df751
commit
19ee3a8dd8
|
|
@ -134,7 +134,7 @@ url = https://{{ site.hostname }}/git/AOSP/platform/manifest
|
|||
或者可以不修改文件,而执行
|
||||
|
||||
```
|
||||
git config --global url.https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/.insteadof https://android.googlesource.com
|
||||
git config --global url.https://{{ site.hostname }}/git/AOSP/.insteadof https://android.googlesource.com
|
||||
```
|
||||
|
||||
### FAQ
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ allprojects {
|
|||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
maven { url 'https://mirrors.tuna.tsinghua.edu.cn/flutter/download.flutter.io' }
|
||||
maven { url 'https://{{ site.hostname }}/flutter/download.flutter.io' }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -31,5 +31,5 @@ git remote set-url origin https://{{ site.hostname }}/git/llvm-project.git
|
|||
|
||||
注:
|
||||
|
||||
* 如需要各个子项目的发布版本代码,请至 [GitHub Release 镜像](https://mirrors.tuna.tsinghua.edu.cn/github-release/llvm/llvm-project/) 下载。
|
||||
* 如需要各个子项目的发布版本代码,请至 [GitHub Release 镜像](https://{{ site.hostname }}/github-release/llvm/llvm-project/) 下载。
|
||||
* 如需要 LLVM 合并为 monorepo 前的各个子仓库(已经不再更新),请至 [此页面](/help/llvm/) 查看使用帮助。
|
||||
|
|
|
|||
|
|
@ -23,5 +23,5 @@ AutoModel.from_pretrained('bert-base-uncased', mirror='tuna')
|
|||
目前内置的两个来源为 `tuna` 与 `bfsu`。此外,也可以显式提供镜像地址,如:
|
||||
|
||||
```python
|
||||
AutoModel.from_pretrained('bert-base-uncased', mirror='https://mirrors.tuna.tsinghua.edu.cn/hugging-face-models')
|
||||
AutoModel.from_pretrained('bert-base-uncased', mirror='https://{{ site.hostname }}/hugging-face-models')
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue