Skip to content

Commit

Permalink
Replace deprecated functions (#41)
Browse files Browse the repository at this point in the history
* Replace page count function

* Correct passed parameter type

* Replace action with latest
  • Loading branch information
krestenlaust authored Feb 20, 2025
1 parent bda3c93 commit d409892
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
cp report-template/template.typ report-template-empty/template.typ
- name: Compile singlefile-template
uses: krestenlaust/typst-action@v0.12.0
uses: lvignoli/typst-action@main
with:
source_file: singlefile-template/main.typ

Expand Down
4 changes: 2 additions & 2 deletions report-template/template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
\
*Copies:* 1\ \
*Page Numbers:* #(locate(loc => counter(page).final(loc).at(0)))\ \
*Page Numbers:* #(context counter(page).final().first())\ \
],
box(width: 100%, height: 100%, stroke: black, inset: 8pt)[
*Abstract:*\
Expand All @@ -94,7 +94,7 @@
pagebreak()
// Table of contents.
page(outline(depth: 3, indent: true))
page(outline(depth: 3, indent: auto))
pagebreak()
Expand Down

0 comments on commit d409892

Please sign in to comment.