diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-03-15 15:47:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-15 14:47:41 +0000 |
| commit | faca50a240b25a935f9ce310af55d0be51f64303 (patch) | |
| tree | 725ffb16336cdf36bede8d1ce2ce8f6cb188a627 /crates | |
| parent | 9bd14514520684955570bc87ef79b7b08b35f7c4 (diff) | |
Final touches (#3678)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst-cli/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst-ide/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst-macros/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst-pdf/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst-render/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst-svg/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst-syntax/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst-timing/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/typst/src/layout/grid/mod.rs | 4 | ||||
| -rw-r--r-- | crates/typst/src/model/table.rs | 10 | ||||
| -rw-r--r-- | crates/typst/src/visualize/mod.rs | 2 |
12 files changed, 17 insertions, 8 deletions
diff --git a/crates/typst-cli/Cargo.toml b/crates/typst-cli/Cargo.toml index 74c53e46..57251a64 100644 --- a/crates/typst-cli/Cargo.toml +++ b/crates/typst-cli/Cargo.toml @@ -10,6 +10,7 @@ edition = { workspace = true } homepage = { workspace = true } repository = { workspace = true } license = { workspace = true } +readme = { workspace = true } [[bin]] name = "typst" diff --git a/crates/typst-ide/Cargo.toml b/crates/typst-ide/Cargo.toml index 28083af4..b2927562 100644 --- a/crates/typst-ide/Cargo.toml +++ b/crates/typst-ide/Cargo.toml @@ -10,6 +10,7 @@ repository = { workspace = true } license = { workspace = true } categories = { workspace = true } keywords = { workspace = true } +readme = { workspace = true } [lib] test = false diff --git a/crates/typst-macros/Cargo.toml b/crates/typst-macros/Cargo.toml index a7f130ec..caef7eb4 100644 --- a/crates/typst-macros/Cargo.toml +++ b/crates/typst-macros/Cargo.toml @@ -10,6 +10,7 @@ repository = { workspace = true } license = { workspace = true } categories = { workspace = true } keywords = { workspace = true } +readme = { workspace = true } [lib] proc-macro = true diff --git a/crates/typst-pdf/Cargo.toml b/crates/typst-pdf/Cargo.toml index 61b84498..709ed108 100644 --- a/crates/typst-pdf/Cargo.toml +++ b/crates/typst-pdf/Cargo.toml @@ -10,6 +10,7 @@ repository = { workspace = true } license = { workspace = true } categories = { workspace = true } keywords = { workspace = true } +readme = { workspace = true } [lib] doctest = false diff --git a/crates/typst-render/Cargo.toml b/crates/typst-render/Cargo.toml index 28033b3e..2db9b5ed 100644 --- a/crates/typst-render/Cargo.toml +++ b/crates/typst-render/Cargo.toml @@ -10,6 +10,7 @@ repository = { workspace = true } license = { workspace = true } categories = { workspace = true } keywords = { workspace = true } +readme = { workspace = true } [lib] doctest = false diff --git a/crates/typst-svg/Cargo.toml b/crates/typst-svg/Cargo.toml index a0acff95..143e88ed 100644 --- a/crates/typst-svg/Cargo.toml +++ b/crates/typst-svg/Cargo.toml @@ -10,6 +10,7 @@ repository = { workspace = true } license = { workspace = true } categories = { workspace = true } keywords = { workspace = true } +readme = { workspace = true } [lib] doctest = false diff --git a/crates/typst-syntax/Cargo.toml b/crates/typst-syntax/Cargo.toml index 708f7de8..f92b6d9b 100644 --- a/crates/typst-syntax/Cargo.toml +++ b/crates/typst-syntax/Cargo.toml @@ -10,6 +10,7 @@ repository = { workspace = true } license = { workspace = true } categories = { workspace = true } keywords = { workspace = true } +readme = { workspace = true } [lib] doctest = false diff --git a/crates/typst-timing/Cargo.toml b/crates/typst-timing/Cargo.toml index 557561ea..525d65c5 100644 --- a/crates/typst-timing/Cargo.toml +++ b/crates/typst-timing/Cargo.toml @@ -10,6 +10,7 @@ repository = { workspace = true } license = { workspace = true } categories = { workspace = true } keywords = { workspace = true } +readme = { workspace = true } [dependencies] typst-syntax = { workspace = true } diff --git a/crates/typst/Cargo.toml b/crates/typst/Cargo.toml index f15cdc8a..fd82c2cc 100644 --- a/crates/typst/Cargo.toml +++ b/crates/typst/Cargo.toml @@ -10,6 +10,7 @@ edition = { workspace = true } homepage = { workspace = true } repository = { workspace = true } license = { workspace = true } +readme = { workspace = true } [lib] doctest = false diff --git a/crates/typst/src/layout/grid/mod.rs b/crates/typst/src/layout/grid/mod.rs index 4ad096eb..30507e7b 100644 --- a/crates/typst/src/layout/grid/mod.rs +++ b/crates/typst/src/layout/grid/mod.rs @@ -191,8 +191,8 @@ pub struct GridElem { /// /// ```example /// #grid( - /// fill: (col, row) => - /// if calc.even(col + row) { luma(230) } + /// fill: (x, y) => + /// if calc.even(x + y) { luma(230) } /// else { white }, /// align: center + horizon, /// columns: 4, diff --git a/crates/typst/src/model/table.rs b/crates/typst/src/model/table.rs index 1b616a0b..50578780 100644 --- a/crates/typst/src/model/table.rs +++ b/crates/typst/src/model/table.rs @@ -160,12 +160,12 @@ pub struct TableElem { /// /// ```example /// #table( - /// fill: (col, _) => - /// if calc.odd(col) { luma(240) } + /// fill: (x, _) => + /// if calc.odd(x) { luma(240) } /// else { white }, - /// align: (col, row) => - /// if row == 0 { center } - /// else if col == 0 { left } + /// align: (x, y) => + /// if y == 0 { center } + /// else if x == 0 { left } /// else { right }, /// columns: 4, /// [], [*Q1*], [*Q2*], [*Q3*], diff --git a/crates/typst/src/visualize/mod.rs b/crates/typst/src/visualize/mod.rs index 086c150c..5c8bf646 100644 --- a/crates/typst/src/visualize/mod.rs +++ b/crates/typst/src/visualize/mod.rs @@ -28,7 +28,7 @@ use crate::foundations::{category, Category, Scope}; /// /// If you want to create more advanced drawings or plots, also have a look at /// the [CetZ](https://github.com/johannes-wolf/cetz) package as well as more -/// specialized [packages] for your use case. +/// specialized [packages]($universe) for your use case. #[category] pub static VISUALIZE: Category; |
