Skip to content
This repository was archived by the owner on Sep 27, 2025. It is now read-only.

Commit 6e3ef47

Browse files
repo: reduce places where version is
1 parent 2a49599 commit 6e3ef47

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

doc/manual.typ

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "../src/lib.typ" as flow: *
1+
#import "/src/lib.typ" as flow: *
22

33
#show: note.with(
44
title: "flow manual",
@@ -7,6 +7,7 @@
77
cw: "\"you\"",
88
)
99

10+
#let version = toml("/typst.toml").package.version
1011
#let normal = text.with(font: "IBM Plex Sans")
1112

1213
#show raw.where(lang: "example"): it => {
@@ -78,12 +79,16 @@ I can guarantee you it is worthy of your time.
7879

7980
+ Use the the following boilerplate in your note:
8081

81-
```typ
82-
#import "@preview/flow:0.1.1": *
83-
#show: note.with(
84-
title: "Super cool note title!",
82+
#raw(
83+
block: true,
84+
lang: "typ",
85+
{
86+
"#import \"@preview/flow:" + version + "\": *\n"
87+
"#show: note.with(\n"
88+
" title: \"Super cool note title!\",\n"
89+
")"
90+
}
8591
)
86-
```
8792

8893
+ Start typing the actual note like any other typst document! uwu
8994

doc/workflow.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "../src/lib.typ" as flow: *
1+
#import "/src/lib.typ" as flow: *
22
#let accent = ("root", "vertex", "yield", "edge").zip(
33
duality.values().slice(2)
44
)

util/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -eu
44
source `dirname $0`/common
55

6-
target=~/.local/share/typst/packages/${1:-local}/flow/0.1.1
6+
target=~/.local/share/typst/packages/${1:-local}/flow/$version
77

88
mkdir -p `dirname $target`
99
rm -rf $target

0 commit comments

Comments
 (0)