File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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
1216permissions :
@@ -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
Original file line number Diff line number Diff line change 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 ` 文件夹下的文件:
You can’t perform that action at this time.
0 commit comments