Publish PDF as book format, add epub
This commit is contained in:
parent
13dd60986c
commit
c9e6b6a8a7
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.pdf
|
||||
*.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."
|
||||
|
||||
@ -35,4 +41,4 @@ He stood up from the chair, walking back toward the door. This time, he took a c
|
||||
|
||||
He gasped, withdrawing his hand and staring at the offending patch of wall. Much to his surprise, it was no longer the dull gray it had been. Instead, the symbols were all glowing a faint blue. As he watched them, they vanished, seeming to fade into the wall with no trace of their existence. The circles followed suit, leaving just the hand print in the wall, as there was a clicking sound from the door.
|
||||
|
||||
Slannon yanked the handle, half expecting the door to still be locked, and was pleased when it opened. With a final glance at the room, he walked through the doorway, emerging into a dull hallway. Lining the otherwise plain walls were a series of doors, much like the one he had come from, while at the end he could see light pouring from a glass door leading outside. Hastily, he ran toward the exit, emerging outdoors.
|
||||
Slannon yanked the handle, half expecting the door to still be locked, and was pleased when it opened. With a final glance at the room, he walked through the doorway, emerging into a dull hallway. Lining the otherwise plain walls were a series of doors, much like the one he had come from, while at the end he could see light pouring from a glass door leading outside. Hastily, he ran toward the exit, emerging outdoors.
|
||||
|
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