-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.sh
More file actions
49 lines (35 loc) · 818 Bytes
/
make.sh
File metadata and controls
49 lines (35 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
node preprocess.js
cd ./tmp
echo "# 入门" > chapter1.md
echo>>chapter1.md
echo "# 开发" > chapter2.md
echo>>chapter2.md
echo "# API" > chapter3.md
echo>>chapter3.md
echo "# 指南" > chapter4.md
echo>>chapter4.md
chapters="\
chapter1.md \
start.md \
installation.md \
config.md \
basic-usage.md \
chapter2.md \
architecture.md \
client.md \
performance.md \
chapter3.md \
sdk.md \
api.md \
api-transaction.md \
api-query.md \
chapter4.md \
cases.md \
shadowdb.md \
faq.md \
roadmap.md \
changes.md \
"
options="--highlight-style=tango --pdf-engine=xelatex"
pandoc -o ../devbook.pdf -H ../tex/preamble.tex $options --metadata-file=../metadata.yaml $chapters
# pandoc -o ../devbook.tex -H ../tex/preamble.tex $options --metadata-file=../metadata.yaml $chapters