Skip to content

Commit c26f59c

Browse files
committed
also pub zip
1 parent 7ad2c8e commit c26f59c

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/generate_release_pdf.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ jobs:
3838
3939
- name: Compile PDF document
4040
run: |
41-
ls site site/print_page
4241
node misc/export_to_pdf.js file://$PWD/site/print_page/index.html cppguidebook.pdf "小彭老师的现代 C++ 大典"
42+
du -h cppguidebook.pdf
43+
44+
- name: Generate ZIP site
45+
run: |
46+
zip -r cppguidebook-site.zip site
4347
4448
- name: Deploy
4549
uses: peaceiris/actions-gh-pages@v4
@@ -73,7 +77,9 @@ jobs:
7377
> GitHub 卡顿,无法下载?访问 [小彭老师自己维护的镜像](${{ env.MIRROR_SITE_URL }}/cppguidebook.pdf)。
7478
> 喜欢在线阅读?访问 [GitHub Pages](https://parallel101.github.io/cppguidebook)
7579
tag_name: ${{ steps.tag.outputs.release_tag }}
76-
files: cppguidebook.pdf
80+
files:
81+
- cppguidebook.pdf
82+
- cppguidebook-site.zip
7783

7884
- name: Publish to mirror site
7985
continue-on-error: true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
## 在哪里可以看?
99

10-
本书托管在 GitHub Pages,无需下载,[点击开始在线阅读](https://parallel101.github.io/cppguidebook)
10+
无需下载,[点击开始在线阅读](https://parallel101.github.io/cppguidebook)
1111

1212
> [!TIP]
1313
> GitHub Pages 是实时更新的,每当小彭老师推送了新章节,网页都会自动更新哦。

docs/index.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
## 小彭老师现代 C++ 大典
1+
# 小彭老师现代 C++ 大典
22

33
小彭大典是一本关于现代 C++ 编程的权威指南,它涵盖了从基础知识到高级技巧的内容,适合初学者和有经验的程序员阅读。本书由小彭老师亲自编写,通过简单易懂的语言和丰富的示例,帮助读者快速掌握 C++ 的核心概念,并学会如何运用它们来解决实际问题。
44

5-
[点击此处开始阅读](start.md)
5+
[点击此处开始阅读第一章](start.md)
6+
7+
你也可以在本页面上方导航栏的“章节列表”中,选择感兴趣的章节阅读。
68

79
本书完全开源和免费,GitHub 仓库:https://github.com/parallel101/cppguidebook
810

0 commit comments

Comments
 (0)