forked from rootsongjc/kubernetes-handbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
BOOK_NAME := kubernetes-handbook | ||
BOOK_OUTPUT := _book | ||
|
||
.PHONY: build | ||
build: | ||
gitbook build . $(BOOK_OUTPUT) | ||
|
||
.PHONY: serve | ||
serve: | ||
gitbook serve . $(BOOK_OUTPUT) | ||
|
||
.PHONY: epub | ||
epub: | ||
gitbook epub . $(BOOK_NAME).epub | ||
|
||
.PHONY: pdf | ||
pdf: | ||
gitbook pdf . $(BOOK_NAME).pdf | ||
|
||
.PHONY: mobi | ||
mobi: | ||
gitbook mobi . $(BOOK_NAME).pdf | ||
|
||
.PHONY: install | ||
install: | ||
npm install gitbook-cli -g | ||
gitbook install | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf $(BOOK_OUTPUT) | ||
|
||
.PHONY: help | ||
help: | ||
@echo "Help for make" | ||
@echo "make - Build the book" | ||
@echo "make build - Build the book" | ||
@echo "make serve - Serving the book on localhost:4000" | ||
@echo "make install - Install gitbook and plugins" | ||
@echo "make epub - Build epub book" | ||
@echo "make pdf - Build pdf book" | ||
@echo "make clean - Remove generated files" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"gitbook": "3.2.0", | ||
"gitbook": ">= 3.2.2", | ||
"plugins": ["mermaid", "katex"], | ||
"pluginsConfig": { | ||
"mathjax":{ | ||
|