Files
narcissism-ebook/epub.sh
2025-11-06 17:11:05 +11:00

14 lines
286 B
Bash
Executable File

#!/bin/bash
FILES=$(find study -name "*.md" | sort)
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