Skip to content

Commit c16ebfe

Browse files
authored
Merge branch 'main' into minimal-mistakes-plus
2 parents 243bd82 + 0907ca4 commit c16ebfe

28 files changed

Lines changed: 382 additions & 299 deletions

.github/workflows/pr-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ concurrency:
1010
group: pr-preview
1111
cancel-in-progress: false
1212
env:
13-
GITHUB_PR_NUMBER: ${{ github.event_name == 'issue_comment' && github.event.issue.number || github.event.pull_request.number }}
1413
JEKYLL_ENV: production
14+
ENABLE_WEBP_AUTO_CONVERSION: "true"
15+
GITHUB_PR_NUMBER: ${{ github.event_name == 'issue_comment' && github.event.issue.number || github.event.pull_request.number }}
1516
jobs:
1617
cache-refresh:
1718
if: ${{ !github.event.repository.fork && github.event_name == 'schedule' && github.event.schedule == '0 0 */6 * *' }}

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ gem "wdm", "0.2.0", :platforms => [:windows]
3232
gem "http_parser.rb", "0.8.0", :platforms => [:jruby]
3333

3434
# plugin dependencies
35-
gem "nokogiri", "1.19.1"
36-
gem "addressable", "2.8.7"
35+
gem "webp-ffi", "0.4.0" if ENV["ENABLE_WEBP_AUTO_CONVERSION"] == "true" || ENV["DRONE"] == "true"

_changelogs/dev/3.13/3.13.0.340.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
---
3+
4+
[详细版本介绍 (Bilibili)](https://www.bilibili.com/opus/1190023991956340740)
5+
6+
- GP-5930: 增强对 Vulkan 的支持 (by Glavo, 3gf8jv4dv)
7+
- GP-5931: 支持将新格式快照版本号翻译为文言 (by Glavo)
8+
- GP-5934: 更新游戏内容下载页游戏版本列表至 26.1.2 (by Glavo)
9+
10+
错误修复:
11+
12+
- GP-5935: 修复日志窗口可能意外的显示横向滚动条的问题 (by Glavo)

_config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# data_dir: _data
1010
# includes_dir: _includes
1111
# cache_dir: .jekyll-cache
12+
disable_disk_cache: true
1213
sass:
1314
# sass_dir: _sass
1415
# minimal-mistakes
@@ -105,10 +106,7 @@ defaults:
105106
path: ""
106107
values:
107108
layout: document
108-
read_time: false
109-
author_profile: false
110-
share: false
111-
comments: false
109+
show_date: true
112110
sidebar:
113111
nav: docs
114112
hits: true

_data/plugins/auto_alert.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

_data/settings.yaml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@ appearance_color:
55
- light
66
- dark
77
- auto
8-
appearance_skin_light:
8+
appearance_color_switcher:
99
type: radio
10-
default: default
10+
default: enable
11+
options:
12+
- enable
13+
- disable
14+
appearance_skin:
15+
type: multi-radio
16+
children:
17+
light:
18+
default: default
19+
dark:
20+
default: dark
1121
options:
1222
- default
1323
- air
@@ -23,21 +33,9 @@ appearance_skin_light:
2333
- catppuccin-frappe
2434
- catppuccin-macchiato
2535
- catppuccin-mocha
26-
appearance_skin_dark:
36+
miscellaneous_hits:
2737
type: radio
28-
default: dark
38+
default: enable
2939
options:
30-
- default
31-
- air
32-
- aqua
33-
- contrast
34-
- dark
35-
- dirt
36-
- neon
37-
- mint
38-
- plum
39-
- sunrise
40-
- catppuccin-latte
41-
- catppuccin-frappe
42-
- catppuccin-macchiato
43-
- catppuccin-mocha
40+
- enable
41+
- disable

_data/ui-text.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
zh:
2+
follow_label: false

_layouts/document.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
layout: single
33
---
44

5-
{% if jekyll.environment == 'production' and page.hits %}
6-
<img src="https://hits.zkitefly.eu.org/?tag={{ page.url | absolute_url | url_encode }}" alt="Hits" decoding="async">
7-
{% endif %}
8-
9-
<div class="notice--info">
10-
<p>本文由 {{ page.author | default: '未署名用户' }} 创建{% if page.contributors %},并由 {{ page.contributors | join: ' ' }} 编辑{% endif %}。</p>
11-
</div>
12-
135
{{ content }}
6+
7+
{% if page.author or page.contributors or jekyll.environment == 'production' and page.hits %}
8+
<script src="{{ '/assets/js/meta.js' | relative_url }}"></script>
9+
<script>
10+
{%- if page.author %}appendMeta("{{ page.author }}", "fas fa-user-pen");{% endif -%}
11+
{%- for contributor in page.contributors %}appendMeta("{{ contributor }}", "fas fa-user-pen");{% endfor -%}
12+
{%- if jekyll.environment == 'production' and page.hits %}hits("{{ page.url | absolute_url | url_encode }}");{% endif -%}
13+
</script>
14+
{% endif %}

_layouts/settings.html

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,55 @@
11
---
2-
layout: document
2+
layout: single
33
---
44

5-
{% for group in page.data %}
6-
7-
{% capture notice %}
8-
9-
## {{ group.title }}
10-
5+
{%- for group in page.data %}
6+
<h2 id="{{ group.title }}">{{ group.title }}</h2>
117
{% for pair in group.settings %}
128
{% assign name = pair[0] %}
139
{% assign value = pair[1] %}
1410
{% assign setting = site.data.settings[name] %}
15-
16-
{% if setting.type == 'radio' %}
1711
<div class="notice">
18-
<ul class="task-list">
19-
<li><strong>{{ value.title }}</strong></li>
20-
<li>{{ value.description }}</li>
21-
{% for option in setting.options %}
22-
<li class="task-list-item">
23-
<input type="radio" class="task-list-item-checkbox" name="{{ name }}" value="{{ option }}" id="{{ name }}_{{ option }}"{% if setting.default == option %} checked{% endif %}><label for="{{ name }}_{{ option }}">{{ value.options[option] }}</label>
24-
</li>
25-
{% endfor %}
26-
</ul>
12+
<h3 id="{{ name }}">{{ value.title }}</h3>
13+
{% if value.description %}<p>{{ value.description }}</p>{% endif %}
14+
{% if setting.type == 'radio' %}
15+
{% for option in setting.options %}
16+
<label>
17+
<input type="radio"{% if setting.default == option %} checked{% endif %} class="setting-item" name="{{ name }}" value="{{ option }}">
18+
{{ value.options[option] }}
19+
</label>
20+
{% endfor %}
21+
{% elsif setting.type == 'multi-radio' %}
22+
<table class="setting-multi-radio">
23+
<thead>
24+
<tr>
25+
<th>{{ value.title }}</th>
26+
{% for item in setting.children %}
27+
{% capture item_name %}{{ item[0] }}{% endcapture %}
28+
<th>{{ value.children[item_name] }}</th>
29+
{% endfor %}
30+
</tr>
31+
</thead>
32+
<tbody>
33+
{% for option in setting.options %}
34+
<tr>
35+
<th>{{ value.options[option] }}</th>
36+
{% for item in setting.children %}
37+
<td><input class="setting-item"{% if item[1].default == option %} checked{% endif %} type="radio" name="{{ name }}.{{ item[0] }}" value="{{ option }}"></td>
38+
{% endfor %}
39+
</tr>
40+
{% endfor %}
41+
</tbody>
42+
</table>
43+
{% endif %}
2744
</div>
45+
{% endfor %}
46+
{% endfor %}
2847

2948
<script>
30-
settings.onChange("{{ name }}", function (newValue, oldValue) {
31-
var list = document.getElementsByName("{{ name }}");
32-
for (var i = 0; i < list.length; i++) {
33-
list[i].checked = list[i].value === newValue;
34-
list[i].onchange = function () {
35-
if (this.checked) {
36-
settings.set(this.name, this.value);
37-
}
38-
}
39-
}
40-
});
49+
for (const settingItem of document.getElementsByClassName("setting-item")) {
50+
settingItem.addEventListener("change", ({ target }) => settings.set(target.name, target.value));
51+
settings.onChange(settingItem.name, (value) => settingItem.type === "radio" && (settingItem.checked = settingItem.value === value));
52+
}
4153
</script>
42-
{% endif %}
43-
{% endfor %}
44-
{% endcapture %}
45-
{{ notice | markdownify }}
46-
{% endfor %}
54+
55+
<style>.notice label input { display: inline }</style>

_plugins/auto-alert.rb

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)