diff --git a/.gitignore b/.gitignore index a136337..f4df0be 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.pdf +*.html diff --git a/Makefile b/Makefile index 036ac76..72d3d04 100644 --- a/Makefile +++ b/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:"