File tree 3 files changed +3
-38
lines changed
3 files changed +3
-38
lines changed Original file line number Diff line number Diff line change 40
40
github_token : ${{ secrets.GITHUB_TOKEN }}
41
41
publish_dir : ./site
42
42
43
- - name : Cache Fonts
44
- uses : actions/cache@v4
45
- id : cache-fonts
46
- with :
47
- path : fonts
48
- key : ${{ runner.os }}-fonts-noto_sans_sc-lxgwwenkai
49
-
50
- - name : Download Fonts
51
- if : steps.cache-fonts.outputs.cache-hit != 'true'
52
- run : |
53
- if [ -f "${{ env.TYPST_FONT_PATH }}/NotoSansSC-Regular.ttf" ]; then
54
- echo "Font already existed."
55
- else
56
- # Download font metadata
57
- mkdir -p cv
58
- curl -sL "https://fonts.google.com/download/list?family=Noto%20Sans%20SC" > cv/noto_sans_sc_raw.txt
59
-
60
- # Remove ")]}'" from the beginning of the file
61
- tail -c +5 cv/noto_sans_sc_raw.txt > cv/noto_sans_sc_metadata.json
62
-
63
- # Extract the necessary information from the JSON file
64
- file_refs=$(jq -rc '.manifest.fileRefs[]' cv/noto_sans_sc_metadata.json)
65
-
66
- # Download, save the font file to /fonts
67
- mkdir -p ${{ env.TYPST_FONT_PATH }}
68
- while IFS= read -r file_ref; do
69
- filename=$(echo "$file_ref" | jq -r '.filename')
70
- url=$(echo "$file_ref" | jq -r '.url')
71
- fontname=$(basename "$filename")
72
- echo $url $fontname
73
- curl -L "$url" -o "${{ env.TYPST_FONT_PATH }}/$fontname"
74
- done <<< "$file_refs"
75
- ls -l ${{ env.TYPST_FONT_PATH }}
76
- fi
77
- for form in Light Regular Bold; do
78
- curl -L "https://github.com/lxgw/LxgwWenKai/releases/download/v1.330/LXGWWenKai-$form.ttf" -o "${{ env.TYPST_FONT_PATH }}/LXGWWenKai-$form.ttf"
79
- done
80
-
81
43
- name : Install Fonts
82
44
run : |
83
45
sudo apt-get install -y fonts-noto-cjk
Original file line number Diff line number Diff line change 34
34
35
35
更新时间:{{ build_date }}
36
36
37
+ [ 在 GitHub Pages 浏览本书] ( https://parallel101.github.io/cppguidebook ) | [ 在小彭老师自己维护的镜像上浏览本书] ( https://142857.red/book )
38
+
37
39
## 格式约定
38
40
39
41
> {{ icon.tip }} 用这种颜色字体书写的内容是温馨提示
Original file line number Diff line number Diff line change @@ -1188,6 +1188,7 @@ define dso_local noundef i32 @main() #0 {
1188
1188
ret i32 0
1189
1189
}
1190
1190
```
1191
+ todo
1191
1192
1192
1193
### 轶事:LLVM IR 不跨平台
1193
1194
You can’t perform that action at this time.
0 commit comments