Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d26fdba

Browse files
committed
Add proper cover image to epub versions of ebook
1 parent b6ce4e5 commit d26fdba

3 files changed

Lines changed: 1 addition & 1 deletion

File tree

build_ebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def repl(m):
8686
print('building epub...')
8787

8888
subprocess.check_output(
89-
['pandoc', 'ebook.md', '--toc', '-o', 'ebook/Vulkan Tutorial ' + name_path + '.epub'])
89+
['pandoc', 'ebook.md', '--toc', '-o', 'ebook/Vulkan Tutorial ' + name_path + '.epub', '--epub-cover-image=ebook/cover.png'])
9090

9191
# Clean up
9292
os.remove('ebook.md')

ebook/cover.kra

535 KB
Binary file not shown.

ebook/cover.png

129 KB
Loading

0 commit comments

Comments
 (0)