14 lines
283 B
Bash
Executable File
14 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
FILES=$(find -name "*.md" | sort -V)
|
|
META=./meta.yml
|
|
OUTPUT=book.epub
|
|
pandoc --from markdown --to epub3 \
|
|
--metadata-file=$META \
|
|
-M title="自戀筆記" \
|
|
--output $OUTPUT \
|
|
--split-level 2 \
|
|
--toc \
|
|
--toc-depth=2 \
|
|
--top-level-division=section \
|
|
$FILES
|