convert markdown to html

This commit is contained in:
2023-07-08 00:17:17 +02:00
parent bb691259bb
commit 65b5d1bd44
4 changed files with 45 additions and 0 deletions

22
Makefile Normal file
View File

@@ -0,0 +1,22 @@
output : all
public:
mkdir public
public/static: static
cp -r static public/
public/%.html : %.md
@cp start.html $@
@cat $< | sed 's#.md)#.html)#g' | pandoc -f markdown -t html5 -o- >> $@
@cat end.html >> $@
HTML := $(patsubst %.md,public/%.html,$(wildcard *.md))
all : public $(HTML) public/static
test:
echo $(HTML)
clean :
rm -rf public