chore: typst 0.13 updates (#113)

* chore: upgrade linguify

* chore: update tests

* fix: remove deprecated type checks

* chore: improve Justfile docs

* chore: compile with typst 0.12 and 0.13 in CI

* chore: use tytanic for testing

* chore: use tytanic in CI

* fix: don't use ubuntu-latest

* fix: test runner issues

* chore: trying to fix CI issues

* fix: remove unused font in tests

* fix: update references
This commit is contained in:
Paul T
2025-03-29 08:12:19 -04:00
committed by GitHub
parent beff2b2b4b
commit 12352d79bd
7 changed files with 54 additions and 35 deletions

32
lib.typ
View File

@@ -1,5 +1,5 @@
#import "@preview/fontawesome:0.5.0": *
#import "@preview/linguify:0.4.1": *
#import "@preview/linguify:0.4.2": *
// const color
#let color-darknight = rgb("#131A28")
@@ -230,7 +230,7 @@
}
let lang_data = toml("lang.toml")
show: body => context {
set document(
author: author.firstname + " " + author.lastname,
@@ -238,7 +238,7 @@
)
body
}
set text(
font: font,
lang: language,
@@ -464,9 +464,8 @@
address
contacts
}
body
}
/// The base item for resume entries.
@@ -618,15 +617,19 @@
if closing == none {
closing = default-closing(lang_data)
}
show: body => context {
set document(
author: author.firstname + " " + author.lastname,
title: lflib._linguify("cover-letter", lang: language, from: lang_data).ok,
title: lflib._linguify(
"cover-letter",
lang: language,
from: lang_data,
).ok,
)
body
}
set text(
font: font,
lang: language,
@@ -731,9 +734,9 @@
let contacts = {
set box(height: 9pt)
let separator = [ #box(sym.bar.v) ]
let separator = [ #box(sym.bar.v) ]
let author_list = ()
if ("phone" in author) {
author_list.push[
#phone-icon
@@ -772,8 +775,8 @@
#box[#link(author.website)[#author.website]]
]
}
align(right)[
#set text(
size: 8pt,
@@ -862,7 +865,10 @@
// TODO: Make this adaptable to content
underline(evade: false, stroke: 0.5pt, offset: 0.3em)[
#text(weight: "bold", size: 12pt)[#linguify("letter-position-pretext", from: lang_data) #job-position]
#text(weight: "bold", size: 12pt)[#linguify(
"letter-position-pretext",
from: lang_data,
) #job-position]
]
pad(top: 1em, bottom: 1em)[
#text(weight: "light", fill: color-gray)[