Remove JS and re-arange files
* Remove Javascript * Move files about * Add Makefile * Add Privacy & ToS * Add favicon * Make index.html static * Add requirements.txt
This commit is contained in:
39
Makefile
Normal file
39
Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
.PHONY: help all local deploy install clean build test sync post-test
|
||||
|
||||
SITENAME=juancanham.com
|
||||
#TARGET=/var/www/html/simpler-dash/
|
||||
TARGET=home:/tmp/simpler-dash/
|
||||
linkchecker=linkchecker --check-extern
|
||||
|
||||
help:
|
||||
@echo 'all: local deploy'
|
||||
@echo 'local: install clean build'
|
||||
@echo 'deploy: test sync post-test'
|
||||
|
||||
all: local deploy
|
||||
local: install build
|
||||
deploy: test sync post-test
|
||||
|
||||
install:
|
||||
pip install -r requirements.txt
|
||||
|
||||
clean:
|
||||
rm -r dist/* || true
|
||||
|
||||
build: clean
|
||||
cp -v *.html *.jpg *.ico dist/
|
||||
cp -rv css/ webfonts/ dist/
|
||||
for file in ToS Privacy; do markdown_py $${file}.md > dist/$${file} ; done
|
||||
|
||||
test:
|
||||
$(linkchecker) dist/index.html
|
||||
|
||||
sync:
|
||||
rsync -vr --delete dist/ $(TARGET)
|
||||
|
||||
post-test:
|
||||
$(linkchecker) https://$(SITENAME)
|
||||
wget http://${SITENAME} -O /dev/null
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user