Skip to content

Commit 3ed3fce

Browse files
committed
feat: update build scripts
1 parent db20979 commit 3ed3fce

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

Makefile

+6-12
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,25 @@ markdown:
1111

1212
html: markdown
1313
pandoc -s $(filename).md -t html5 -o index.html -c style.css \
14+
--metadata pagetitle=$(title) \
1415
--include-in-header $(include_dir)/head.html \
1516
--include-before-body $(include_dir)/author.html \
1617
--include-before-body $(include_dir)/share.html \
1718
--include-after-body $(include_dir)/stats.html \
1819
--title-prefix $(title) \
20+
--toc-depth=3 \
1921
--toc
2022

2123
epub: markdown
22-
pandoc -s $(filename).md --normalize --smart -t epub -o $(filename).epub \
24+
pandoc -s $(filename).md -t epub -o $(filename).epub \
2325
--epub-metadata $(include_dir)/metadata.xml \
24-
--epub-stylesheet epub.css \
2526
--epub-cover-image img/cover.jpg \
2627
--title-prefix $(title) \
27-
--normalize \
28-
--smart \
2928
--toc
3029

3130
rtf: markdown
3231
pandoc -s $(filename).md -o $(filename).rtf \
33-
--title-prefix $(title) \
34-
--normalize \
35-
--smart
32+
--title-prefix $(title)
3633

3734
pdf: markdown
3835
# OS X: http://www.tug.org/mactex/
@@ -42,11 +39,8 @@ pdf: markdown
4239
--title-prefix $(title) \
4340
--listings -H listings-setup.tex \
4441
--template=template.tex \
45-
--normalize \
46-
--smart \
47-
--toc \
48-
--latex-engine=`which xelatex`
42+
--toc
4943

5044
mobi: epub
5145
# Symlink bin: ln -s /path/to/kindlegen /usr/local/bin
52-
kindlegen $(filename).epub
46+
kindlegen $(filename).epub

0 commit comments

Comments
 (0)