Skip to content

Commit 427b4b1

Browse files
committed
fix build
1 parent 16f8572 commit 427b4b1

File tree

3 files changed

+3
-38
lines changed

3 files changed

+3
-38
lines changed

.github/workflows/generate_release_pdf.yml

-38
Original file line numberDiff line numberDiff line change
@@ -40,44 +40,6 @@ jobs:
4040
github_token: ${{ secrets.GITHUB_TOKEN }}
4141
publish_dir: ./site
4242

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-
8143
- name: Install Fonts
8244
run: |
8345
sudo apt-get install -y fonts-noto-cjk

docs/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
3535
更新时间:{{ build_date }}
3636

37+
[在 GitHub Pages 浏览本书](https://parallel101.github.io/cppguidebook) | [在小彭老师自己维护的镜像上浏览本书](https://142857.red/book)
38+
3739
## 格式约定
3840

3941
> {{ icon.tip }} 用这种颜色字体书写的内容是温馨提示

docs/llvm_intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,7 @@ define dso_local noundef i32 @main() #0 {
11881188
ret i32 0
11891189
}
11901190
```
1191+
todo
11911192

11921193
### 轶事:LLVM IR 不跨平台
11931194

0 commit comments

Comments
 (0)