Skip to content

Commit 54ecce7

Browse files
committed
add new features
1 parent 39c4dfa commit 54ecce7

File tree

138 files changed

+9307
-2256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+9307
-2256
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: 问题报告
2+
description: 使用过程中遇到的BUG
3+
labels: ["bug"]
4+
body:
5+
- type: "textarea"
6+
id: describe
7+
attributes:
8+
label: 问题描述
9+
description: |
10+
详细描述问题或者错误,如有报错请粘贴于此。
11+
validations:
12+
required: true
13+
- type: "textarea"
14+
id: step
15+
attributes:
16+
label: 复现步骤
17+
description: |
18+
在问题发生时你做了什么
19+
placeholder: |
20+
1. Step1
21+
2. Step2
22+
3. etc.
23+
...
24+
validations:
25+
required: false
26+
- type: textarea
27+
validations:
28+
required: true
29+
attributes:
30+
label: 你的 Hexo 和 插件版本
31+
description: |
32+
请运行 `npm ls --depth 0` 并将结果粘贴在此处
33+
placeholder: npm ls --depth 0
34+
# value:
35+
render: text
36+
- type: textarea
37+
validations:
38+
required: false
39+
attributes:
40+
label: 你的网站的 `_config.yml` (可选)
41+
description: |
42+
请将你的 `_config.yml` 粘贴在此处 (注意: 请勿包含敏感信息)
43+
placeholder: _config.yml
44+
# value: |
45+
render: yaml
46+
- type: textarea
47+
validations:
48+
required: false
49+
attributes:
50+
label: 你的网站的 `_config.reimu.yml` (可选)
51+
description: |
52+
请将你的 `_config.reimu.yml` 粘贴在此处 (注意: 请勿包含敏感信息)
53+
placeholder: _config.reimu.yml
54+
# value: |
55+
render: yaml
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Bug Report
2+
description: Report a bug encountered while using reimu
3+
labels: ["bug"]
4+
body:
5+
- type: "textarea"
6+
id: describe
7+
attributes:
8+
label: Description
9+
description: |
10+
Describe the issue in detail, and paste any error messages here
11+
validations:
12+
required: true
13+
- type: "textarea"
14+
id: step
15+
attributes:
16+
label: Reproduction Steps
17+
description: |
18+
What did you do when the issue occurred
19+
placeholder: |
20+
1. Step1
21+
2. Step2
22+
3. etc.
23+
...
24+
validations:
25+
required: false
26+
- type: textarea
27+
validations:
28+
required: true
29+
attributes:
30+
label: Your Hexo and Plugin Versions
31+
description: |
32+
Please run `npm ls --depth 0` and paste the result here
33+
placeholder: npm ls --depth 0
34+
# value:
35+
render: text
36+
- type: textarea
37+
validations:
38+
required: false
39+
attributes:
40+
label: Your Site's `_config.yml` (optional)
41+
description: |
42+
Please paste your `_config.yml` here (Note: Do not include sensitive information)
43+
placeholder: _config.yml
44+
# value: |
45+
render: yaml
46+
- type: textarea
47+
validations:
48+
required: false
49+
attributes:
50+
label: Your Site's `_config.reimu.yml` (optional)
51+
description: |
52+
Please paste your `_config.reimu.yml` here (Note: Do not include sensitive information)
53+
placeholder: _config.reimu.yml
54+
# value: |
55+
render: yaml
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: 功能请求
2+
description: 对 reimu 的建议或功能请求
3+
labels: ["enhancement"]
4+
body:
5+
- type: "textarea"
6+
id: describe
7+
attributes:
8+
label: 建议描述
9+
description: |
10+
详细描述建议,如有参考链接可粘贴于此
11+
validations:
12+
required: true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Feature Request
2+
description: Suggest a feature or enhancement for reimu
3+
labels: ["enhancement"]
4+
body:
5+
- type: "textarea"
6+
id: describe
7+
attributes:
8+
label: Description
9+
description: |
10+
Describe the feature in detail, and paste any reference links here
11+
validations:
12+
required: true
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: 问题讨论 & Ask a Question, Help, Discuss
4+
url: https://github.com/D-Sketon/hexo-theme-reimu/discussions
5+
about: I have a question, help for hexo-theme-reimu (e.g. Customize)
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
name: Benchmark
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
bench-hexo-6:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
path: reimu
20+
21+
- name: Checkout external repository
22+
uses: actions/checkout@v4
23+
with:
24+
repository: D-Sketon/reimu-playground
25+
path: reimu-playground
26+
27+
- name: Checkout external Many Posts
28+
uses: actions/checkout@v4
29+
with:
30+
repository: hexojs/hexo-many-posts
31+
path: hexo-many-posts
32+
33+
- name: Copy files to target directory
34+
run: |
35+
cp -r reimu/* reimu-playground/themes/reimu
36+
mkdir -p reimu-playground/source/_posts/hexo-many-posts1
37+
mkdir -p reimu-playground/source/_posts/hexo-many-posts2
38+
mkdir -p reimu-playground/source/_posts/hexo-many-posts3
39+
mkdir -p reimu-playground/source/_posts/hexo-many-posts4
40+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts1
41+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts2
42+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts3
43+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts4
44+
45+
- name: Install Node
46+
uses: actions/setup-node@v2
47+
with:
48+
node-version: "22"
49+
50+
- name: Install dependencies
51+
run: |
52+
cd reimu-playground
53+
npm install
54+
npm i hexo@6
55+
56+
- name: benchmark
57+
run: |
58+
cd reimu-playground
59+
npx bench-hexo benchmark
60+
npx bench-hexo memory -c 20 -s 200
61+
npx bench-hexo memory -c 20 -s 200 --no-clean
62+
bench-hexo-7:
63+
runs-on: ubuntu-latest
64+
65+
steps:
66+
- name: Checkout repository
67+
uses: actions/checkout@v4
68+
with:
69+
path: reimu
70+
71+
- name: Checkout external repository
72+
uses: actions/checkout@v4
73+
with:
74+
repository: D-Sketon/reimu-playground
75+
path: reimu-playground
76+
77+
- name: Checkout external Many Posts
78+
uses: actions/checkout@v4
79+
with:
80+
repository: hexojs/hexo-many-posts
81+
path: hexo-many-posts
82+
83+
- name: Copy files to target directory
84+
run: |
85+
cp -r reimu/* reimu-playground/themes/reimu
86+
mkdir -p reimu-playground/source/_posts/hexo-many-posts1
87+
mkdir -p reimu-playground/source/_posts/hexo-many-posts2
88+
mkdir -p reimu-playground/source/_posts/hexo-many-posts3
89+
mkdir -p reimu-playground/source/_posts/hexo-many-posts4
90+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts1
91+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts2
92+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts3
93+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts4
94+
95+
- name: Install Node
96+
uses: actions/setup-node@v2
97+
with:
98+
node-version: "22"
99+
100+
- name: Install dependencies
101+
run: |
102+
cd reimu-playground
103+
npm install
104+
105+
- name: benchmark
106+
run: |
107+
cd reimu-playground
108+
npx bench-hexo benchmark
109+
npx bench-hexo memory -c 20 -s 200
110+
npx bench-hexo memory -c 20 -s 200 --no-clean
111+
bench-hexo-next:
112+
runs-on: ubuntu-latest
113+
114+
steps:
115+
- name: Checkout repository
116+
uses: actions/checkout@v4
117+
with:
118+
path: reimu
119+
120+
- name: Checkout external repository
121+
uses: actions/checkout@v4
122+
with:
123+
repository: D-Sketon/reimu-playground
124+
path: reimu-playground
125+
126+
- name: Checkout external Many Posts
127+
uses: actions/checkout@v4
128+
with:
129+
repository: hexojs/hexo-many-posts
130+
path: hexo-many-posts
131+
132+
- name: Copy files to target directory
133+
run: |
134+
cp -r reimu/* reimu-playground/themes/reimu
135+
mkdir -p reimu-playground/source/_posts/hexo-many-posts1
136+
mkdir -p reimu-playground/source/_posts/hexo-many-posts2
137+
mkdir -p reimu-playground/source/_posts/hexo-many-posts3
138+
mkdir -p reimu-playground/source/_posts/hexo-many-posts4
139+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts1
140+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts2
141+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts3
142+
cp -r hexo-many-posts/* reimu-playground/source/_posts/hexo-many-posts4
143+
144+
- name: Install Node
145+
uses: actions/setup-node@v2
146+
with:
147+
node-version: "22"
148+
149+
- name: Install dependencies
150+
run: |
151+
cd reimu-playground
152+
npm install
153+
npm i hexo@https://github.com/D-Sketon/hexo.git#chore/bench
154+
155+
- name: benchmark
156+
run: |
157+
cd reimu-playground
158+
npx bench-hexo benchmark
159+
npx bench-hexo memory -c 20 -s 200
160+
npx bench-hexo memory -c 20 -s 200 --no-clean
161+

themes/reimu/.github/workflows/surge.yml

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

0 commit comments

Comments
 (0)