Skip to content

Commit

Permalink
Use site.hostname instead of hard coded tuna hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jan 16, 2021
1 parent 0c701df commit 19ee3a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion help/_posts/1970-01-01-aosp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion help/_posts/2019-02-27-flutter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion help/_posts/2020-09-10-llvm-project.git.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/) 查看使用帮助。
2 changes: 1 addition & 1 deletion help/_posts/2020-09-19-hugging-face-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
```

0 comments on commit 19ee3a8

Please sign in to comment.