-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a61d1a1
Showing
176 changed files
with
3,868 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
_site | ||
.sass-cache | ||
.jekyll-metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<style type="text/css" media="screen"> | ||
.container { | ||
margin: 10px auto; | ||
max-width: 600px; | ||
text-align: center; | ||
} | ||
h1 { | ||
margin: 30px 0; | ||
font-size: 4em; | ||
line-height: 1; | ||
letter-spacing: -1px; | ||
} | ||
</style> | ||
|
||
<div class="container"> | ||
<h1>404</h1> | ||
|
||
<p><strong>页面未找到 :(</strong></p> | ||
<p>此处不适宜访问</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
source "https://rubygems.org" | ||
|
||
# Hello! This is where you manage which Jekyll version is used to run. | ||
# When you want to use a different version, change it below, save the | ||
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: | ||
# | ||
# bundle exec jekyll serve | ||
# | ||
# This will help ensure the proper Jekyll version is running. | ||
# Happy Jekylling! | ||
gem "jekyll", "~> 3.8.4" | ||
|
||
# This is the default theme for new Jekyll sites. You may change this to anything you like. | ||
gem "minima", "~> 2.0" | ||
|
||
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and | ||
# uncomment the line below. To upgrade, run `bundle update github-pages`. | ||
# gem "github-pages", group: :jekyll_plugins | ||
|
||
# If you have any plugins, put them here! | ||
group :jekyll_plugins do | ||
gem "jekyll-feed", "~> 0.6" | ||
end | ||
|
||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem | ||
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] | ||
|
||
# Performance-booster for watching directories on Windows | ||
gem "wdm", "~> 0.1.0" if Gem.win_platform? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.7.0) | ||
public_suffix (>= 2.0.2, < 5.0) | ||
colorator (1.1.0) | ||
concurrent-ruby (1.1.8) | ||
em-websocket (0.5.2) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0.6.0) | ||
eventmachine (1.2.7-x64-mingw32) | ||
ffi (1.14.2-x64-mingw32) | ||
forwardable-extended (2.6.0) | ||
http_parser.rb (0.6.0) | ||
i18n (0.9.5) | ||
concurrent-ruby (~> 1.0) | ||
jekyll (3.8.7) | ||
addressable (~> 2.4) | ||
colorator (~> 1.0) | ||
em-websocket (~> 0.5) | ||
i18n (~> 0.7) | ||
jekyll-sass-converter (~> 1.0) | ||
jekyll-watch (~> 2.0) | ||
kramdown (~> 1.14) | ||
liquid (~> 4.0) | ||
mercenary (~> 0.3.3) | ||
pathutil (~> 0.9) | ||
rouge (>= 1.7, < 4) | ||
safe_yaml (~> 1.0) | ||
jekyll-feed (0.15.1) | ||
jekyll (>= 3.7, < 5.0) | ||
jekyll-sass-converter (1.5.2) | ||
sass (~> 3.4) | ||
jekyll-seo-tag (2.7.1) | ||
jekyll (>= 3.8, < 5.0) | ||
jekyll-watch (2.2.1) | ||
listen (~> 3.0) | ||
kramdown (1.17.0) | ||
liquid (4.0.3) | ||
listen (3.4.1) | ||
rb-fsevent (~> 0.10, >= 0.10.3) | ||
rb-inotify (~> 0.9, >= 0.9.10) | ||
mercenary (0.3.6) | ||
minima (2.5.1) | ||
jekyll (>= 3.5, < 5.0) | ||
jekyll-feed (~> 0.9) | ||
jekyll-seo-tag (~> 2.1) | ||
pathutil (0.16.2) | ||
forwardable-extended (~> 2.6) | ||
public_suffix (4.0.6) | ||
rb-fsevent (0.10.4) | ||
rb-inotify (0.10.1) | ||
ffi (~> 1.0) | ||
rouge (3.26.0) | ||
safe_yaml (1.0.5) | ||
sass (3.7.4) | ||
sass-listen (~> 4.0.0) | ||
sass-listen (4.0.0) | ||
rb-fsevent (~> 0.9, >= 0.9.4) | ||
rb-inotify (~> 0.9, >= 0.9.7) | ||
tzinfo (2.0.4) | ||
concurrent-ruby (~> 1.0) | ||
tzinfo-data (1.2021.1) | ||
tzinfo (>= 1.0.0) | ||
wdm (0.1.1) | ||
|
||
PLATFORMS | ||
x64-mingw32 | ||
|
||
DEPENDENCIES | ||
jekyll (~> 3.8.4) | ||
jekyll-feed (~> 0.6) | ||
minima (~> 2.0) | ||
tzinfo-data | ||
wdm (~> 0.1.0) | ||
|
||
BUNDLED WITH | ||
2.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2020 ShrekShao | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
# 超业余足球联赛网站生成器 | ||
# Super Unprofessional League Website Generator | ||
|
||
By shrekshao狄学长 | ||
|
||
[EN](docs/EN.md) | [简体中文](#) | ||
|
||
[示例](https://super-unprofessional-league.github.io/super-unprofessional-league-website/) | ||
|
||
一个基于Jekyll的静态网站生成器,转为建造超业余足球联赛网站定制,适用于校园内赛事,社区联赛等。 | ||
|
||
 | ||
|
||
 | ||
|
||
 | ||
|
||
已支持以下功能: | ||
* 多个赛季 | ||
- 联赛(传统积分榜,积分等数据根据比赛信息自动计算) | ||
- 杯赛(小组赛积分榜 + 淘汰赛树状图) | ||
* 比赛页面 | ||
- 比分 | ||
- 各类信息: 日期, 点球决胜,弃权等 | ||
- 比赛事件 | ||
- 进球 | ||
- 乌龙球 | ||
- 点球 | ||
- 红黄牌 | ||
- 换人 | ||
- 照片 | ||
- 视频外链嵌入 | ||
* 球员数据榜 | ||
- 射手榜(进球数根据比赛信息自动计算) | ||
* 队伍页面 | ||
- 球员列表 | ||
- 首发阵容 | ||
- 照片 | ||
* 语言翻译支持 | ||
* 战报,新闻,通知等文章发布 | ||
|
||
|
||
|
||
## 快速开始 | ||
|
||
* 安装 [Jekyll](https://jekyllrb.com/docs/) (参考Jekyll官方文档) | ||
* `bundle install` | ||
* 开发状态下 `bundle exec jekyll serve` | ||
* 生成网站 `bundle exec jekyll build` (`_site/`下) | ||
* `_site/` 目录下 `git init`, push 到 github上或其他服务商来部署(参考 github page 文档等) | ||
* 注意:因为项目使用了自定义Jekyll plugin所以无法使用github自带的自动生成 | ||
|
||
|
||
## 添加你的联赛数据 | ||
|
||
所有比赛相关数据在 `_data/` 目录下 | ||
|
||
所有静态文件(照片等)置于 `assets` 目录下 | ||
|
||
### _data 数据结构示例 | ||
|
||
* _data | ||
- seasons | ||
- 2018-2019 | ||
- config.json (可选,若无则默认为联赛模式) | ||
- teams | ||
* bayern.json | ||
* dortmund.json | ||
- games | ||
* 2018-11-10-1.json | ||
|
||
### teams 队伍数据结构 | ||
|
||
```json | ||
{ | ||
"display_name": "多特蒙德", | ||
"description": "blahblahblah...", | ||
"logo": "bvb09.jpg", | ||
"players": { | ||
"starting": [ | ||
{ | ||
"number": 1, | ||
"name": "布尔基", | ||
"img": "placeholder-player.jpg", | ||
"position": "门将" | ||
} | ||
,{ | ||
"number": 28, | ||
"name": "维特塞尔", | ||
"img": "placeholder-player.jpg", | ||
"position": "中场" | ||
} | ||
,{ | ||
"number": 11, | ||
"name": "罗伊斯", | ||
"img": "placeholder-player.jpg", | ||
"position": "中场" | ||
} | ||
], | ||
"subs": [ | ||
{ | ||
"number": 9, | ||
"name": "哈兰德", | ||
"img": "placeholder-player.jpg", | ||
"position": "前锋" | ||
} | ||
|
||
] | ||
}, | ||
"squad": { | ||
"GK": 1, | ||
"CDM": 28, | ||
"CF": 11 | ||
} | ||
} | ||
``` | ||
|
||
* 队伍文件名似乎暂时只支持ascii英文字符 | ||
* 阵容位置缩写 (`GK`, `CM`, etc) 对应到css里预设的位置 ([在这里看全部可用位置缩写](https://github.com/super-unprofessional-league/super-unprofessional-league-website/blob/master/assets/css/custom-football-squad.css#L70)) | ||
|
||
### games 比赛数据结构 | ||
|
||
```json | ||
{ | ||
"date": "2018/11/10/9:30", | ||
"type": "group-r1", | ||
"home": { | ||
"key": "dortmund", | ||
"score": 3, | ||
"events": [ | ||
{"type": "yellow", "time": 29, "player": "Weigl"}, | ||
{"type": "yellow", "time": 36, "player": "Akanji"}, | ||
{"type": "off", "time": 46, "player": "Weigl"}, | ||
{"type": "sub", "time": 46, "player": "Dahoud"}, | ||
{"type": "penalty", "time": 49, "player": "Reus"}, | ||
{"type": "goal", "time": 67, "player": "Reus"}, | ||
{"type": "goal", "time": 73, "player": "Paco Alcacer"} | ||
] | ||
}, | ||
"away": { | ||
"key": "bayern", | ||
"score": 2, | ||
"events": [ | ||
{"type": "goal", "time": 26, "player": "Lewandowski"}, | ||
{"type": "goal", "time": 52, "player": "Lewandowski"}, | ||
{"type": "yellow", "time": 55, "player": "Ribery"} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
* `type` string若包含`group`则为小组赛阶段比赛 | ||
|
||
### config.json 联赛设置 | ||
|
||
```json | ||
{ | ||
"display_name": "健雄杯2013", | ||
"type": "group + knockout", | ||
"group_stage": { | ||
"A": [ | ||
"613111", | ||
"610122", | ||
"610121", | ||
"610111" | ||
], | ||
"B": [ | ||
"611111", | ||
"613121", | ||
"610113", | ||
"610112" | ||
] | ||
}, | ||
"knockout_stage": [ | ||
[ | ||
["610131", "610111", "2013-10-21-1"], | ||
|
||
["613111", "610112", "2013-10-20-1"], | ||
|
||
["613131", "611131", ""], | ||
|
||
["610132", "611111", "2013-10-15-1"] | ||
], | ||
[ | ||
["610111", "613111", "2013-11-14-1"], | ||
|
||
["611131", "610132", "2013-11-15-1"] | ||
], | ||
[ | ||
["613111","611131", "2013-11-17-1"] | ||
] | ||
], | ||
"winner": "613111", | ||
"rules": "*大一球队直接进入淘汰赛\n*各小组前两名出线" | ||
} | ||
``` | ||
|
||
* 若无此文件则赛季默认为联赛 | ||
* `type` | ||
- `league` | ||
- `group + knockout` | ||
* 若为 `group + knockout` | ||
* `group_stage` 为 `小组名` => `队伍文件名(无后缀)` | ||
* `knockout_stage`每个数组轮次为2的幂次递减,... 16, 8, 4, 2, 1 | ||
* `["主队文件名(无后缀)", "客队文件名(无后缀)", "比赛文件名(无后缀)"]` |
Oops, something went wrong.