Source code of the web interface of https://mirrors.tuna.tsinghua.edu.cn/
Go to file
Hui Yiqun cf688ec7e0 missing descriptions 2017-04-24 14:20:35 +08:00
_data missing descriptions 2017-04-24 14:20:35 +08:00
_includes add spin when loading 2017-01-08 17:07:29 +08:00
_layouts fixed navigation on mobile page. close #22 2016-08-13 22:41:19 +08:00
_posts remove cyanogenmod 2017-04-23 20:27:08 +08:00
geninfo merge anaconda and miniconda as conda 2017-04-20 16:52:13 +08:00
static link lineage to its help 2017-04-23 22:40:32 +08:00
.editorconfig Create .editorconfig 2016-02-06 20:18:48 +08:00
.gitignore replace markup.js with vue.js on index.html 2016-11-13 20:35:36 +08:00
Dockerfile.build add a Dockerfile to build environment for mirror-web 2017-01-07 16:08:28 +08:00
Dockerfile.dev rename dockerfile 2017-01-07 12:21:45 +08:00
Gemfile new mirrors 2016-08-18 14:22:30 +08:00
README.md Update README.md 2017-04-05 13:46:11 +08:00
_config.yml mark lineageOS as new 2017-04-23 22:38:00 +08:00
gen_desc.py put mirror descriptions to data file, and automatically generate description list 2016-12-12 00:55:13 +08:00
gen_robot.sh put mirror descriptions to data file, and automatically generate description list 2016-12-12 00:55:13 +08:00
help.html help page functional 2016-02-06 18:39:29 +08:00
index.html re-add the table-responsive class 2017-01-09 20:51:26 +08:00
news.html update meta info 2016-10-12 21:45:37 +08:00
robots.txt update robots.txt 2017-01-24 11:37:54 +08:00
status.html added detailed syncing status page 2016-05-06 10:54:54 +08:00

TUNA mirrors 主页

运行 Demo

直接编译

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

bundle install
jekyll build

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
wget https://mirrors.tuna.tsinghua.edu.cn/static/tunet.json -O static/tunet.json
wget https://mirrors.tuna.tsinghua.edu.cn/static/isoinfo.json -O static/isoinfo.json

之后 jekyll serve 即可运行 demo.

贡献文档

基本步骤

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

写作规范

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

特殊用法

表单选择

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