# Build the website
site/index.html: docs/** theme/** theme/main.html
mkdocs build
theme/main.html: haml/main.haml
haml render $< > $@.tmp
cat $@.tmp > $@
rm $@.tmp
# Serve the website at http://127.0.0.1:8000/~tasiaiso/
serve: theme/main.html
mkdocs serve -w theme
format: format-code format-markdown
format-code:
npx prettier --cache --write --check .
format-markdown:
npx markdownlint-cli 'docs/**/*.md' -f
# Upload the website to tilde.club
upload: build
scp -r site/** tasiaiso@tilde.club:/home/tasiaiso/public_html
.PHONY: clean
clean:
rm -r site/