From 3ed3fce90656e388afa4e1da71a4bbc8866dd182 Mon Sep 17 00:00:00 2001 From: Phodal HUANG Date: Sun, 3 Feb 2019 09:07:22 +0800 Subject: [PATCH] feat: update build scripts --- Makefile | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 14f21b8..a8f2423 100644 --- a/Makefile +++ b/Makefile @@ -11,28 +11,25 @@ markdown: html: markdown pandoc -s $(filename).md -t html5 -o index.html -c style.css \ + --metadata pagetitle=$(title) \ --include-in-header $(include_dir)/head.html \ --include-before-body $(include_dir)/author.html \ --include-before-body $(include_dir)/share.html \ --include-after-body $(include_dir)/stats.html \ --title-prefix $(title) \ + --toc-depth=3 \ --toc epub: markdown - pandoc -s $(filename).md --normalize --smart -t epub -o $(filename).epub \ + pandoc -s $(filename).md -t epub -o $(filename).epub \ --epub-metadata $(include_dir)/metadata.xml \ - --epub-stylesheet epub.css \ --epub-cover-image img/cover.jpg \ --title-prefix $(title) \ - --normalize \ - --smart \ --toc rtf: markdown pandoc -s $(filename).md -o $(filename).rtf \ - --title-prefix $(title) \ - --normalize \ - --smart + --title-prefix $(title) pdf: markdown # OS X: http://www.tug.org/mactex/ @@ -42,11 +39,8 @@ pdf: markdown --title-prefix $(title) \ --listings -H listings-setup.tex \ --template=template.tex \ - --normalize \ - --smart \ - --toc \ - --latex-engine=`which xelatex` + --toc mobi: epub # Symlink bin: ln -s /path/to/kindlegen /usr/local/bin - kindlegen $(filename).epub \ No newline at end of file + kindlegen $(filename).epub