all repos — eyes-like-fire @ 1ed0d2427d33c086bf9cb143d6e871164a7ead85

Source code for the main eyes-like-fire website

Makefile (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
PANDOC := pandoc
PANDOC_OPTS := -N -s -fmarkdown -tchunkedhtml --shift-heading-level-by=-1 --toc=true --template=src/template.html -Fmermaid-filter --lua-filter=extern/include-files/include-files.lua

build: src/*.md src/template.html
	rm -rf build/*
	pandoc -o build/english.zip src/english.md $(PANDOC_OPTS)
	pandoc -o build/blog.zip src/blog.md $(PANDOC_OPTS) --toc-depth=1
	unzip build/english.zip -d build
	unzip build/blog.zip -d build/blog
	rm build/english.zip build/blog.zip
	python3 feedgen.py > build/blog/atom.xml

deploy: build src/lighttpd.conf
	rsync -r build juniper@artemis:/home/juniper/website
	rsync src/lighttpd.conf juniper@artemis:/home/juniper/website
	rsync src/Dockerfile juniper@artemis:/home/juniper/website
	ssh juniper@artemis "cd website; podman build -t eyes-like-fire:latest .; podman run --network=host -d -v.:/var/www:Z --replace --name website eyes-like-fire:latest"