~anjan/sxmo.org

ref: 99556bf216c7babc5008402487ebe7b9f8771708 sxmo.org/Makefile -rw-r--r-- 431 bytes
99556bf2Maarten van Gompel added sxmo logo to footer 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
MY_DIR := $(realpath ./)

build:
	[ -e ./src/docs/index.md ] || ln -s $(MY_DIR)/src/docs/README.md $(MY_DIR)/src/docs/index.md # fix index link on docs
	sed 's/(https:\/\/git.sr.ht\/\~mil\/sxmo-docs\/tree\/master/(\/docs/g; s/.md)/.html)/g' -i src/docs/*.md # fix internal links in documentation
	mkdir -p dst
	./ssg6 src dst 'Simple X Mobile' 'https://sxmo.org'

run: build
	cd dst && python3 -m http.server 8000 --bind 127.0.0.1