Merge pull request #1 from renderedtext/ma/pandoc-setup

Book creation with Pandoc
This commit is contained in:
Marko Anastasov
2019-10-18 14:06:12 +02:00
committed by GitHub
3 changed files with 29 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
*.swp
*.swo
.DS_Store
build

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
BUILD = build
BOOKNAME = CICD_with_Docker_Kubernetes_Semaphore
TITLE = title.txt
CHAPTERS = ch01.md ch02.md ch03.md ch04.md
all: book
book: pdf #epub html
clean:
rm -r $(BUILD)
pdf: $(BUILD)/pdf/$(BOOKNAME).pdf
$(BUILD)/pdf/$(BOOKNAME).pdf: $(TITLE) $(CHAPTERS)
mkdir -p $(BUILD)/pdf
pandoc -o $@ $^
.PHONY: all book clean pdf #epub html

9
title.txt Normal file
View File

@@ -0,0 +1,9 @@
---
title: CI/CD with Docker and Kubernetes
subtitle: Joining the Microservices Revolution
author: Semaphore
language: en-US
toc: true
include-before:
- '`\newpage{}`{=latex}'
...