diff --git a/cover.jpg b/assets/cover.jpg similarity index 100% rename from cover.jpg rename to assets/cover.jpg diff --git a/assets/cover1.jpg b/assets/cover1.jpg new file mode 100644 index 0000000..a1dd38a Binary files /dev/null and b/assets/cover1.jpg differ diff --git a/assets/cover10.jpg b/assets/cover10.jpg new file mode 100644 index 0000000..0f2ab43 Binary files /dev/null and b/assets/cover10.jpg differ diff --git a/assets/cover11.jpg b/assets/cover11.jpg new file mode 100644 index 0000000..6a4d03b Binary files /dev/null and b/assets/cover11.jpg differ diff --git a/assets/cover12.jpg b/assets/cover12.jpg new file mode 100644 index 0000000..e18516d Binary files /dev/null and b/assets/cover12.jpg differ diff --git a/assets/cover13.jpg b/assets/cover13.jpg new file mode 100644 index 0000000..077dd65 Binary files /dev/null and b/assets/cover13.jpg differ diff --git a/assets/cover14.jpg b/assets/cover14.jpg new file mode 100644 index 0000000..88220c5 Binary files /dev/null and b/assets/cover14.jpg differ diff --git a/assets/cover2.jpg b/assets/cover2.jpg new file mode 100644 index 0000000..ca05078 Binary files /dev/null and b/assets/cover2.jpg differ diff --git a/assets/cover3.jpg b/assets/cover3.jpg new file mode 100644 index 0000000..fab7a45 Binary files /dev/null and b/assets/cover3.jpg differ diff --git a/assets/cover4.jpg b/assets/cover4.jpg new file mode 100644 index 0000000..77c7266 Binary files /dev/null and b/assets/cover4.jpg differ diff --git a/assets/cover5.jpg b/assets/cover5.jpg new file mode 100644 index 0000000..5180d43 Binary files /dev/null and b/assets/cover5.jpg differ diff --git a/assets/cover6.jpg b/assets/cover6.jpg new file mode 100644 index 0000000..6b68d86 Binary files /dev/null and b/assets/cover6.jpg differ diff --git a/assets/cover7.jpg b/assets/cover7.jpg new file mode 100644 index 0000000..cf09c62 Binary files /dev/null and b/assets/cover7.jpg differ diff --git a/assets/cover8.jpg b/assets/cover8.jpg new file mode 100644 index 0000000..bfe1bd7 Binary files /dev/null and b/assets/cover8.jpg differ diff --git a/assets/cover9.jpg b/assets/cover9.jpg new file mode 100644 index 0000000..b424c21 Binary files /dev/null and b/assets/cover9.jpg differ diff --git a/create_book.sh b/create_book.sh index 8a57592..3392670 100644 --- a/create_book.sh +++ b/create_book.sh @@ -1,7 +1,9 @@ #!/bin/bash echo "execute a bash script that will create a book called " $1 +index=$(shuf -i 1-14 -n 1) +echo $index -pandoc /home/xpub/www/html/tl-dr/book.html -o /home/xpub/www/html/tl-dr/logged_book.epub -c print.css --metadata title="$1" --metadata author="/var/shelf" --epub-cover-image=cover.jpg --epub-embed-font='fonts/Cascadia/ttf/CascadiaCode-Light.ttf' --epub-embed-font='fonts/Ductus/DuctusRegular.otf' +pandoc /home/xpub/www/html/tl-dr/book.html -o /home/xpub/www/html/tl-dr/logged_book.epub -c print.css --metadata title="$1" --metadata author="/var/shelf" --epub-cover-image=assets/cover$index.jpg --epub-embed-font="fonts/Cascadia/ttf/CascadiaCode-Light.ttf" --epub-embed-font="fonts/Ductus/DuctusRegular.otf" cp /home/xpub/www/html/tl-dr/logged_book.epub /home/xpub/www/html/tl-dr/log-books/"$1".epub ls log-books > /home/xpub/www/html/tl-dr/log-books/all.txt