From fcff3374dc5e39bfb4344ef4062be03cbe6184d2 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 18 Jun 2022 15:59:35 +0100 Subject: [PATCH] make: render preview as github markdown like live site; also watch quickref --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2fcde54..d5186af 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,8 @@ all: html # (including README, maybe useful for local preview. $(filter-out README.md, ...) to exclude). html: $(patsubst %.md,%.html,$(wildcard *.md quickref/*.md)) Makefile -PANDOC=pandoc -f markdown-smart+autolink_bare_uris +# PANDOC=pandoc -f markdown-smart+autolink_bare_uris +PANDOC=pandoc -f gfm # generate html from a md file %.html: %.md index.tmpl @@ -12,7 +13,7 @@ PANDOC=pandoc -f markdown-smart+autolink_bare_uris # regenerate html whenever an md file changes html-auto auto: - ls *.md | entr make html + ls *.md quickref/*.md | entr make html BROWSE=open LIVERELOADPORT=8100