Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for incongruent commit messages #119

Closed
wants to merge 93 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
245cdd0
typo(01/005:121, 01/012:83, 01/027:41, 01/029:79): 修正错别字 (#29)
Zh40Le1ZOOB Mar 23, 2024
2885589
refactor(PDF): update Typst template following the mdbook-typst-pdf (…
Zh40Le1ZOOB Mar 23, 2024
7b9e5df
ci: 使用 semantic-release 自动发布电子书 (#23)
Zh40Le1ZOOB Mar 25, 2024
3504887
chore(convention): 添加 `ci` 提交类型,更改 `chore` 类型适用范围 (#26)
Zh40Le1ZOOB Mar 25, 2024
2775a00
ambig(07/023:21; 07/028:89; 07/029:5): 修正方莜莜的名字错写为“方筱筱”的问题 (#30)
Zh40Le1ZOOB Mar 25, 2024
93d3a4d
style(*): 修正换行错误 (#31)
Zh40Le1ZOOB Mar 25, 2024
9fb48a7
punctua(*): 修正引号使用错误 (#32)
Zh40Le1ZOOB Mar 25, 2024
7423207
Revert "ci: 使用 semantic-release 自动发布电子书 (#23)" (#33)
Cryolitia Mar 25, 2024
bc32c61
ci: 使用 semantic-release 自动发布电子书
Zh40Le1ZOOB Mar 25, 2024
12655ee
chore(lockfile): 添加缺失软件包,更新软件包版本
Zh40Le1ZOOB Mar 26, 2024
e4f9803
typo(*): 修正错别字与多字少字
epifirumu Mar 26, 2024
3cc2843
ci: 让 semantic-release 闭嘴
Zh40Le1ZOOB Mar 27, 2024
1e46a21
Revert "ci: 让 semantic-release 闭嘴"
Cryolitia Mar 27, 2024
f59c87a
chore: 更新 URL 和版权信息
Zh40Le1ZOOB Mar 29, 2024
1824563
fix: 修复部分阅读器无法打开epub版书籍的问题
epifirumu Mar 30, 2024
41c546c
refactor(build): 迁移至 pnpm
Zh40Le1ZOOB Apr 3, 2024
2ad5912
typo(01/003:23): 修正错别字
Apr 5, 2024
3d276d4
ci: fix build
Cryolitia Apr 6, 2024
8744898
fix(build): fix build
Zh40Le1ZOOB Apr 6, 2024
3a5bcc2
feat: introduce Nix to Github Action
Cryolitia Apr 8, 2024
f494a2c
refactor: imporve ci
Cryolitia Apr 8, 2024
a50a217
ci: clean code
Zh40Le1ZOOB Mar 27, 2024
d6cfeec
chore(convention): add alias for Type `refactor`
Zh40Le1ZOOB Apr 10, 2024
74d8059
style(03/205:115; 10/index): 移除多余字符
Zh40Le1ZOOB Apr 10, 2024
333a5b8
chore: 添加欢迎反馈的说明
Zh40Le1ZOOB Apr 8, 2024
f390bf0
ci: fix flake update, using environment
Cryolitia Apr 12, 2024
29b4252
ci(lint): add lint workflow
Zh40Le1ZOOB Apr 8, 2024
5a3f2df
flake update: 2024-04-12T04:21:01
Cryolitia Apr 12, 2024
8967e2a
chore: remove giscus
Zh40Le1ZOOB Apr 13, 2024
71db306
flake update: 2024-04-19T02:40:30
Zh40Le1ZOOB Apr 19, 2024
73c1ecf
ci: split workflow [skip ci]
Zh40Le1ZOOB Mar 27, 2024
cc1ba41
ci: change author of update flake commit
Zh40Le1ZOOB Apr 23, 2024
fcda36a
flake update: 2024-04-23T05:16:54
github-actions[bot] Apr 23, 2024
8e38024
chore: update pnpm lock file
Zh40Le1ZOOB Apr 23, 2024
343542a
ci: fix release workflow
Zh40Le1ZOOB Apr 23, 2024
4409bb1
flake update: 2024-04-26T02:37:36
github-actions[bot] Apr 26, 2024
59ea260
ci: N/A
Cryolitia Apr 26, 2024
0c1f1f5
chore: flake update 2024-05-03T02:40:13
github-actions[bot] May 3, 2024
8d36e62
chore: flake update 2024-05-10T02:42:55
github-actions[bot] May 10, 2024
1d545ee
chore(convention): add type `dep`, deprecate type `refactor`
Zh40Le1ZOOB May 10, 2024
ba59ee3
ci: use DeterminateSystems
Cryolitia May 10, 2024
b5e6d4b
dep: flake update 2024-05-10T11:14:50
github-actions[bot] May 10, 2024
b65b9fe
dep: flake update 2024-05-17T02:40:34
github-actions[bot] May 17, 2024
ba4a974
ambig(02/098:33): 修正逻辑错误
May 19, 2024
9b0c59b
ambig(03/333:99): 修正逻辑错误
tankua0 May 23, 2024
90edcc3
dep: flake update 2024-05-24T02:42:18
github-actions[bot] May 24, 2024
a8e7df7
ambig(01/002:45): 修正不当用词
Zh40Le1ZOOB May 19, 2024
3a1b0a8
typo(02/101:69): 修正错别字
Nixie24 May 25, 2024
8c18e4f
typo(02/132:77): 修正少字
WindowsMEMZ May 29, 2024
de09251
ambig(02/118:97): 修正逻辑错误
Nixie24 May 29, 2024
a59a8de
typo(02/174:17): 修正少字
WindowsMEMZ May 30, 2024
9234e52
ambig(03/211:41): 修正逻辑错误
WindowsMEMZ May 30, 2024
4eba1d0
dep: flake update 2024-05-31T02:43:13
github-actions[bot] May 31, 2024
82c27c6
typo(03/237:85): 修正错别字
WindowsMEMZ May 31, 2024
b16afd6
chore: 添加指向 GitHub Discussions 的评论区提示 (#75)
Zh40Le1ZOOB Jun 1, 2024
e83ef39
typo(03/259:109): 修正错别字
WindowsMEMZ Jun 2, 2024
4d09caf
ci: 删除运行计划时间注释 (#77)
WindowsMEMZ Jun 2, 2024
eb3420a
dep: flake update 2024-06-02T23:49:51
github-actions[bot] Jun 2, 2024
472d994
typo(02/152:77): 修正错别字
Nixie24 Jun 3, 2024
4206d32
typo(02/183:129): 修正错别字
Nixie24 Jun 3, 2024
e8aa117
typo(02/183:131): 修正错别字
Nixie24 Jun 15, 2024
8d800d8
typo(02/183:133): 修正错别字
Zh40Le1ZOOB Jun 4, 2024
a24d9c1
typo(03/201:55): 修正缺字
Zh40Le1ZOOB Jun 4, 2024
6972a6b
typo(03/209:35): 修正错别字
Zh40Le1ZOOB Jun 4, 2024
f474cb2
typo(03/275:13): 修正错别字
WindowsMEMZ Jun 4, 2024
c75baaa
typo(03/324:41): 修正错别字
WindowsMEMZ Jun 4, 2024
20d57b3
typo(03/332:7): 修正错别字
WindowsMEMZ Jun 4, 2024
2de71bd
typo(03/350:19,21): 修正错别字
WindowsMEMZ Jun 4, 2024
14eb6ff
typo(03/370:73): 修正错别字
WindowsMEMZ Jun 4, 2024
58d3621
typo(04/401:165): 修正错别字
WindowsMEMZ Jun 4, 2024
5a96d06
typo(03/381:99): 修正多字
WindowsMEMZ Jun 4, 2024
2cbaace
dep: flake update 2024-06-07T02:46:06
github-actions[bot] Jun 7, 2024
cc1f92b
dep: flake update 2024-06-14T02:45:14
github-actions[bot] Jun 14, 2024
3f538a0
ambig(02/200:105): 修正逻辑错误
epifirumu Jun 16, 2024
e1d4103
ambig(03/238:7; 03/242:133; 03/257:97): 修正角色姓名错误
epifirumu Jun 16, 2024
20d9d6e
typo(03/249:67; 03/256:119; 03/312:149): 修正错别字
epifirumu Jun 16, 2024
eaa145b
chore(convention): 细化提交规范,优化提交规范样式
Zh40Le1ZOOB Jun 16, 2024
f0c298a
dep: flake update 2024-06-21T18:31:51
github-actions[bot] Jun 21, 2024
59b13db
dep: flake update 2024-06-28T02:46:25
github-actions[bot] Jun 28, 2024
733902a
typo(01/023:53): 修正多字
yingluom Jun 30, 2024
0df1a78
typo(02/198:141): 修正错别字
Nixie24 Jul 3, 2024
c60a90d
Revert "typo(03/381:99): 修正多字"
Zh40Le1ZOOB Jul 3, 2024
ac9e0b6
ambig(03/241:47): 修正不当用词 (#111)
Zh40Le1ZOOB Jul 3, 2024
51a0b1d
typo(02/103:15): 修正错别字
Zh40Le1ZOOB Jul 3, 2024
e820626
dep: flake update 2024-07-05T02:44:53
github-actions[bot] Jul 5, 2024
56fea80
chore: update copyright text, add authentication image (#113)
Zh40Le1ZOOB Jul 8, 2024
85d8ef8
dep: flake update 2024-07-12T02:46:19
github-actions[bot] Jul 12, 2024
334398e
ci: suppress inactive repo update weekly
Cryolitia Jul 16, 2024
5ea686f
typo(03/367:109): 修正错别字
tankua0 Jul 17, 2024
3a30516
chore: add title alias
Zh40Le1ZOOB Jul 18, 2024
12e6f60
typo(05/636:37): 修正错别字
iuu6 Aug 2, 2024
99a6491
typo(05/636:117): 修正多字
iuu6 Aug 2, 2024
2485a1f
grammar(05/636:115): 修正语法错误
Zh40Le1ZOOB Aug 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .autocorrectrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# yaml-language-server: $schema=https://huacnlee.github.io/autocorrect/schema.json
textRules:
哆啦A梦: 0
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.github @Cryolitia
46 changes: 46 additions & 0 deletions .github/workflows/build-ebook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build ebook

on:
workflow_dispatch:
workflow_call:
pull_request:

concurrency:
group: ebook-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Setup cachix
uses: cachix/cachix-action@v14
with:
name: cryolitia
extraPullNames: nix-community

- name: Print flake metadata
run: nix flake metadata --accept-flake-config

- name: Build
run: |
sed -e "s/BUILD_TIME/$(TZ=Asia/Shanghai date -Isecond)/" -e "s/COMMIT_SHA/${{ github.sha }}/" -i src/about.md
NIXPKGS_ALLOW_UNFREE=1 nix build .# --impure

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ebook
path: |
result/share/transky-book/book/epub/药娘的天空.epub
result/share/transky-book/book/mobi/药娘的天空.mobi
result/share/transky-book/book/typst-pdf/药娘的天空.pdf
44 changes: 44 additions & 0 deletions .github/workflows/build-web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build website

on:
workflow_dispatch:
workflow_call:
pull_request:

concurrency:
group: web-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: latest
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: current

- name: Build
env:
NODE_OPTIONS: --max_old_space_size=4096
run: |
sed -e "s/BUILD_TIME/$(TZ=Asia/Shanghai date -Isecond)/" -e "s/COMMIT_SHA/${{ github.sha }}/" -i src/about.md
pnpm run build

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: website
path: .vitepress/dist/
92 changes: 0 additions & 92 deletions .github/workflows/build.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint

on:
pull_request:

permissions:
pull-requests: write

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: AutoCorrect
uses: huacnlee/autocorrect-action@main

- name: Report ReviewDog
if: failure()
uses: huacnlee/autocorrect-action@main
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
reviewdog: true
43 changes: 43 additions & 0 deletions .github/workflows/publish-cloudflare.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish website to cloudflare

on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- ".github/workflows/build-web.yaml"
- ".github/workflows/publish-cloudflare.yaml"
- ".vitepress/**"
- "src/**"
- "package.json"
- "pnpm-lock.yaml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
uses: ./.github/workflows/build-web.yaml

publish:
needs: build
runs-on: ubuntu-latest
environment: cloudflare-pages
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: website
path: website

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_PAGES_ACCOUNT }}
projectName: transky-book
directory: website
wranglerVersion: 3
62 changes: 62 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Publish ebook to release

on:
workflow_dispatch:
push:
branches:
- "main"
- "stable"
paths:
- ".github/workflows/build-ebook.yaml"
- ".github/workflows/publish-release.yaml"
- ".releaserc"
- "src/**"
- "theme/**"
- "book.toml"
- "package.json"
- "pnpm-lock.yaml"
- "flake.nix"
- "flake.lock"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
uses: ./.github/workflows/build-ebook.yaml

publish:
permissions:
contents: write
needs: build
if: ${{ !(github.event_name == 'push' && contains(github.event.head_commit.message, '[skip release]')) }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: latest
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: current

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ebook
path: ebook

- name: Release ebook
env:
GITHUB_TOKEN: ${{ github.token }}
run: pnpm exec semantic-release
37 changes: 0 additions & 37 deletions .github/workflows/publish.yaml

This file was deleted.

Loading
Loading