Skip to content

Commit de27d2c

Browse files
committed
Fix issue with missing built-in image of the epub generated
1 parent 000e46e commit de27d2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ebook/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ cat <<__METADATA__ > metadata.txt
4141
<dc:title>$MSG_TITLE</dc:title>
4242
__METADATA__
4343

44+
mkdir -p $TMP/images
45+
cp -r $WORKDIR/images/* $TMP/images/
46+
ls [0-9]*.html | xargs sed -i "s/png?raw=true/png/g"
47+
4448
pandoc --reference-links -S --toc -f html -t epub --epub-metadata=metadata.txt --epub-cover-image="$WORKDIR/../images/cover.png" -o "$WORKDIR/../build-web-application-with-golang.epub" `ls [0-9]*.html | sort`
4549

4650
echo "$MSG_SUCCESSFULLY_GENERATED"

0 commit comments

Comments
 (0)