Skip to content

Commit 08a26d8

Browse files
committed
enlarge svg files
1 parent 488e2a6 commit 08a26d8

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

Jenkinsfile

+1-7
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ stage("Build and Publish") {
3232

3333
sh label:"Build HTML", script:"""set -ex
3434
conda activate ${ENV_NAME}
35-
d2lbook build html
36-
for fn in `find _build/html/_images/ -iname '*.svg' `; do
37-
# rsvg-convert installed on ubuntu changes unit from px to pt, so evening no
38-
# change of the size makes the svg larger...
39-
rsvg-convert -z 1 -f svg -o tmp.svg $fn
40-
mv tmp.svg $fn
41-
done
35+
./build_html.sh
4236
"""
4337

4438
sh label:"Build PDF", script:"""set -ex

build_html.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
d2lbook build html
4+
5+
for fn in `find _build/html/_images/ -iname '*.svg' `; do
6+
if [[ $fn == *'qr_'* ]] ; then # || [[ $fn == *'output_'* ]]
7+
continue
8+
fi
9+
# rsvg-convert installed on ubuntu changes unit from px to pt, so evening no
10+
# change of the size makes the svg larger...
11+
rsvg-convert -z 1 -f svg -o tmp.svg $fn
12+
mv tmp.svg $fn
13+
done

0 commit comments

Comments
 (0)