diff --git a/.github/workflows/build-resume.yml b/.github/workflows/build-resume.yml index 05b4b5e..574aa6b 100644 --- a/.github/workflows/build-resume.yml +++ b/.github/workflows/build-resume.yml @@ -15,8 +15,9 @@ jobs: --workdir "/mnt" \ "ghcr.io/typst/typst:latest" \ typst \ + compile \ --font-path "./templates/latex/assets/fonts" \ - compile resume.typ "resume.pdf" + resume.typ "resume.pdf" - name: Upload Resume uses: actions/upload-artifact@v3 with: diff --git a/Justfile b/Justfile index c906c61..da2216f 100644 --- a/Justfile +++ b/Justfile @@ -1,5 +1,6 @@ set shell:= ["bash", "-uceE"] +CONTAINER_RUNTIME := "podman" PROJECT_ROOT := `git rev-parse --show-toplevel` OUTPUT_FILENAME := "resume.pdf" TEMPLATE := "latex" @@ -11,35 +12,35 @@ default: @just --list build: - @typst --font-path "{{FONT_PATH}}" compile resume.typ "{{OUTPUT_FILENAME}}" + @typst compile --font-path "{{FONT_PATH}}" resume.typ "{{OUTPUT_FILENAME}}" dev: - @typst --font-path "{{FONT_PATH}}" watch resume.typ "{{OUTPUT_FILENAME}}" + @typst watch --font-path "{{FONT_PATH}}" resume.typ "{{OUTPUT_FILENAME}}" font: - @typst --font-path "{{FONT_PATH}}" --fonts --variants + @typst fonts --font-path "{{FONT_PATH}}" --variants clean: @rm -f *.pdf containerized-build: - @podman run --rm -t \ + @{{CONTAINER_RUNTIME}} run --rm -t \ -v "{{PROJECT_ROOT}}:/mnt" \ -w "/mnt" \ "{{TYPST_IMAGE_REF}}" \ - typst --font-path "{{FONT_PATH}}" compile resume.typ "{{OUTPUT_FILENAME}}" + typst compile --font-path "{{FONT_PATH}}" resume.typ "{{OUTPUT_FILENAME}}" containerized-dev: - @podman run --rm -it -v \ + @{{CONTAINER_RUNTIME}} run --rm -it -v \ "{{PROJECT_ROOT}}:/mnt" \ -w "/mnt" \ --init \ "{{TYPST_IMAGE_REF}}" \ - typst --font-path "{{FONT_PATH}}" watch resume.typ "{{OUTPUT_FILENAME}}" + typst watch --font-path "{{FONT_PATH}}" resume.typ "{{OUTPUT_FILENAME}}" containerized-font: - @podman run --rm -t -v \ + @{{CONTAINER_RUNTIME}} run --rm -t -v \ "{{PROJECT_ROOT}}:/mnt" \ -w "/mnt" \ "{{TYPST_IMAGE_REF}}" \ - typst --font-path "{{FONT_PATH}}" fonts --variants \ No newline at end of file + typst fonts --font-path "{{FONT_PATH}}" --variants \ No newline at end of file diff --git a/resume.pdf b/resume.pdf index 72d94e0..7814784 100644 Binary files a/resume.pdf and b/resume.pdf differ diff --git a/resume.typ b/resume.typ index 58a197c..553630f 100644 --- a/resume.typ +++ b/resume.typ @@ -1,5 +1,7 @@ #import "templates/latex/template.typ": * +#let today = datetime.today() + #show: resume.with( author: ( firstname: "Aaaaaaa", @@ -13,8 +15,7 @@ "Aaaa Aaaaa Aaaaaaaaa", ) ), - //TODO: https://github.com/typst/typst/issues/204 - date: "Aaaaa 00, 0000" + date: today.display("[month repr:long] [day], [year]") ) #resume_section("Education")