website/justfile

36 lines
957 B
Makefile
Raw Permalink Normal View History

2025-02-03 16:55:36 +01:00
root := justfile_directory()
build := root / "build"
2019-11-19 13:56:05 +01:00
# Build static website
2025-02-03 16:55:36 +01:00
build: jj-slides
2019-11-19 13:56:05 +01:00
tup build
2020-12-20 21:27:01 +01:00
clean:
git clean -dxf build
2019-11-19 13:56:05 +01:00
# Generate dependency graph as PNG file
graph:
tup graph . | dot -Tpng > graph.png
2020-04-24 17:30:37 +02:00
upload-resume:
2020-09-27 17:25:36 +02:00
scp ~/Hub/Personal/Jobs/resume_2020-09.pdf fabs@ffreling.com:ffreling.com/files/resume.pdf
2020-04-24 17:30:37 +02:00
2019-11-19 13:56:05 +01:00
# Deploy up-to-date website to webserver
2020-05-15 17:45:20 +02:00
deploy: build
2020-04-21 17:58:47 +02:00
rsync --checksum --copy-links -ave 'ssh' \
2019-11-19 13:56:05 +01:00
--exclude-from=rsync_excludes.txt \
2021-12-29 17:51:19 +01:00
build/* fabs@ffreling.com:/var/www/ffreling.com/
2019-11-19 13:56:05 +01:00
preview: build
2020-12-20 21:27:01 +01:00
python3 -m webbrowser -t "file://{{root}}/build/index.html"
2025-02-03 16:55:36 +01:00
JJ_SLIDES_SRC := root / "articles/jujutsu/slides.md"
JJ_SLIDES_OUT := build / "articles/jujutsu/jujutsu_slides.pdf"
jj-slides:
npx @marp-team/marp-cli@latest --allow-local-files \
--bespoke.progress {{ JJ_SLIDES_SRC }} --pdf \
--output {{ JJ_SLIDES_OUT }}
jj-slides-watch:
ls {{ JJ_SLIDES_SRC }} | entr just jj-slides