Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
db24f4a
Remove grid usize overflow tests (#3687)
PgBiel Mar 16, 2024
b279b9d
Fix all cargo doc warnings (#3684)
A-Walrus Mar 16, 2024
babe44c
Fix color documentation (#3688)
frozolotl Mar 19, 2024
15d01c4
Fix warnings introduced by rust 1.77 (#3754)
frozolotl Mar 22, 2024
b2fb64f
Pin CI Rust version (#3763)
laurmaedje Mar 22, 2024
3a5a4d9
Exclude bots from the doc's contributor list (#3731)
Leedehai Mar 23, 2024
784488c
Escape path and entrypoint in `typst init` output (#3753)
frozolotl Mar 23, 2024
c5dcd22
Fix smart quotes in PDF outline (#3790)
elegaanz Mar 25, 2024
cdd8d16
Better handle large numbers from external data files (#3791)
elegaanz Mar 25, 2024
2c6b69f
Fix compression of punctuation marks at line start of end (#3744)
Jocs Apr 1, 2024
d007df3
Fix patterns with spacing in PDF (#3793)
EpicEricEE Apr 1, 2024
b488593
Fix source path resolution in import analysis (#3842)
Myriad-Dreamin Apr 1, 2024
8529ffe
Fix `str.trim(regex,at:end)` when the whole string is matched (#3730)
Leedehai Apr 1, 2024
c5e0947
Fixed interaction of first_line_indent with outline (#3745)
etiennecollin Apr 2, 2024
cb24d10
Fix tab rendering for raw block with lang "typ(c)" (#3847)
Leedehai Apr 2, 2024
444c868
Never shrink lines in raw blocks (#3796)
elegaanz Apr 2, 2024
05b1096
Support negative dimensions in rectangles (#3807)
elegaanz Apr 2, 2024
f246f0a
A few CI and crate config changes (#3852)
laurmaedje Apr 2, 2024
ca0754d
Fix wrong PDF page labels (#3836) (#3837)
gabriel-araujjo Apr 3, 2024
88b305c
Fix newline parsing behavior in code mode (#3780)
Leedehai Apr 3, 2024
6ca8717
Let the lexer respect linebreaks within inline raw (#3756)
Leedehai Apr 4, 2024
e5f79c8
Fix broken links in tables.md on striped rows and columns (#3884)
Leedehai Apr 6, 2024
cc46267
Deformed stroke for some length values fix (#3860)
Tom4sCruz Apr 6, 2024
fcd7705
Fix missing blackboard bold letters (#3759)
joserlopes Apr 8, 2024
8e025c9
Fix raw bidi text (#3885)
A-Walrus Apr 9, 2024
e039552
Better test runner (#3922)
laurmaedje Apr 13, 2024
b729fb3
Mention `typst fonts` for `font` parameter (#3919)
rikhuijzer Apr 13, 2024
03c3055
Fix path in sized container (#3954)
laurmaedje Apr 18, 2024
ac7dff1
Fix compiler panic on stack with infinite spacing (#3918)
MDLC01 Apr 18, 2024
2f8b97f
Add regression tests for container sizing with layoutable child (#3955)
laurmaedje Apr 18, 2024
dd60b3b
Fix empty 2-d math args with whitespace/trivia (#3786)
wrzian Apr 19, 2024
ac888e0
Fix suffix computation for Source::replace (#3989)
QuarticCat Apr 30, 2024
de6090b
Add the list of built-in fonts in the documentation (#4026)
3w36zj6 Apr 30, 2024
a4522b0
Fix the broken fuzz build (#4056)
Leedehai May 2, 2024
03e3f01
Slice the before_window at char boundaries (#4028)
Myriad-Dreamin May 6, 2024
58633bf
Make more characters stretchable by mid() (#4092)
Leedehai May 7, 2024
a7102f8
Fix footnote migration (#4095)
laurmaedje May 8, 2024
3cc6e58
Run PDF and SVG export in CI (#4097)
laurmaedje May 8, 2024
1b40583
Revise docs for `place` element (#4105)
bluebear94 May 13, 2024
f535d90
`show math.equation: set align(..)` shall not break alignment points …
Leedehai May 15, 2024
87513f9
Bump hayagriva (#4144)
laurmaedje May 16, 2024
4d2d44f
Fix link in metadata docs (#4146)
laurmaedje May 16, 2024
1b119c3
Fix dangling mention of locate (#4147)
laurmaedje May 16, 2024
573a2db
Documentation for literals (#4149)
laurmaedje May 16, 2024
ba1ae1c
Slightly improve tables in `syntax.md` (#4151)
MDLC01 May 16, 2024
c2eddff
Fix raw block has extra space when end with backtick (#4162)
Enter-tainer May 17, 2024
f56408a
Fix equations in RTL text (#4150)
laurmaedje May 17, 2024
24ed6d5
Tweak `usvg` options (#4163)
laurmaedje May 17, 2024
2ecd0b1
Mention that raw and equation syntax works in both markup and code mo…
laurmaedje May 17, 2024
836157a
Fix show rules on queried elements (#4166)
laurmaedje May 17, 2024
09b59d0
Fix mention of current version in test (#4169)
laurmaedje May 17, 2024
59d545d
Update changelog
laurmaedje May 17, 2024
5011510
Version bump
laurmaedje May 17, 2024
9f2631c
Merge upstream v0.11.1
3w36zj6 Aug 21, 2024
712a4a5
docs: `docs/i18n/`を更新
3w36zj6 Aug 21, 2024
bb07c7e
docs: Webサイト上のバージョンを`v0.11.1`に修正
3w36zj6 Aug 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request, merge_group]
env:
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"
TYPST_TESTS_EXTENDED: true

jobs:
# This allows us to have one branch protection rule for the full test matrix.
Expand All @@ -29,16 +30,19 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.77.0
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --no-run
- run: cargo test --workspace --no-fail-fast

checks:
name: Check clippy, formatting, and documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.77.0
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --workspace --all-targets --all-features
- run: cargo fmt --check --all
Expand All @@ -62,5 +66,5 @@ jobs:
with:
toolchain: nightly-2023-09-13
- uses: Swatinem/rust-cache@v2
- run: cargo install cargo-fuzz
- run: cargo install --locked cargo-fuzz@0.12.0
- run: cd tests/fuzz && cargo fuzz build --dev
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.77.0
with:
target: ${{ matrix.target }}

Expand Down
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ desktop.ini
.DS_Store

# Tests and benchmarks
tests/png
tests/pdf
tests/svg
tests/target
tests/typ/**/*.pdf
tests/store
tests/suite/**/*.pdf
tests/fuzz/target
tests/fuzz/corpus
tests/fuzz/artifacts
Expand All @@ -23,6 +20,7 @@ tarpaulin-report.html

# Node
node_modules
tools/test-helper/dist
package-lock.json

# Nix
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Typst日本語ドキュメント翻訳プロジェクトにご興味をお持ち
2. `./docs`内のMarkdownファイル群は、Typstのチュートリアルや入門ガイドなど、言語リファレンス以外のページの本体です。**既存のMarkdownファイルを直接書き換えて翻訳してください**。
それに加えて、`./docs/src/lib.rs`ファイルの[`urlify`関数](https://github.com/search?q=repo%3Atypst-jp/typst-jp.github.io%20urlify&type=code)を編集して、中国語版の記事タイトルを日本語版のものに書き換えてください。このプロセスを抜かすと、WebページのURLが正しく生成されません。
3. 「サードパーティパッケージ」のページの翻訳を追加する場合は、`./static/assets/index2ja.json`も編集する必要があります。
3. 翻訳の際は、[後述のガイドライン](#スタイルマニュアル)を参照し、[v0.11.0時点での公式ドキュメント](https://github.com/typst/typst/tree/v0.11.0/docs)から翻訳してください。
3. 翻訳の際は、[後述のガイドライン](#スタイルマニュアル)を参照し、[v0.11.1時点での公式ドキュメント](https://github.com/typst/typst/tree/v0.11.1/docs)から翻訳してください。
4. 翻訳作業の途中でも、Draft Pull Requestを作成して、翻訳の進捗状況を共有することができます。
5. 翻訳作業が終わったら、Pull Requestを作成し、送信してください。

Expand Down
52 changes: 31 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 14 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default-members = ["crates/typst-cli"]
resolver = "2"

[workspace.package]
version = "0.11.0"
version = "0.11.1"
rust-version = "1.74" # also change in ci.yml
authors = ["The Typst Project Developers"]
edition = "2021"
Expand All @@ -16,17 +16,17 @@ keywords = ["typst"]
readme = "README.md"

[workspace.dependencies]
typst = { path = "crates/typst", version = "0.11.0" }
typst-cli = { path = "crates/typst-cli", version = "0.11.0" }
typst-ide = { path = "crates/typst-ide", version = "0.11.0" }
typst-macros = { path = "crates/typst-macros", version = "0.11.0" }
typst-pdf = { path = "crates/typst-pdf", version = "0.11.0" }
typst-render = { path = "crates/typst-render", version = "0.11.0" }
typst-svg = { path = "crates/typst-svg", version = "0.11.0" }
typst-syntax = { path = "crates/typst-syntax", version = "0.11.0" }
typst-timing = { path = "crates/typst-timing", version = "0.11.0" }
typst-assets = "0.11.0"
typst-dev-assets = { git = "https://github.com/typst/typst-dev-assets", tag = "v0.11.0" }
typst = { path = "crates/typst", version = "0.11.1" }
typst-cli = { path = "crates/typst-cli", version = "0.11.1" }
typst-ide = { path = "crates/typst-ide", version = "0.11.1" }
typst-macros = { path = "crates/typst-macros", version = "0.11.1" }
typst-pdf = { path = "crates/typst-pdf", version = "0.11.1" }
typst-render = { path = "crates/typst-render", version = "0.11.1" }
typst-svg = { path = "crates/typst-svg", version = "0.11.1" }
typst-syntax = { path = "crates/typst-syntax", version = "0.11.1" }
typst-timing = { path = "crates/typst-timing", version = "0.11.1" }
typst-assets = "0.11.1"
typst-dev-assets = { git = "https://github.com/typst/typst-dev-assets", tag = "v0.11.1" }
az = "1.2"
base64 = "0.22"
bitflags = { version = "2", features = ["serde"] }
Expand All @@ -47,7 +47,7 @@ env_proxy = "0.4"
flate2 = "1"
fontdb = { version = "0.16", default-features = false }
fs_extra = "1.3"
hayagriva = "0.5.2"
hayagriva = "0.5.3"
heck = "0.4"
hypher = "0.1.4"
icu_properties = { version = "1.4", features = ["serde"] }
Expand Down Expand Up @@ -94,6 +94,7 @@ semver = "1"
serde = { version = "1.0.184", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
shell-escape = "0.1.5"
siphasher = "1"
smallvec = { version = "1.11.1", features = ["union", "const_generics", "const_new"] }
stacker = "0.1.15"
Expand Down
2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This is an unofficial Japanese translation of the documentation for the typesetting system [Typst](https://typst.app/docs). It has been created with the permission of [Typst GmbH](https://typst.app/legal/).

The repository was forked from the [Chinese version](https://github.com/typst-doc-cn/typst-doc-cn.github.io) and is translated into Japanese based on the official documentation of [Typst v0.11.0](https://typst.app/docs/changelog/#v0.11.0) as of June 2024.
The repository was forked from the [Chinese version](https://github.com/typst-doc-cn/typst-doc-cn.github.io) and is translated into Japanese based on the official documentation of [Typst v0.11.1](https://typst.app/docs/changelog/#v0.11.1) as of June 2024.

The actual working web version can be viewed at the following URL.
> https://typst-jp.github.io/docs/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

組版システム [Typst](https://typst.app/docs) の非公式な日本語ドキュメントです。[Typst GmbH](https://typst.app/legal/) の許諾を得て作成されています。

このリポジトリは[中国語版](https://github.com/typst-doc-cn/typst-doc-cn.github.io)からフォークして作成され、2024年6月時点での最新版である [Typst v0.11.0](https://typst.app/docs/changelog/#v0.11.0) の公式ドキュメントを元に日本語訳を行います。
このリポジトリは[中国語版](https://github.com/typst-doc-cn/typst-doc-cn.github.io)からフォークして作成され、2024年6月時点での最新版である [Typst v0.11.1](https://typst.app/docs/changelog/#v0.11.1) の公式ドキュメントを元に日本語訳を行います。

実際に作動している Web 版は、以下の URL から閲覧できます。
> https://typst-jp.github.io/docs/
Expand Down
4 changes: 1 addition & 3 deletions crates/typst-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ readme = { workspace = true }
[[bin]]
name = "typst"
path = "src/main.rs"
test = false
doctest = false
bench = false
doc = false

[dependencies]
Expand Down Expand Up @@ -51,6 +48,7 @@ semver = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml = { workspace = true }
shell-escape = { workspace = true }
tar = { workspace = true }
tempfile = { workspace = true }
toml = { workspace = true }
Expand Down
12 changes: 10 additions & 2 deletions crates/typst-cli/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,19 @@ fn print_summary(
out.set_color(&gray)?;
write!(out, "> ")?;
out.reset()?;
writeln!(out, "cd {}", project_dir.display())?;
writeln!(
out,
"cd {}",
shell_escape::escape(project_dir.display().to_string().into()),
)?;
out.set_color(&gray)?;
write!(out, "> ")?;
out.reset()?;
writeln!(out, "typst watch {}", template.entrypoint)?;
writeln!(
out,
"typst watch {}",
shell_escape::escape(template.entrypoint.to_string().into()),
)?;
writeln!(out)?;
Ok(())
}
2 changes: 1 addition & 1 deletion crates/typst-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use crate::timings::Timer;

thread_local! {
/// The CLI's exit code.
static EXIT: Cell<ExitCode> = Cell::new(ExitCode::SUCCESS);
static EXIT: Cell<ExitCode> = const { Cell::new(ExitCode::SUCCESS) };
}

/// The parsed commandline arguments.
Expand Down
2 changes: 1 addition & 1 deletion crates/typst-cli/src/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ struct FileSlot {
}

impl FileSlot {
/// Create a new path slot.
/// Create a new file slot.
fn new(id: FileId) -> Self {
Self { id, file: SlotCell::new(), source: SlotCell::new() }
}
Expand Down
Loading