File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -ex
4
-
5
3
# Set the directory containing Markdown files
6
4
SCRIPT_DIR=$( dirname " $0 " )
7
5
INPUT_DIR=$( cd " $( dirname " $SCRIPT_DIR " ) " && pwd)
@@ -19,7 +17,7 @@ convert_to_epub() {
19
17
local meta_file=${INPUT_DIR} /metadata.yaml
20
18
local css_file=${INPUT_DIR} /js/epub.css
21
19
22
- pandoc -o " $OUTPUT_BOOK " " $meta_file " \
20
+ pandoc -o " $OUTPUT_BOOK " --metadata-file= " $meta_file " \
23
21
--toc-depth=2 \
24
22
--top-level-division=chapter \
25
23
--file-scope=true \
Original file line number Diff line number Diff line change 1
- ---
2
- title : 设计数据密集型应用
3
- author : Martin Kleppmann
1
+ title :
2
+ - type : main
3
+ text : 设计数据密集型应用
4
+ - type : subtitle
5
+ text : 可靠、可扩展、可维护的系统
6
+
7
+ creator :
8
+ - role : author
9
+ name : Martin Kleppmann
10
+
4
11
rights : Creative Commons Non-Commercial Share Alike 3.0
5
12
language : 中文
13
+ cover-image : ./img/title.png
You can’t perform that action at this time.
0 commit comments