Source code of the web interface of https://mirrors.tuna.tsinghua.edu.cn/
Go to file
Zenithal 1cf6d6c8db
[WIP] Redirect to cernet help
2023-02-24 14:36:31 +08:00
.github/workflows docker-build: remove set-env 2021-05-29 15:17:56 +08:00
_data [WIP] Redirect to cernet help 2023-02-24 14:36:31 +08:00
_includes diskusgae: show multiple bars 2021-08-13 19:09:32 +08:00
_layouts [WIP] Redirect to cernet help 2023-02-24 14:36:31 +08:00
_plugins Add cache buster 2021-06-23 15:16:57 +08:00
fancy-index remove browser-update 2022-10-22 00:51:34 +08:00
geninfo genisoinfo: include more releases for noto-cjk 2023-02-03 21:49:15 +08:00
help/_posts help: mysql: remove eol repo 2023-02-20 06:51:50 +00:00
news/_posts news: remove sagemath 2023-02-22 14:24:05 +00:00
static [WIP] Redirect to cernet help 2023-02-24 14:36:31 +08:00
.editorconfig Create .editorconfig 2015-12-11 16:08:49 +08:00
.gitignore update MongoDB document 2021-01-30 22:40:36 +08:00
404.html Remove redundant site.name from description 2021-08-03 21:09:35 +08:00
Dockerfile.build docker img: use lts nodejs 2021-06-25 16:30:24 +08:00
Dockerfile.dev Use TUNA Mirrors in Dockerfile.dev 2020-03-22 22:01:24 +08:00
Gemfile add minifier to save bandwidth 2021-06-24 23:38:35 +08:00
LICENSE Create LICENSE 2019-01-16 16:50:40 +08:00
README.md Update README to add notice 2023-01-07 13:43:51 +08:00
_config.yml [WIP] Redirect to cernet help 2023-02-24 14:36:31 +08:00
feed.xml Escape author in RSS feed 2021-08-03 21:42:08 +08:00
gen_robot.sh remove robots.txt 2020-05-16 18:13:22 +08:00
help.html fix warnings when rendering 2019-07-26 23:21:37 -04:00
index.html [WIP] create legacy index page template 2019-08-20 15:43:01 -04:00
legacy_index.html [WIP] create legacy index page template 2019-08-20 15:43:01 -04:00
news.html Remove redundant site.name from description 2021-08-03 21:09:35 +08:00
status.html Fix typo 2021-08-13 23:49:23 +08:00

TUNA mirrors 主页

注意:如果使用本项目搭建开源镜像站,必须

  • 移除所有与清华大学和 TUNA 相关的内容包括且不限于站名、logo 和各种文档中出现的所有文本和图形;
  • 在网站首页恰当标注项目来源(tuna/mirror-web
  • 遵循 GPLv2 协议开放修改后的源代码;

运行 Demo

直接编译

本站使用 Jekyll 编写,并使用 babel 编译 ECMAScript6因此必须安装 ruby >= 2.0 和 nodejs.

Build In Docker

cd mirror-web
docker build -t builden -f Dockerfile.build .
docker run -it -v /path/to/mirror-web/:/data builden

为正常运行,一些动态数据文件需要下载

wget https://mirrors.tuna.tsinghua.edu.cn/static/tunasync.json -O static/tunasync.json
mkdir -p static/status
wget https://mirrors.tuna.tsinghua.edu.cn/static/status/isoinfo.json -O static/status/isoinfo.json

之后 jekyll serve 即可运行 demo.

贡献文档

基本步骤

  1. Fork 本项目并 clone
  2. 创建分支 git checkout -b foo-doc
  3. help/_post 中建立文档文件,文件名格式为 年-月-日-名称.md
  4. 用 markdown 语法编写文档
  5. 提交并推送代码
  6. 发送 Pull Request

写作规范

  1. 对于相对不知名的镜像项目,首先用一两句话介绍该项目
  2. 写明使用方法, 使用 Github Flavored Markdown 格式
  3. 中英文字符间应留一个空格

特殊用法

表单选择

例如 http://mirrors.tuna.tsinghua.edu.cn/help/mongodb/ 中,通过表单选择操作系统和版本号,建议直接使用 Vue.js