From c9e6b6a8a7fc1cf31a62618ce5513866acb41009 Mon Sep 17 00:00:00 2001 From: Matt Soucy Date: Sat, 3 Nov 2018 17:31:44 -0400 Subject: [PATCH] Publish PDF as book format, add epub --- .gitignore | 3 ++- .vscode/spellright.dict | 1 + .vscode/tasks.json | 16 ++++++++++++++++ Book-1/Chapter-1.md | 12 +++++++++--- Book-1/Chapter-2.md | 3 +++ Makefile | 5 ++++- 6 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 .vscode/tasks.json create mode 100644 Book-1/Chapter-2.md diff --git a/.gitignore b/.gitignore index f08278d..cfb030a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -*.pdf \ No newline at end of file +*.pdf +*.epub \ No newline at end of file diff --git a/.vscode/spellright.dict b/.vscode/spellright.dict index f57c7a0..364f3a8 100644 --- a/.vscode/spellright.dict +++ b/.vscode/spellright.dict @@ -1 +1,2 @@ Slannon +documentclass diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..a58e5bf --- /dev/null +++ b/.vscode/tasks.json @@ -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 + } + } + ] +} \ No newline at end of file diff --git a/Book-1/Chapter-1.md b/Book-1/Chapter-1.md index 949a7c2..c3c6c8e 100644 --- a/Book-1/Chapter-1.md +++ b/Book-1/Chapter-1.md @@ -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. \ No newline at end of file +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. diff --git a/Book-1/Chapter-2.md b/Book-1/Chapter-2.md new file mode 100644 index 0000000..83b8f7f --- /dev/null +++ b/Book-1/Chapter-2.md @@ -0,0 +1,3 @@ +# + +Sphinx of black quartz, judge my vow. \ No newline at end of file diff --git a/Makefile b/Makefile index 10c4457..11f631e 100644 --- a/Makefile +++ b/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