make publishable to NPM

This commit is contained in:
Oskar Wickström
2025-01-25 14:32:13 +01:00
parent 9b04c3bbed
commit 470566b8b6
4 changed files with 30 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
VERSION=$(shell jq -r .version package.json)
all: index.html
@@ -5,6 +6,6 @@ clean:
rm -f index.html
index.html: index.md template.html Makefile
pandoc --toc -s --css reset.css --css index.css -i $< -o $@ --template=template.html
pandoc --toc -s --css reset.css --css index.css -Vversion=v$(VERSION) -i $< -o $@ --template=template.html
.PHONY: all clean