Publish PDF as book format, add epub
This commit is contained in:
parent
13dd60986c
commit
c9e6b6a8a7
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.pdf
|
||||
*.epub
|
1
.vscode/spellright.dict
vendored
1
.vscode/spellright.dict
vendored
@ -1 +1,2 @@
|
||||
Slannon
|
||||
documentclass
|
||||
|
16
.vscode/tasks.json
vendored
Normal file
16
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "make",
|
||||
"type": "shell",
|
||||
"command": "make",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -1,5 +1,11 @@
|
||||
Chapter 1
|
||||
=========
|
||||
---
|
||||
title: Beyond the Veil
|
||||
subtitle: Veil Saga, Book 1
|
||||
author: Matthew Soucy
|
||||
documentclass: book
|
||||
---
|
||||
|
||||
#
|
||||
|
||||
"You shouldn't have done it."
|
||||
|
||||
|
3
Book-1/Chapter-2.md
Normal file
3
Book-1/Chapter-2.md
Normal file
@ -0,0 +1,3 @@
|
||||
#
|
||||
|
||||
Sphinx of black quartz, judge my vow.
|
5
Makefile
5
Makefile
@ -1,11 +1,14 @@
|
||||
|
||||
chapter-sort = $(shell echo -e $(subst $(sp),'\n',$2) | sort $1 --key=1,1 -)
|
||||
|
||||
books : Book1.pdf
|
||||
books : Book1.pdf Book1.epub
|
||||
|
||||
Book1.pdf : $(call chapter-sort,-n,$(wildcard Book-1/*.md))
|
||||
pandoc $^ -o $@
|
||||
|
||||
Book1.epub : $(call chapter-sort,-n,$(wildcard Book-1/*.md))
|
||||
pandoc $^ -o $@
|
||||
|
||||
clean:
|
||||
rm -rf Book1.pdf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user