File tree Expand file tree Collapse file tree 5 files changed +58
-58
lines changed Expand file tree Collapse file tree 5 files changed +58
-58
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31
31
### Added
32
32
33
33
<!-- Describe the feature set of the initial release here -->
34
- -
35
- -
36
- -
34
+ -
35
+ -
36
+ -
37
37
38
38
<!--
39
- Below are the target URLs for each version
40
- You can link version numbers (in level-2 headings)
41
- to the corresponding tag on GitHub, or the diff
42
- in comparison to the previous release
39
+ Below are the target URLs for each version
40
+ You can link version numbers (in level-2 headings)
41
+ to the corresponding tag on GitHub, or the diff
42
+ in comparison to the previous release
43
43
-->
44
44
45
45
[ Unreleased ] : https://github.com/<author>/<my-package>/compare/v0.1.0...HEAD
46
- [ 0.1.0 ] : https://github.com/<author>/<my-package>/releases/tag/v0.1.0
46
+ [ 0.1.0 ] : https://github.com/<author>/<my-package>/releases/tag/v0.1.0
Original file line number Diff line number Diff line change @@ -4,21 +4,21 @@ export TYPST_ROOT := root
4
4
5
5
[private ]
6
6
default :
7
- @ just --list --unsorted
7
+ @ just --list --unsorted
8
8
9
9
# generate manual
10
10
doc :
11
- typst compile docs/ manual.typ docs/ manual.pdf
12
- typst compile docs/ thumbnail.typ thumbnail-light.svg
13
- typst compile --input theme=dark docs/ thumbnail.typ thumbnail-dark.svg
11
+ typst compile docs/ manual.typ docs/ manual.pdf
12
+ typst compile docs/ thumbnail.typ thumbnail-light.svg
13
+ typst compile --input theme=dark docs/ thumbnail.typ thumbnail-dark.svg
14
14
15
15
# run test suite
16
16
test * args :
17
- typst-test run {{ args }}
17
+ typst-test run {{ args }}
18
18
19
19
# update test cases
20
20
update * args :
21
- typst-test update {{ args }}
21
+ typst-test update {{ args }}
22
22
23
23
# package the library into the specified destination folder
24
24
package target :
Original file line number Diff line number Diff line change @@ -27,40 +27,40 @@ readarray -t ignores < <(grep -v '^#' .typstignore | grep '[^[:blank:]]')
27
27
28
28
# recursively print all files that are not excluded via .typstignore
29
29
function enumerate {
30
- local root=" $1 "
31
- if [[ -f " $root " ]]; then
32
- echo " $root "
33
- else
34
- local files
35
- readarray -t files < <( find " $root " \
30
+ local root=" $1 "
31
+ if [[ -f " $root " ]]; then
32
+ echo " $root "
33
+ else
34
+ local files
35
+ readarray -t files < <( find " $root " \
36
36
-mindepth 1 -maxdepth 1 \
37
37
-not -name .git \
38
38
-not -name .typstignore)
39
- # declare -p files >&2
39
+ # declare -p files >&2
40
40
41
- local f
42
- for f in " ${files[@]} " ; do
43
- local include
44
- include=1
41
+ local f
42
+ for f in " ${files[@]} " ; do
43
+ local include
44
+ include=1
45
45
46
- local ignore
47
- for ignore in " ${ignores[@]} " ; do
48
- if [[ " $ignore " =~ ^! ]]; then
49
- ignore=" ${ignore: 1} "
50
- if [[ " $f " == ./$ignore ]]; then
51
- # echo "\"$f\" matched \"!$ignore\"" >&2
52
- include=1
53
- fi
54
- elif [[ " $f " == ./$ignore ]]; then
55
- # echo "\"$f\" matched \"$ignore\"" >&2
56
- include=0
57
- fi
58
- done
59
- if [[ " $include " == 1 ]]; then
60
- enumerate " $f "
61
- fi
62
- done
63
- fi
46
+ local ignore
47
+ for ignore in " ${ignores[@]} " ; do
48
+ if [[ " $ignore " =~ ^! ]]; then
49
+ ignore=" ${ignore: 1} "
50
+ if [[ " $f " == ./$ignore ]]; then
51
+ # echo "\"$f\" matched \"!$ignore\"" >&2
52
+ include=1
53
+ fi
54
+ elif [[ " $f " == ./$ignore ]]; then
55
+ # echo "\"$f\" matched \"$ignore\"" >&2
56
+ include=0
57
+ fi
58
+ done
59
+ if [[ " $include " == 1 ]]; then
60
+ enumerate " $f "
61
+ fi
62
+ done
63
+ fi
64
64
}
65
65
66
66
# List of all files that get packaged
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ VERSION="$(read-toml "$ROOT/typst.toml" "version")"
27
27
function resolve-target() {
28
28
local target="$1"
29
29
30
- if [[ "$target" == "@local" ]]; then
31
- echo "${DATA_DIR}/typst/packages/local"
32
- elif [[ "$target" == "@preview" ]]; then
33
- echo "${DATA_DIR}/typst/packages/preview"
34
- else
35
- echo "$target"
36
- fi
30
+ if [[ "$target" == "@local" ]]; then
31
+ echo "${DATA_DIR}/typst/packages/local"
32
+ elif [[ "$target" == "@preview" ]]; then
33
+ echo "${DATA_DIR}/typst/packages/preview"
34
+ else
35
+ echo "$target"
36
+ fi
37
37
}
Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ categories = []
14
14
disciplines = []
15
15
# compiler = ""
16
16
exclude = [
17
- " .github" ,
18
- " docs" ,
19
- " scripts" ,
20
- " tests" ,
21
- " .typstignore" ,
22
- " Justfile" ,
23
- " thumbnail-dark.svg" ,
24
- " thumbnail-light.svg" ,
17
+ " .github" ,
18
+ " docs" ,
19
+ " scripts" ,
20
+ " tests" ,
21
+ " .typstignore" ,
22
+ " Justfile" ,
23
+ " thumbnail-dark.svg" ,
24
+ " thumbnail-light.svg" ,
25
25
]
26
26
27
27
# [template]
You can’t perform that action at this time.
0 commit comments