Skip to content

Merge upstream v0.12.0 #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 457 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
457 commits
Select commit Hold shift + click to select a range
82f13d9
Reword docs for `math.cancel` (#4444)
AnarchistHoneybun Jul 6, 2024
2df138a
Open with (detached) custom viewers and raise error on failure (#4430)
Coekjan Jul 6, 2024
394ba50
Rename `notes.*` to `note.*` & Add some music symbols (#4488)
Coekjan Jul 6, 2024
59374f7
Avoid spaces around ignorant and invisible elements in math (#4348)
EpicEricEE Jul 6, 2024
86af5b5
Allow non-utf8 values for `input` and `output` (#4517)
T0mstone Jul 8, 2024
d1c7d08
Primes should not further raise next superscript's position (#4492)
Leedehai Jul 8, 2024
34990f7
Bump dependencies (#4523)
laurmaedje Jul 8, 2024
b121939
Fix suggestions for '.' after code mode has exited. (#4470)
shinyfelix Jul 9, 2024
79b77d5
Mark synthesized prime symbol frame text-like (#4525)
Leedehai Jul 9, 2024
46ab4ed
Basic Definition Finder for IDE (#4309)
Myriad-Dreamin Jul 9, 2024
3b382cb
Refactor `impl Eval for ast::FuncCall<'_>` (#4435)
Coekjan Jul 10, 2024
3c22902
Add missing keys to manifest types (#4494)
tingerrr Jul 10, 2024
36042ff
Remove `place.flush` from global scope (#4537)
laurmaedje Jul 11, 2024
be51686
Spans for cross-file go-to-definition (#4539)
laurmaedje Jul 11, 2024
ab5cebc
Let test error hide line number if it's zero (#4535)
Leedehai Jul 11, 2024
5c71ad7
Do not conflate Archivo Narrow and Archivo (Black) fonts (#4478)
matze Jul 14, 2024
98d98a4
Short-circuit on None's when laying out AttachElem (#4546)
Leedehai Jul 14, 2024
4d8976b
Fix lexer behavior on non-whitespace before ref (#4553)
Coekjan Jul 14, 2024
a3f3a1a
Change the signature of `World::main` (#4531)
Myriad-Dreamin Jul 14, 2024
17ee3df
Wrap outline entry body in LRE/RLE + make smart quotes ignore directi…
bluebear94 Jul 14, 2024
ac322e3
Save and restore graphics state for every frame (#4496)
EpicEricEE Jul 14, 2024
f0407d4
Wrapping with parens should not push superscripts higher (#4545)
Leedehai Jul 15, 2024
f3863f1
Remove an unnecessary mutable specifier (#4557)
Leedehai Jul 15, 2024
09e0464
Fix duplicate completions (#4563)
laurmaedje Jul 15, 2024
993e7a4
Move the early exit inside `stretch_glyph()` upward (#4570)
Leedehai Jul 17, 2024
df56a2d
Allow absolute lengths in `scale` (#4271)
bluebear94 Jul 17, 2024
0ea4b1b
Update nixpkgs input (#4575)
mkorje Jul 17, 2024
4275447
Fix panic in link linebreaking (#4579)
laurmaedje Jul 18, 2024
3ef0991
Tune hyphenation (#4584)
laurmaedje Jul 19, 2024
3aa18be
Fix approximated size of `reflow: true` transformations (#4462)
shinyfelix Jul 20, 2024
0c37a2c
Support transparent page fill (#4586)
laurmaedje Jul 20, 2024
96d456e
Move matrix layout logic's early exit upward (#4583)
Leedehai Jul 20, 2024
46ef8e1
Deprecate some things (#4562)
laurmaedje Jul 20, 2024
9b001e2
Use texts of the first occurrences for `/ToUnicode` CMap (#4585)
YDX-2147483647 Jul 20, 2024
bd72b95
Conversion from int to bytes and back (#4490)
chicoferreira Jul 22, 2024
b037c19
Explanation of void return in the functions documentation (#4590)
jiricekcz Jul 22, 2024
684efa2
Raise error when failing to load & parse the specified certificate (#…
Coekjan Jul 22, 2024
1d74c8e
Add `non-zero` and `even-odd` fill rules to `path` and `polygon` (#4580)
HydroH Jul 22, 2024
c4dd6fa
Adjust the number of color components written to the pdf according to…
FlorentCLMichel Jul 22, 2024
6db95c6
Bump openssl from 0.10.64 to 0.10.66 (#4599)
dependabot[bot] Aug 5, 2024
33f13d7
Fix historical ligatures for texts (#4603)
Leedehai Aug 5, 2024
d769b21
Add Latin translation (#4609)
ssotoen Aug 5, 2024
5e187a5
Add font exceptions for Kaiti SC and Kaiti TC (#4616)
Leedehai Aug 5, 2024
d06a26e
Export `ty` and `scope` macros before mod decls to sidestep a rust-an…
Leedehai Aug 5, 2024
1f81281
Fix the show rule effect for bibliography heading level (#4622)
Leedehai Aug 5, 2024
51102da
Fixed docs typo (#4628)
jbirnick Aug 5, 2024
dfdcc19
Remove completed items from roadmap (#4647)
reknih Aug 5, 2024
ed24779
Fix alignment of gradients and patterns on strokes in PNG (#4634)
EpicEricEE Aug 5, 2024
6fbba6d
Better document numbering functions (#4648)
MDLC01 Aug 5, 2024
9909f12
Bump to Rust 1.80 (#4681)
laurmaedje Aug 5, 2024
211b546
Fixes counter stepping behavior (#4631)
jbirnick Aug 5, 2024
810491c
Add missing under/over-delimiters (#4637)
mkorje Aug 5, 2024
672f6e5
Add typst-kit crate (#4540)
tingerrr Aug 5, 2024
18ce3f1
Automatically get footnote numbering in counter display (#4686)
EpicEricEE Aug 5, 2024
6856d5e
Support multiple stylistic sets in text (#4685)
bluebear94 Aug 5, 2024
cd02ae7
Move roadmap and community pages out of this repository (#4688)
laurmaedje Aug 6, 2024
7496dd7
Bump bytemuck (#4690)
laurmaedje Aug 6, 2024
a88899e
Bail out of reparse in `expr_with_paren` if we land on a different ch…
bluebear94 Aug 8, 2024
a6a8cda
Make under/overlines behave the same as accents in attach base (#4695)
mkorje Aug 9, 2024
b07607d
Split shorthands into math and markup, add tilde shorthand (#4706)
mkorje Aug 9, 2024
831062a
Fix system font loading (#4714)
laurmaedje Aug 9, 2024
d06f3f1
Implement math mode language for `raw` (#4687)
jakobjpeters Aug 11, 2024
70931ac
Fix crash when local package is missing and make OpenSSL optional in…
FlorentCLMichel Aug 11, 2024
79fb2c3
Fix `calc.inf`, `-calc.inf`, and `calc.nan` reprs and displays (#4724)
MDLC01 Aug 11, 2024
54a1a74
Allow the extension tab to refresh test images in background (#4689)
Leedehai Aug 11, 2024
324c937
Improve documentation for `float` and `int` types (#4725)
MDLC01 Aug 12, 2024
3dbaf3a
Check cyclic-import when importing package (#4737)
Coekjan Aug 12, 2024
d84a7e4
Document exact sizes of mathematical spaces (#4738)
ssotoen Aug 12, 2024
351bac8
Turn `repeat` into a single layouter (#4758)
laurmaedje Aug 15, 2024
ccd4524
Fix lexer on sth followed by comments (#4739)
Coekjan Aug 15, 2024
0edd8ec
Improve `repr` for `type(none)` and `type(auto)` (#4730)
LingkKang Aug 15, 2024
c43997d
Move `calc.nan` to `float.nan` and add `float.inf` (#4733)
MDLC01 Aug 15, 2024
d221a89
Adjust the baseline of root radicand frame (#4736)
Leedehai Aug 15, 2024
4853726
Add `gap` and `justify` parameters to `repeat` (#4644)
EpicEricEE Aug 15, 2024
feb0c91
Move paragraph widow and orphan prevention into flow (#4767)
laurmaedje Aug 16, 2024
d97d719
Fix document set rules (#4768)
laurmaedje Aug 16, 2024
b068719
Consolidate flow layout (#4772)
laurmaedje Aug 16, 2024
2ba59e8
Move column layout into flow (#4774)
laurmaedje Aug 16, 2024
e11ad7d
Fix `lr` docs example (#4777)
mkorje Aug 17, 2024
eb0e0fe
Split behaved building and StyleVec building (#4782)
laurmaedje Aug 18, 2024
a30b681
Move columns handling directly into `FlowLayouter` (#4792)
laurmaedje Aug 19, 2024
986d624
Share allocations for singletons (#4794)
laurmaedje Aug 20, 2024
cefca7a
Fix typos (#4784)
mkorje Aug 20, 2024
0facb75
Fixed typo in docs for `ProgressSink` (#4785)
Andrew15-5 Aug 20, 2024
238f1fa
Fix docstring in package manifest code (#4801)
PgBiel Aug 22, 2024
4dc2034
Add Icelandic translation (#4799)
bk Aug 22, 2024
88325d7
Add `clap::ValueHint` for input & output CLI arguments (#4765)
Coekjan Aug 23, 2024
cf05284
Small improvements to the test runner (#4838)
laurmaedje Aug 26, 2024
b85217e
Improve documents for the `--font-path` arg & `TYPST_FONT_PATHS` env …
Coekjan Aug 26, 2024
77b6c84
Add back release targets `aarch64-pc-windows-msvc` and `riscv64gc-unk…
mkorje Aug 26, 2024
0b31f60
Fix nested attachments when the base in `math.attach` has attachments…
mkorje Aug 26, 2024
d926e8c
Add double parentheses, braces and shell variants (#4830)
MDLC01 Aug 26, 2024
326fd33
Don't number empty regions of broken block equations (#4836)
EpicEricEE Aug 26, 2024
cd62a19
Add U-shaped arrows (#4807)
MDLC01 Aug 26, 2024
3d980fe
Add miscellaneous symbols from Miscellaneous Mathematical Symbols-B (…
MDLC01 Aug 26, 2024
c57593c
Add checkmark ballot symbols (#4825)
MDLC01 Aug 26, 2024
307b8a5
Add more `emptyset`/`nothing` symbol variants (#4826)
MDLC01 Aug 26, 2024
c38d01e
Add new variants to `parallel` symbol (#4834)
MDLC01 Aug 26, 2024
373163d
Implement math kerning and fix various `math.attach` bugs (#4762)
mkorje Aug 26, 2024
cb98eec
Add more `angle` symbol variants (#4827)
MDLC01 Aug 26, 2024
4365e18
Improve realization and page layout (#4840)
laurmaedje Aug 26, 2024
92f2c7b
Refactor depth checks and apply them in math (#4845)
laurmaedje Aug 27, 2024
b5ef924
Bump dependencies (#4846)
laurmaedje Aug 27, 2024
4e4c517
Merge the two realization functions (#4852)
laurmaedje Aug 27, 2024
ef4482c
Better smartquotes (#4849)
laurmaedje Aug 28, 2024
e6cdcc5
Line numbers (#4516)
PgBiel Aug 29, 2024
89521c2
Add two-em and three-em dash symbols (#4874)
ssotoen Sep 2, 2024
39b4706
Added example to `box.clip` & `block.clip` (#4870)
Dherse Sep 2, 2024
799eb80
Improve unknown variable diagnostics (#4858)
tingerrr Sep 2, 2024
95740ac
Add a skew function (#4803)
Bzero Sep 2, 2024
a2628ac
Hebrew Translation + Smart Quotes (#4842)
danielfleischer Sep 2, 2024
c644dce
Add warnings when labels are ignored or unattached (#4783)
mkorje Sep 2, 2024
51df7ae
Add Devanagari numbering (#4850)
FlorentCLMichel Sep 2, 2024
ecad396
Nuked custom PDF Oklab colorspace code (#4871)
Dherse Sep 2, 2024
1997db0
Parenthesized imports (#4869)
Dherse Sep 2, 2024
1ccfaba
Better hint for non-zero em length (#4873)
Dherse Sep 2, 2024
9fd796e
Add `at` method to `arguments` (#4864)
MDLC01 Sep 2, 2024
cfde809
New realization / Text show rules now work across elements (#4876)
laurmaedje Sep 2, 2024
4fda03a
Animation-friendly export (#4822)
nixon-voxell Sep 3, 2024
a87d477
Add show-text line wrapping test (#4890)
Andrew15-5 Sep 3, 2024
8a8c4ce
Fix typo in `block.clip` documentation (#4895)
Jacobgarm Sep 4, 2024
a452fc9
Terminate tests when stuck for 10s (#4905)
laurmaedje Sep 5, 2024
4cddb48
Fix a few doc typos. (#4914)
inferiorhumanorgans Sep 8, 2024
40fcd97
Make `QuoteElem` locatable (#4909)
Coekjan Sep 8, 2024
a82256c
Flow collection phase (#4931)
laurmaedje Sep 10, 2024
ac982f5
Unified and fixed `Duration` formatting in the CLI (#4587)
Andrew15-5 Sep 10, 2024
8501a65
Add warning when SVG with foreign object is included (#4932)
LaurenzV Sep 10, 2024
a2f91c4
Extract page layout from flow layout (#4937)
laurmaedje Sep 11, 2024
d48293f
Add `copyleft`, `trademark`, and `registered` symbols (#4883)
MDLC01 Sep 14, 2024
db71a17
Add forum and contact links to issue template (#4961)
laurmaedje Sep 15, 2024
16e67f8
Shrink tests (#4967)
laurmaedje Sep 16, 2024
ea145ff
Do not surface warnings from non-last layout iterations (#4970)
laurmaedje Sep 16, 2024
c145e05
Fix bad bound in forcibly overflowing optimal paragraph layout (#4975)
laurmaedje Sep 17, 2024
0abd46c
More robust ratio computation (#4976)
laurmaedje Sep 17, 2024
ab8295c
Fix repetition of Thai characters (#4977)
laurmaedje Sep 17, 2024
92ec566
Fix tags at the start of paragraphs (#4978)
laurmaedje Sep 17, 2024
9c7e1ae
Docs issue template (#5002)
laurmaedje Sep 22, 2024
f283995
Reduce typo count. (#4923)
waywardmonkeys Sep 22, 2024
cb550d9
Fix `table` docs guide example (#4996)
omniwrench Sep 22, 2024
4868990
Improve scripting reference `Methods` example (#5003)
omniwrench Sep 22, 2024
8c813cb
Reorder issue templates (#5004)
laurmaedje Sep 22, 2024
fd449f3
Remedy a 404 in the changelog (#5016)
reknih Sep 24, 2024
e25389a
New flow layout, with multi-column floats (#5017)
laurmaedje Sep 25, 2024
58c71ad
Remove columns.with show rule example (#5028)
knuesel Sep 25, 2024
79558f4
Clarify syntactical difference in `label` function docs (#4957)
mkorje Sep 26, 2024
30a301f
`CellGrid::resolve`: Clarify comment about `resolve_breakable` (#5010)
bluebear94 Sep 26, 2024
7d2142b
Connect maximum size with Updating reference images (#5022)
jsoref Sep 26, 2024
85b4543
Fix two doc typos (#5032)
knuesel Sep 26, 2024
57895ad
Fix example in table.rs (#5035)
ctmbl Sep 26, 2024
a5b506c
Make `jump_from_cursor` return a vector of `Position` (#4886)
Dherse Sep 26, 2024
59d65bb
Fix spacing after bibliography heading (#4964)
EpicEricEE Sep 26, 2024
8d38bd4
Single thread support (#4988)
Dherse Sep 26, 2024
4827f28
Fix smartquotes for Swiss French (#4992)
knuesel Sep 26, 2024
5823429
Add float to bytes conversion and vice-versa (#4989)
T1mVo Sep 26, 2024
a69ada7
Rename place scope "page" to "parent" (#5027)
knuesel Sep 26, 2024
320c288
Fixed-point decimal type (#4900)
PgBiel Sep 26, 2024
f8f95e5
Extend hint for unknown variables in math (#5038)
mkorje Sep 26, 2024
d8cdc66
Add action for moving issues to Typst Forum (#5026)
reknih Sep 26, 2024
5d8685e
Various improvements to nix flake (#5012)
frozolotl Sep 26, 2024
d1379d8
Clarify place documentation (#5031)
knuesel Sep 26, 2024
cf35c2f
Clarify the path argument of the image element (#4892)
kravchenkoloznia Sep 26, 2024
a40e068
Add alignment parameter to matrices and vectors (#4998)
mkorje Sep 26, 2024
e00e3e4
Add `math.stretch` element function (#5030)
mkorje Sep 26, 2024
820750c
Add Bengali Numerals (#4997)
nz366 Sep 26, 2024
584e458
Add Unicode 16 emoji (#4935)
ssotoen Sep 26, 2024
3c90878
Miscellaneous `sym.rs` improvements (#5045)
MDLC01 Sep 26, 2024
ca1f749
Spelling (#5020)
jsoref Sep 26, 2024
efc6b71
Update NewCM fonts to version 6.0.0 (#5005)
mkorje Sep 27, 2024
839983a
Update to Rust version 1.81.0 (#5036)
frozolotl Sep 27, 2024
01af430
Better block caching (#5046)
laurmaedje Sep 27, 2024
ab67eee
Add Bengali-Letter Numbering (#5048)
nz366 Sep 27, 2024
93a5b71
Fix `math.lr` size argument not being applied to enclosed `math.mid` …
mkorje Sep 27, 2024
ba95baa
Don't include "update" in help output if self-update disabled (#4940)
zombiepigdragon Sep 27, 2024
2a1fbd4
Fix numbering documentation (#5051)
emilyyyylime Sep 27, 2024
53135a0
Implement symbol Proposal 21 (iteration 1) (#5053)
MDLC01 Sep 27, 2024
7262ef3
Fix a typo introduced in #5053 (#5055)
MDLC01 Sep 27, 2024
022f34c
Fix flake.nix outside of Linux (#5056)
PgBiel Sep 27, 2024
6614797
Do not write empty destination name tree root (#5066)
reknih Sep 30, 2024
ada9650
Write the font name for Type 3 fonts (#5070)
reknih Sep 30, 2024
1494373
Modify four circles icon to back icon (#5062)
kimushun1101 Sep 30, 2024
0b151b8
Revert return type change in floor, ceil, trunc, quo (#5064)
PgBiel Sep 30, 2024
d5b1bf3
Fix reference documentation mathematical error (#5072)
aaron-jack-manning Sep 30, 2024
788ae10
PDF export diagnostics (#5073)
laurmaedje Sep 30, 2024
d94acd6
Add internal URL type (#5074)
laurmaedje Sep 30, 2024
7ff83db
Change default font to Libertinus Serif (#4969)
laurmaedje Sep 30, 2024
1a24b29
Remove `Case`s from NumberingPatterns (#5059)
emilyyyylime Sep 30, 2024
75f646c
Fix `math.stretch` not working vertically with attachments (#5069)
mkorje Oct 1, 2024
4ef1096
Hint for `show par: set block(spacing: ..)` (#5076)
laurmaedje Oct 1, 2024
8eee3ec
Fix breakable block equation overflow (#5078)
mkorje Oct 1, 2024
a0093ad
Minimal PDF/A support (#5075)
laurmaedje Oct 1, 2024
f0ada7b
Check that an output format is available before compiling (#5080)
emilyyyylime Oct 1, 2024
63e6150
Fix order of tags in text show rules matches (#5083)
laurmaedje Oct 1, 2024
d03af84
Prevent double allocation due to `Content::sequence` (#5084)
laurmaedje Oct 1, 2024
9a71e72
Improve region progression handling
laurmaedje Oct 1, 2024
04df126
Fix duration formatting precision (#5082)
laurmaedje Oct 1, 2024
3ec5d44
Fix panic in spilled block layout (#5085)
laurmaedje Oct 1, 2024
ae7787c
Better return type for `download_index` (#5086)
laurmaedje Oct 1, 2024
698ae87
Rescue `math.binom` docs (#5087)
laurmaedje Oct 1, 2024
fa62399
Bump pixglyph (#5096)
laurmaedje Oct 2, 2024
b791aed
Adjust line number clearance (#5093)
PgBiel Oct 2, 2024
fcdccc9
Fix textual grouping (#5097)
laurmaedje Oct 2, 2024
f6406ed
Update Hayagriva (#5088)
reknih Oct 2, 2024
d86789c
Fix image version (#5100)
laurmaedje Oct 2, 2024
0343e03
Fix default ignorables (#5099)
laurmaedje Oct 3, 2024
cbd251f
Tweak docs (#5089)
laurmaedje Oct 3, 2024
340b892
Update changelog (#5033)
laurmaedje Oct 3, 2024
10eff1d
Tweak default ignorable fix (#5105)
laurmaedje Oct 3, 2024
056efb2
Fix Docker action (#5106)
laurmaedje Oct 3, 2024
4e6021c
Update dependencies (#5107)
laurmaedje Oct 3, 2024
60f9f66
Serialize and Deserialize for `PdfStandard` (#5108)
laurmaedje Oct 3, 2024
d5b1f4a
Release Candidate
laurmaedje Oct 3, 2024
32ce5ca
Fix panic for empty breakable block equations (#5116)
EpicEricEE Oct 7, 2024
09d3eab
Fix "thumbnail" key in manifest files not being optional (#5122)
arbrauns Oct 7, 2024
af1de13
Add exception for NewCM Math Bold (#5126)
EpicEricEE Oct 7, 2024
695d24b
Fix excluded PDF pages being written (#5133)
PgBiel Oct 7, 2024
0e5144f
Improve hint when provided array for destructuring has fewer elements…
Orange149 Oct 7, 2024
a73d432
Refactor sub- and superscript substitution (#5120)
MDLC01 Oct 7, 2024
60bd92e
Fix warning in proc macro (#5150)
laurmaedje Oct 7, 2024
5220f36
Error for parent-scoped figures without placement (#5151)
laurmaedje Oct 7, 2024
49154d8
Fix hint for destructuring to an array with at least 1 element (#5154)
bluebear94 Oct 7, 2024
f8a218f
Fix smartquotes after inline equations (#5149)
Coekjan Oct 8, 2024
0abd417
Allow sticky blocks to be breakable (#5161)
laurmaedje Oct 8, 2024
0253c3d
Allow unbreakable multi-layouters to expand (#5162)
laurmaedje Oct 8, 2024
5df07ee
Disable line numbers for block equations (#5163)
laurmaedje Oct 8, 2024
b060dd7
More robust glyph drawing (#5159)
laurmaedje Oct 10, 2024
250223c
Resolve lengths in math with scaled font size (#5168)
EpicEricEE Oct 10, 2024
d21cb2c
Fix scales for unit conversion (#5169)
laurmaedje Oct 10, 2024
eea8f13
Fix bug in `math.frac` layout code (#5177)
mkorje Oct 10, 2024
41d8ecd
Fix hashing of equal decimals with different scales (#5179)
PgBiel Oct 11, 2024
4e46fb1
Fix logical ordering of floats and footnotes (#5185)
laurmaedje Oct 12, 2024
2a956bb
Refactor and fix bounds metric (#5186)
laurmaedje Oct 12, 2024
e7d88b3
Fix outline with CJK text (#5187)
laurmaedje Oct 12, 2024
40fe0fc
Mention Tinymist instead of Typst LSP (#5193)
laurmaedje Oct 12, 2024
bc31ac2
Fix the order to match the text (#5196)
fynsta Oct 14, 2024
92d6c2f
Fix tag order with `place` and fr block bugs (#5203)
laurmaedje Oct 14, 2024
fe43e27
Put floats back above footnotes instead of below (#5204)
laurmaedje Oct 14, 2024
b206dfd
(Re-)implement rounding with negative digits (#5198)
PgBiel Oct 14, 2024
d4c4451
Greet users who run `typst` for the first time (#5210)
laurmaedje Oct 15, 2024
94c2933
Docs and changelog improvements (#5147)
laurmaedje Oct 15, 2024
d8602ef
Bump hayagriva (#5211)
laurmaedje Oct 15, 2024
ef309ca
Release Candidate 2
laurmaedje Oct 15, 2024
6d98a64
Update directories in architecture docs (#5214)
NiklasEi Oct 18, 2024
07c2384
Use `set page(columns: n)` in tutorial (#5228)
reknih Oct 18, 2024
0774943
Fix path in NOTICE file (#5232)
laurmaedje Oct 18, 2024
242a16e
Fix optimized linebreaks without justification (#5236)
laurmaedje Oct 18, 2024
0ba1128
Split changelog (#5237)
laurmaedje Oct 18, 2024
737895d
Version bump
laurmaedje Oct 18, 2024
12bb053
Merge tag 'v0.12.0'
3w36zj6 Oct 20, 2024
e04e962
docs: `docs/i18n/`を更新
3w36zj6 Oct 20, 2024
32db60f
docs: Webサイト上のバージョンを`v0.12.0`に修正
3w36zj6 Oct 20, 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: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.77.0
- uses: dtolnay/rust-toolchain@1.81.0
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --no-run
- run: cargo test --workspace --no-fail-fast
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.77.0
- uses: dtolnay/rust-toolchain@1.81.0
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
Expand All @@ -49,11 +49,11 @@ jobs:
- run: cargo doc --workspace --no-deps

min-version:
name: Check mininum Rust version
name: Check minimum Rust version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.74.0
- uses: dtolnay/rust-toolchain@1.77.0
- uses: Swatinem/rust-cache@v2
- run: cargo check --workspace

Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2023-09-13
toolchain: nightly-2024-06-01
- uses: Swatinem/rust-cache@v2
- run: cargo install --locked [email protected]
- run: cd tests/fuzz && cargo fuzz build --dev
109 changes: 93 additions & 16 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,49 @@ name: Build and Publish Docker Image

on:
release:
types: [created]
types: [published]
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
PLATFORMS: linux/amd64,linux/arm64

jobs:
build-and-publish:
build:
name: Build Images
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
permissions:
contents: read
packages: write

steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
echo "IMAGE_NAME=${REGISTRY}/${GITHUB_REPOSITORY@L}" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v4

- name: Get current date
run: echo "TYPST_BUILD_DATE=\"$(date -u +'%Y-%m-%dT%H:%M:%SZ')\" >> $GITHUB_ENV"

- name: Setup Docker buildx
uses: docker/[email protected]
with:
platforms: ${{ env.PLATFORMS }}
platforms: ${{ matrix.platform }}

- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
images: ${{ env.IMAGE_NAME }}

- name: Log into registry ${{ env.REGISTRY }}
uses: docker/[email protected]
Expand All @@ -33,19 +53,76 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
id: build-and-push
- name: Build Docker image
id: build
uses: docker/[email protected]
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ env.PLATFORMS }}
platforms: ${{ matrix.platform }}
outputs: type=image,name=${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
REVISION=${{ github.sha }}
CREATED=${{ env.TYPST_BUILD_DATE }}

- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"

- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

merge:
name: Merge and Publish
runs-on: ubuntu-latest
needs:
- build

permissions:
contents: read
packages: write

steps:
- name: Prepare
run: |
echo "IMAGE_NAME=${REGISTRY}/${GITHUB_REPOSITORY@L}" >> $GITHUB_ENV

- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}

- name: Log into registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.IMAGE_NAME }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
81 changes: 81 additions & 0 deletions .github/workflows/forum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Move to Typst Forum
on:
issues:
types:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'to-forum'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Call Discourse API to create forum post
env:
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_URL: ${{ github.event.issue.html_url }}
ISSUE_USER_LOGIN: ${{ github.event.issue.user.login }}
REPOSITORY_OWNER: ${{ github.repository_owner }}
run: |
read -d '' RAW << END_OF_BODY
This topic was moved from GitHub issue ${ISSUE_NUMBER}. Please continue the conversation here.

Here is the original issue:
[quote="${ISSUE_USER_LOGIN}"]
${ISSUE_BODY}
[/quote]

Browse the previous discussion at ${ISSUE_URL}
END_OF_BODY

TITLE_JSON=$(jq -n --arg title "[#${ISSUE_NUMBER}] ${ISSUE_TITLE}" '$title')
RAW_JSON=$(jq -n --arg raw "$RAW" '$raw')
EXTERNAL_ID_JSON=$(jq -n --arg external_id "gh-${REPOSITORY_OWNER}-typst-${ISSUE_NUMBER}" '$external_id')

RESPONSE=$(curl -X POST "https://forum.typst.app/posts.json" \
--fail-with-body \
-H "Api-Key: ${{ secrets.DISCOURSE_TOKEN }}" \
-H "Content-Type: application/json" \
-d "{
\"title\": $TITLE_JSON,
\"category\": 4,
\"external_id\": $EXTERNAL_ID_JSON,
\"raw\": $RAW_JSON
}")

# Check if response contains errors
if [ $(jq -n --argjson response "$RESPONSE" '$response.errors | length') -gt 0 ]; then
# Join the errors with commas
ERRORS=$(jq -n --argjson response "$RESPONSE" '$response.errors | join(", ")')
echo "DISCOURSE_ERROR=$ERRORS" >> $GITHUB_ENV
exit 1
fi

# Check if the response returned a non-200 status code
if [ $? -ne 0 ]; then
echo "DISCOURSE_ERROR=Failed to call the Discourse API" >> $GITHUB_ENV
exit 1
fi

THREAD_ID="$(jq -n --argjson response "$RESPONSE" '$response.topic_id')"
if [ "$THREAD_ID" = 'null' ]; then
echo "DISCOURSE_ERROR=Failed to retrieve new thread ID" >> $GITHUB_ENV
exit 1
fi

echo "THREAD_ID=$THREAD_ID" >> $GITHUB_ENV
- name: Add a comment if the workflow failed
if: failure()
run: |
gh issue comment ${{ github.event.issue.number }} --body "Failed to move this issue to the Typst Forum. This is the error that the API call returned: $DISCOURSE_ERROR"
- name: Add comment and close as not planned
run: |
gh issue close "$NUMBER" --reason "not planned" --comment "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: >
We moved this issue to the Typst Forum. Please continue the discussion there: https://forum.typst.app/t/${{ env.THREAD_ID }}
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- target: armv7-unknown-linux-musleabi
os: ubuntu-latest
cross: true
- target: riscv64gc-unknown-linux-gnu
os: ubuntu-latest
cross: true
- target: x86_64-apple-darwin
os: macos-latest
cross: false
Expand All @@ -34,17 +37,20 @@ jobs:
- target: x86_64-pc-windows-msvc
os: windows-latest
cross: false
- target: aarch64-pc-windows-msvc
os: windows-latest
cross: false

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

- name: Run Cross
if: ${{ matrix.cross }}
run: |
cargo install cross --git https://github.com/cross-rs/cross.git
cargo install cross --git https://github.com/cross-rs/cross.git --locked --rev 085092ca
cross build -p typst-cli --release --target ${{ matrix.target }} --features self-update,vendor-openssl

- name: Run Cargo
Expand Down
42 changes: 42 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
cff-version: 1.2.0
title: Typst
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Laurenz
family-names: Mädje
email: [email protected]
- given-names: Martin
family-names: Haug
email: [email protected]
- name: The Typst Project Developers
references:
- title: A Programmable Markup Language for Typesetting
authors:
- family-names: Mädje
given-names: Laurenz
year: 2022
type: thesis
thesis-type: Master's thesis
url: https://laurmaedje.github.io/programmable-markup-language-for-typesetting.pdf
institution:
name: Technische Universität Berlin
- title: Fast typesetting with incremental compilation
authors:
- family-names: Haug
given-names: Martin
year: 2022
type: thesis
thesis-type: Master's thesis
doi: 10.13140/RG.2.2.15606.88642
url: https://doi.org/10.13140/RG.2.2.15606.88642
institution:
name: Technische Universität Berlin
repository-code: 'https://github.com/typst/typst'
url: 'https://typst.app/'
keywords:
- typesetting
- markup language
license: Apache-2.0
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.1時点での公式ドキュメント](https://github.com/typst/typst/tree/v0.11.1/docs)から翻訳してください。
3. 翻訳の際は、[後述のガイドライン](#スタイルマニュアル)を参照し、[v0.12.0時点での公式ドキュメント](https://github.com/typst/typst/tree/v0.12.0/docs)から翻訳してください。
4. 翻訳作業の途中でも、Draft Pull Requestを作成して、翻訳の進捗状況を共有することができます。
5. 翻訳作業が終わったら、Pull Requestを作成し、送信してください。

Expand Down
Loading
Loading