Skip to content

Commit 3bc3f02

Browse files
committed
upd
1 parent 1b77a7a commit 3bc3f02

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/build-manual.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ on:
44
push:
55
branches:
66
- master
7+
paths:
8+
- 'manual/**'
79
pull_request:
810
branches:
911
- master
12+
paths:
13+
- 'manual/**'
1014
workflow_dispatch:
1115

1216
permissions:
@@ -71,18 +75,12 @@ jobs:
7175
path: ${{ env.FONT_DIR }}
7276
key: fonts-${{ runner.os }}-${{ env.FONT_VERSION }}
7377

74-
- uses: actions-rs/toolchain@v1
75-
with:
76-
toolchain: stable
77-
override: true
78-
79-
- uses: typst-community/setup-typst@v4
80-
8178
- name: Build manual
79+
- uses: typst-community/setup-typst@v4
8280
run: |
8381
typst compile "manual/src/content/manual.typ" "manual/llmanual.pdf" --features html
8482
85-
- name: Upload PDF as artifact
83+
- name: Upload PDF
8684
uses: actions/upload-artifact@v4
8785
with:
8886
name: llmanual.pdf

manual/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
然后使用 Typst CLI 或者 Tinymist Typst 编译 `manual/src/content/manual.typ`,将生成出来的 pdf 重命名并放在 `manual/llmanual.pdf`。注意,需要开启 `--features html`
1717

18+
如果只是小幅度的修改,也可以在网页端的 artifact 内获取由 CI 编译的 pdf 直接替换。
19+
1820
线上分发使用使用 astro+[astro-typst](https://github.com/OverflowCat/astro-typst)+[starlight theme](https://starlight.astro.build/) 部署于线上。
1921

2022
`docs` 文件夹下的文件:

0 commit comments

Comments
 (0)