Skip to content

Commit

Permalink
ci: print list of available fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 27, 2024
1 parent 4f718f7 commit a1f96b0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Build document
run: |
mkdir -p output
nix build .#cv --out-link result-cv
nix build .#cv --out-link result-cv -L
cp -vr --dereference $(readlink -f result-cv) cv
cp -ar cv/* output/
Expand Down
8 changes: 8 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@

src = pkgs.lib.cleanSource ./.;

nativeBuildInputs = [
typst
];

buildPhase = ''
runHook preBuild
${lib.getExe typst} fonts --ignore-system-fonts --font-path ${fontsConf}
${lib.getExe typst} \
compile \
--root ./. \
Expand Down Expand Up @@ -84,6 +90,8 @@
runtimeInputs = [ typst ];

text = ''
${lib.getExe typst} fonts --ignore-system-fonts --font-path ${fontsConf}
${lib.getExe typst} \
compile \
--root ./. \
Expand Down
2 changes: 1 addition & 1 deletion src/cv/common/lib.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "metadata.typ": *
#import "@preview/fontawesome:0.4.0": *
#import "@preview/fontawesome:0.5.0": *

#let languageItem(
lang: "",
Expand Down
5 changes: 2 additions & 3 deletions src/cv/cv-theme.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/fontawesome:0.4.0": *
#import "@preview/fontawesome:0.5.0": *
#import "common/metadata.typ": *
#import "common/lib.typ": *

Expand Down Expand Up @@ -35,8 +35,7 @@

// --- Paragraphs ---
// Source: https://typst.app/docs/guides/guide-for-latex-users/
set par(justify: true)
show par: set block(spacing: .75em)
set par(justify: true, spacing: .75em)

// --- Links ---
show link: it => {
Expand Down

0 comments on commit a1f96b0

Please sign in to comment.