From f03c1e05548b6bde2b1929cf5716ebb87a3508dd Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 08:48:57 +0100 Subject: [PATCH 1/6] build: update nix channel to 24.11 (#69) Update nix channel in shell.nix used by actions in order to make use of Typst v0.12.0 andd remove dependency of the nix-unstable channel refers to: #69 --- shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index a71ba0e..e3ea31b 100644 --- a/shell.nix +++ b/shell.nix @@ -1,5 +1,5 @@ let - nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable"; + nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.11"; pkgs = import nixpkgs { config = {}; overlays = []; }; in From 0856fb4570b8869b277ecf27141d03f0bc90267b Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:02:25 +0100 Subject: [PATCH 2/6] fix(outline): remove `here()` location paramter at src/pages/outline.typ:16:16 due to "calling `query` with a location is deprecated" --- src/pages/outline.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/outline.typ b/src/pages/outline.typ index 4d6aeab..143e4ce 100644 --- a/src/pages/outline.typ +++ b/src/pages/outline.typ @@ -13,7 +13,7 @@ #let render_filtered_outline(title: str, kind: selector) = ( context { - let elems = query(figure.where(kind: kind), here()) + let elems = query(figure.where(kind: kind)) let count = elems.len() show outline.entry: it => { From 26f77f369040a4d6a66ea027d057feaab8f061d7 Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:02:58 +0100 Subject: [PATCH 3/6] fix(glossar): remove `here()` location paramter at src/glossarium.typ:40:4 due to "calling `query` with a location is deprecated" --- src/glossarium.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glossarium.typ b/src/glossarium.typ index 7589b4a..6624619 100644 --- a/src/glossarium.typ +++ b/src/glossarium.typ @@ -37,7 +37,7 @@ SOFTWARE.*/ loc, ) } else { - query(selector(label(__glossary_label_prefix + key)), loc) + query(selector(label(__glossary_label_prefix + key))) } } From d9e7d875d6b12c1a055a7ddb94d6792627681a3e Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:03:12 +0100 Subject: [PATCH 4/6] fix(glossar): remove `here()` location parameter at src/glossarium.typ:52:29 due to "calling `state.final` with a location is deprecated" --- src/glossarium.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glossarium.typ b/src/glossarium.typ index 6624619..ce7f5a6 100644 --- a/src/glossarium.typ +++ b/src/glossarium.typ @@ -49,7 +49,7 @@ SOFTWARE.*/ // Reference a term #let gls(key, suffix: none, long: none, display: none) = { context { - let __glossary_entries = __glossary_entries.final(here()) + let __glossary_entries = __glossary_entries.final() if key in __glossary_entries { let entry = __glossary_entries.at(key) From f3ebfaf5380c50f60a063b27e8e42b931ca0a27e Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:03:24 +0100 Subject: [PATCH 5/6] fix(glossar): remove `here()` location paramter at src/glossarium.typ:32:4 due to "calling `state.final` with a location is deprecated" --- src/glossarium.typ | 1 - 1 file changed, 1 deletion(-) diff --git a/src/glossarium.typ b/src/glossarium.typ index ce7f5a6..d4ceedb 100644 --- a/src/glossarium.typ +++ b/src/glossarium.typ @@ -34,7 +34,6 @@ SOFTWARE.*/ loc, inclusive: false, ), - loc, ) } else { query(selector(label(__glossary_label_prefix + key))) From ddfec22fe84733e63c2b50eb70761075a92ebc29 Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:04:17 +0100 Subject: [PATCH 6/6] fix(style): add context around `counter.display` src/style.typ:187:23 due to "`counter.display` without context is deprecated" --- src/style.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style.typ b/src/style.typ index 6ddd72b..511adf0 100644 --- a/src/style.typ +++ b/src/style.typ @@ -184,7 +184,7 @@ show figure.caption: c => [ #if c.body.fields().len() > 0 { text(weight: "medium")[ - #c.supplement #c.counter.display("1.1.1") + #c.supplement #context c.counter.display("1.1.1") ] c.separator }