Browse Source

also generate html

pull/4/head
Ben Harris 2 years ago
parent
commit
8e95deabfa
  1. 1
      .gitignore
  2. 22
      Makefile

1
.gitignore

@ -1 +1,2 @@
*.pdf
*.html

22
Makefile

@ -1,9 +1,10 @@
ISSUES != find issues -type d
DEST_PDF_FILES := $(ISSUES:issues/%=issue-%.pdf)
DEST_HTML_FILES := $(ISSUES:issues/%=issue-%.html)
PANDOC != command -v pandoc 2> /dev/null
all: $(DEST_PDF_FILES)
all: $(DEST_PDF_FILES) $(DEST_HTML_FILES)
issue-%.pdf: issues/%
$(PANDOC) \
@ -17,3 +18,22 @@ issue-%.pdf: issues/%
--output $@ \
$</*.md
issue-%.html: issues/%
$(PANDOC) \
--file-scope \
--from markdown \
--to html \
--standalone \
--table-of-contents \
--metadata title:"tildeverse zine $@" \
--metadata include-before:"<div class=\"container\">" \
--metadata include-after:"</div>" \
--css https://tilde.team/css/hacker.css \
--output $@ \
$</*.md
clean:
rm *.html *.pdf
.PHONY: clean
Loading…
Cancel
Save