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:
Juan Canham
2020-04-10 03:24:17 +01:00
parent 845a2b3ec1
commit 556f379c05
34 changed files with 211 additions and 303 deletions

39
Makefile Normal file
View 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