Add generation script

pull/207/head
Simon Knott 2018-09-02 20:58:29 +02:00
parent e73991b73a
commit 519a8bb4af
No known key found for this signature in database
GPG Key ID: 9F980AECBE437129
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
# Byte-compiled / optimized / DLL files
*.epub
__pycache__/
*.py[cod]

13
generate-epub.sh Executable file
View File

@ -0,0 +1,13 @@
#! /usr/bin/env sh
generate () {
name=$1
echo "Generating Ebook $name ..."
pandoc -o $name.epub $name.md
echo "Done! You can find the book at ./$name.epub"
}
generate README
generate README-ja
generate README-zh-Hans
generate README-zh-TW