Skip to content

Commit 9d6c049

Browse files
treewide: Update version (#105)
2 parents 395e707 + 0a7585f commit 9d6c049

File tree

11 files changed

+19
-37
lines changed

11 files changed

+19
-37
lines changed

.github/workflows/ci.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ jobs:
1515
- uses: actions/checkout@v3
1616
with:
1717
submodules: recursive
18-
- uses: awalsh128/cache-apt-pkgs-action@latest
19-
with:
20-
packages: imagemagick cargo parallel
21-
version: 1.0
2218
- name: Install just from crates.io
2319
uses: baptiste0928/cargo-install@v3
2420
with:
@@ -31,10 +27,10 @@ jobs:
3127
tag: ci-semi-stable
3228
- run: |
3329
mkdir -p ~/.local/share/typst/packages/preview/cetz
34-
git clone --depth 1 --branch v0.3.1 https://github.com/cetz-package/cetz.git ~/.local/share/typst/packages/preview/cetz/0.3.1
30+
git clone --depth 1 --branch v0.3.2 https://github.com/cetz-package/cetz.git ~/.local/share/typst/packages/preview/cetz/0.3.2
3531
- uses: typst-community/setup-typst@v3
3632
with:
37-
typst-version: '0.12.0-rc2'
33+
typst-version: '0.12.0'
3834
cache-dependency-path: src/cetz.typ
3935
- run: |
4036
just install @local

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ For information, see the [manual (stable)](https://github.com/cetz-package/cetz-
4848

4949
To use this package, simply add the following code to your document:
5050
```
51-
#import "@preview/cetz:0.3.1"
52-
#import "@preview/cetz-plot:0.1.0": plot, chart
51+
#import "@preview/cetz:0.3.2"
52+
#import "@preview/cetz-plot:0.1.1": plot, chart
5353
5454
#cetz.canvas({
5555
// Your plot/chart code goes here

doc/style.typ

+2-16
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#import "example.typ": example
22
#import "/src/lib.typ"
33

4-
#import "@preview/tidy:0.1.0"
4+
#import "@preview/tidy:0.3.0"
55
#import "@preview/t4t:0.3.2": is
66

77
#let show-function(fn, style-args) = {
@@ -61,7 +61,7 @@
6161
stack(dir: ttb, spacing: 1em,
6262
// name <type> Default: <default>
6363
block(breakable: false, width: 100%, stack(dir: ltr,
64-
[#text(weight: "bold", name + [:]) #types.map(tidy.styles.default.show-type).join(" or ")],
64+
[#text(weight: "bold", name + [:]) #types.map(tidy.styles.default.show-type.with(style-args: tidy.styles.default)).join(" or ")],
6565
if show-default {
6666
align(right)[
6767
Default: #raw(
@@ -77,19 +77,6 @@
7777
)
7878
}
7979

80-
81-
#let show-type = tidy.styles.default.show-type
82-
#let show-outline = tidy.styles.default.show-outline
83-
#let show-parameter-list = tidy.styles.default.show-parameter-list
84-
85-
#let style = (
86-
show-function: show-function,
87-
show-parameter-block: show-parameter-block.with(in-tidy: true),
88-
show-type: show-type,
89-
show-outline: show-outline,
90-
show-parameter-list: show-parameter-list
91-
)
92-
9380
#let parse-show-module(path) = {
9481
tidy.show-module(
9582
tidy.parse-module(
@@ -102,6 +89,5 @@
10289
),
10390
show-outline: false,
10491
sort-functions: none,
105-
style: style
10692
)
10793
}

gallery/barchart.typ

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#import "@preview/cetz:0.3.1": canvas, draw
2-
#import "@preview/cetz-plot:0.1.0": chart
1+
#import "@preview/cetz:0.3.2": canvas, draw
2+
#import "@preview/cetz-plot:0.1.1": chart
33

44
#set page(width: auto, height: auto, margin: .5cm)
55

gallery/line.typ

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#import "@preview/cetz:0.3.1": canvas, draw
2-
#import "@preview/cetz-plot:0.1.0": plot
1+
#import "@preview/cetz:0.3.2": canvas, draw
2+
#import "@preview/cetz-plot:0.1.1": plot
33

44
#set page(width: auto, height: auto, margin: .5cm)
55

gallery/piechart.typ

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#import "@preview/cetz:0.3.1"
2-
#import "@preview/cetz-plot:0.1.0": chart
1+
#import "@preview/cetz:0.3.2"
2+
#import "@preview/cetz-plot:0.1.1": chart
33

44
#set page(width: auto, height: auto, margin: .5cm)
55

gallery/pyramid.typ

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#import "@preview/cetz:0.3.1"
2-
#import "@preview/cetz-plot:0.1.0": chart
1+
#import "@preview/cetz:0.3.2"
2+
#import "@preview/cetz-plot:0.1.1": chart
33

44
#set page(width: auto, height: auto, margin: .5cm)
55

manual.pdf

49.4 KB
Binary file not shown.

manual.typ

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ CeTZ-Plot is a simple plotting library for use with CeTZ.
3939

4040
This is the minimal starting point:
4141
#pad(left: 1em)[```typ
42-
#import "@preview/cetz:0.3.1"
43-
#import "@preview/cetz-plot:0.1.0"
42+
#import "@preview/cetz:0.3.2"
43+
#import "@preview/cetz-plot:0.1.1"
4444
#cetz.canvas({
4545
import cetz.draw: *
4646
import cetz-plot: *

src/cetz.typ

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Import cetz into the root scope. Import cetz by importing this file only!
2-
#import "@preview/cetz:0.3.1": *
2+
#import "@preview/cetz:0.3.2": *

typst.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "cetz-plot"
3-
version = "0.1.0"
4-
compiler = "0.11.0"
3+
version = "0.1.1"
4+
compiler = "0.12.0"
55
repository = "https://github.com/cetz-package/cetz-plot"
66
entrypoint = "src/lib.typ"
77
authors = [

0 commit comments

Comments
 (0)