File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ jobs:
31
31
run : cargo install --path helpers/mdbook-exercise-linker
32
32
- name : Install link shortener plugin
33
33
run : cargo install --path helpers/mdbook-link-shortener
34
- - name : Install mdbook-pandoc, calibre and related dependencies
34
+ - name : Install mdbook-pandoc, calibre, pdftk and related dependencies
35
35
run : |
36
36
cargo install mdbook-pandoc --locked --version 0.7.1
37
37
sudo apt-get update
38
- sudo apt-get install -y fonts-noto calibre
38
+ sudo apt-get install -y fonts-noto calibre pdftk
39
39
40
40
export PANDOC_VERSION=3.3
41
41
curl -LsSf https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz | tar zxf -
81
81
run : |
82
82
cd book
83
83
mdbook build
84
+ - name : Add cover and back to downloadable PDF
85
+ run : |
86
+ pdftk book/assets/cover.pdf book/book/pandoc/pdf/100-exercises-to-learn-rust.pdf book/assets/back.pdf cat output book/book/pandoc/pdf/100-exercises-to-learn-rust-with-cover.pdf
87
+ mv book/book/pandoc/pdf/100-exercises-to-learn-rust-with-cover.pdf book/book/pandoc/pdf/100-exercises-to-learn-rust.pdf
84
88
- name : Convert HTML to ePUB
85
89
run : |
86
90
cd book/book/pandoc/html
You can’t perform that action at this time.
0 commit comments