diff --git a/Makefile b/Makefile index a0b76f0..43c30e5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ DOCKER_ENV=changkun/modern-cpp-tutorial:build-env LANGS = zh-cn en-us -ALL_BUILDS = pdf website +ALL_BUILDS = website pdf # dep @@ -9,6 +9,8 @@ all: $(ALL_BUILDS) pdf: $(LANGS) $(LANGS): cd pdf/$@ && make && make clean + mkdir -p website/public/modern-cpp/pdf + mv pdf/$@/modern-cpp-tutorial.pdf website/public/modern-cpp/pdf/modern-cpp-tutorial-$@.pdf website: cd website && make diff --git a/README-zh-cn.md b/README-zh-cn.md index 3ad98d9..795c959 100644 --- a/README-zh-cn.md +++ b/README-zh-cn.md @@ -22,7 +22,7 @@ 你可以选择以下几种阅读方式: 1. [GitHub 在线](./book/zh-cn/toc.md) -2. [PDF 文档](./pdf/zh-cn/modern-cpp-tutorial.pdf) +2. [PDF 文档](https://changkun.de/modern-cpp/modern-cpp-tutorial-zh-cn.pdf) 3. [网站](https://changkun.de/modern-cpp/) ## 相关代码 diff --git a/README.md b/README.md index 3426115..f7e211a 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ In addition, The author would like to encourage that readers should be able to u You can choose from the following reading methods: - [GitHub Online](./book/en-us/toc.md) -- [PDF document](./pdf/en-us/modern-cpp-tutorial.pdf) +- [PDF document](https://changkun.de/modern-cpp/modern-cpp-tutorial-en-us.pdf) - [Website](https://changkun.de/modern-cpp) ## Code diff --git a/pdf/en-us/modern-cpp-tutorial.pdf b/pdf/en-us/modern-cpp-tutorial.pdf deleted file mode 100644 index 066a380..0000000 Binary files a/pdf/en-us/modern-cpp-tutorial.pdf and /dev/null differ diff --git a/pdf/zh-cn/modern-cpp-tutorial.pdf b/pdf/zh-cn/modern-cpp-tutorial.pdf deleted file mode 100644 index 08b60e7..0000000 Binary files a/pdf/zh-cn/modern-cpp-tutorial.pdf and /dev/null differ diff --git a/website/themes/moderncpp/layout/index.ejs b/website/themes/moderncpp/layout/index.ejs index 734b39f..6ac1db7 100755 --- a/website/themes/moderncpp/layout/index.ejs +++ b/website/themes/moderncpp/layout/index.ejs @@ -21,7 +21,8 @@
- ">🇨🇳 立即阅读 + ">🇨🇳 在线阅读 + ">🇨🇳 下载
@@ -38,7 +39,8 @@