Skip to content

Commit

Permalink
treewide: Update version (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf authored Jan 23, 2025
2 parents 395e707 + 0a7585f commit 9d6c049
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 37 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: imagemagick cargo parallel
version: 1.0
- name: Install just from crates.io
uses: baptiste0928/cargo-install@v3
with:
Expand All @@ -31,10 +27,10 @@ jobs:
tag: ci-semi-stable
- run: |
mkdir -p ~/.local/share/typst/packages/preview/cetz
git clone --depth 1 --branch v0.3.1 https://github.com/cetz-package/cetz.git ~/.local/share/typst/packages/preview/cetz/0.3.1
git clone --depth 1 --branch v0.3.2 https://github.com/cetz-package/cetz.git ~/.local/share/typst/packages/preview/cetz/0.3.2
- uses: typst-community/setup-typst@v3
with:
typst-version: '0.12.0-rc2'
typst-version: '0.12.0'
cache-dependency-path: src/cetz.typ
- run: |
just install @local
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ For information, see the [manual (stable)](https://github.com/cetz-package/cetz-

To use this package, simply add the following code to your document:
```
#import "@preview/cetz:0.3.1"
#import "@preview/cetz-plot:0.1.0": plot, chart
#import "@preview/cetz:0.3.2"
#import "@preview/cetz-plot:0.1.1": plot, chart
#cetz.canvas({
// Your plot/chart code goes here
Expand Down
18 changes: 2 additions & 16 deletions doc/style.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import "example.typ": example
#import "/src/lib.typ"

#import "@preview/tidy:0.1.0"
#import "@preview/tidy:0.3.0"
#import "@preview/t4t:0.3.2": is

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


#let show-type = tidy.styles.default.show-type
#let show-outline = tidy.styles.default.show-outline
#let show-parameter-list = tidy.styles.default.show-parameter-list

#let style = (
show-function: show-function,
show-parameter-block: show-parameter-block.with(in-tidy: true),
show-type: show-type,
show-outline: show-outline,
show-parameter-list: show-parameter-list
)

#let parse-show-module(path) = {
tidy.show-module(
tidy.parse-module(
Expand All @@ -102,6 +89,5 @@
),
show-outline: false,
sort-functions: none,
style: style
)
}
4 changes: 2 additions & 2 deletions gallery/barchart.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "@preview/cetz:0.3.1": canvas, draw
#import "@preview/cetz-plot:0.1.0": chart
#import "@preview/cetz:0.3.2": canvas, draw
#import "@preview/cetz-plot:0.1.1": chart

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

Expand Down
4 changes: 2 additions & 2 deletions gallery/line.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "@preview/cetz:0.3.1": canvas, draw
#import "@preview/cetz-plot:0.1.0": plot
#import "@preview/cetz:0.3.2": canvas, draw
#import "@preview/cetz-plot:0.1.1": plot

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

Expand Down
4 changes: 2 additions & 2 deletions gallery/piechart.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "@preview/cetz:0.3.1"
#import "@preview/cetz-plot:0.1.0": chart
#import "@preview/cetz:0.3.2"
#import "@preview/cetz-plot:0.1.1": chart

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

Expand Down
4 changes: 2 additions & 2 deletions gallery/pyramid.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "@preview/cetz:0.3.1"
#import "@preview/cetz-plot:0.1.0": chart
#import "@preview/cetz:0.3.2"
#import "@preview/cetz-plot:0.1.1": chart

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

Expand Down
Binary file modified manual.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions manual.typ
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ CeTZ-Plot is a simple plotting library for use with CeTZ.

This is the minimal starting point:
#pad(left: 1em)[```typ
#import "@preview/cetz:0.3.1"
#import "@preview/cetz-plot:0.1.0"
#import "@preview/cetz:0.3.2"
#import "@preview/cetz-plot:0.1.1"
#cetz.canvas({
import cetz.draw: *
import cetz-plot: *
Expand Down
2 changes: 1 addition & 1 deletion src/cetz.typ
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Import cetz into the root scope. Import cetz by importing this file only!
#import "@preview/cetz:0.3.1": *
#import "@preview/cetz:0.3.2": *
4 changes: 2 additions & 2 deletions typst.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "cetz-plot"
version = "0.1.0"
compiler = "0.11.0"
version = "0.1.1"
compiler = "0.12.0"
repository = "https://github.com/cetz-package/cetz-plot"
entrypoint = "src/lib.typ"
authors = [
Expand Down

0 comments on commit 9d6c049

Please sign in to comment.