Skip to content

Commit

Permalink
Add single markdown output
Browse files Browse the repository at this point in the history
  • Loading branch information
prodrigestivill committed Aug 6, 2024
1 parent 93ed790 commit b7d3e98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ _book/*
*.bak
*.log
gmi/
r2book.md
r2book.pdf
r2book.epub
r2book.texi
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: pdf epub

.PHONY: epub pdf pdf_old gmi texi info
.PHONY: epub pdf pdf_old gmi texi info one

pdf_old: node_modules
npm run build
Expand All @@ -24,6 +24,9 @@ PANDOC_PDF_OPTIONS+=-H header.tex --listings
## Add a cover and hide title text page
PANDOC_PDF_OPTIONS+=-B cover.tex -V title:

one:
pandoc $(CHAPTERS) $(PANDOC_OPTIONS) -o r2book.md

pdf:
pandoc $(CHAPTERS) $(PANDOC_OPTIONS) $(PANDOC_PDF_OPTIONS) -o r2book.pdf

Expand Down

0 comments on commit b7d3e98

Please sign in to comment.