diff --git a/.gitignore b/.gitignore index 31c1c9f..7e22ad4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.swp *.swo .DS_Store +build diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9c15341 --- /dev/null +++ b/Makefile @@ -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 diff --git a/title.txt b/title.txt new file mode 100644 index 0000000..f570498 --- /dev/null +++ b/title.txt @@ -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}' +...