diff --git a/README.md b/README.md index 1e7bad9..e9ad82e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # My Resume/personal site +Hosted at https://alexvds.com + - Resume written in [Typst] with the [brilliant-cv] template. - Site written with [Zola] diff --git a/justfile b/justfile index 634bb72..56807f7 100644 --- a/justfile +++ b/justfile @@ -4,25 +4,39 @@ cv_out := "./static/resume.pdf" out_dir := "./public" s3_uri := "s3://alexvds.com" -typst-compile: - typst compile {{cv}} {{cv_out}} +set default-list -typst-watch: - typst --color=never watch {{cv}} {{cv_out}} +# compile the resume +build-resume: + typst compile {{ cv }} {{ cv_out }} -zola-build: typst-compile +# recompile resume when changed +watch-resume: + typst --color=never watch {{ cv }} {{ cv_out }} + +# build the full site +build-site: build-resume zola build -zola-serve: +# rebuild the site when changed +watch-site: zola serve -build: zola-build +# compile the resume and build the full site +build: build-resume build-site +# recompile the resume and rebuild the site when changed [parallel] -watch: zola-serve typst-watch +watch: watch-resume watch-site -aws-login: +# log in to AWS +login-aws: aws login -upload: - aws s3 sync {{out_dir}} {{s3_uri}} +# upload changed files to s3 +upload: build + aws s3 sync {{ out_dir }} {{ s3_uri }} + +# delete compiled files +clean: + rm -r {{ cv_out }} {{ out_dir }}