Skip to content

升级到 Typst v0.15#165

Merged
YDX-2147483647 merged 11 commits into
masterfrom
typst-0-15
Jun 21, 2026
Merged

升级到 Typst v0.15#165
YDX-2147483647 merged 11 commits into
masterfrom
typst-0-15

Conversation

@YDX-2147483647

@YDX-2147483647 YDX-2147483647 commented Jun 16, 2026

Copy link
Copy Markdown
Member

Resolves #163
Relates-to: typst-doc-cn/clreq#107

#166 合并后会展示 git 提交信息,所以最好按merge而非merge --squash方式合并。

预览:

生成预览链接的脚本
from subprocess import run
from pathlib import Path

diff = run(
    ["git", "diff", "HEAD..main", "--name-status"],
    check=True,
    text=True,
    capture_output=True,
).stdout.splitlines()

for line in diff:
    raw = Path(line.removeprefix("M").strip())
    if raw.suffix != ".md" or not raw.is_relative_to("docs"):
        continue

    file = raw.relative_to("docs")
    url = file.with_suffix(".html").as_posix()

    print(
        f"- [old](https://typst-doc-cn.github.io/guide/{url}) vs. [`{file.as_posix()}`](https://deploy-preview-165--luxury-mochi-9269a9.netlify.app/{url})"
    )
过时内容

可能还需要修改的页面

@netlify

netlify Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploy Preview for luxury-mochi-9269a9 ready!

Name Link
🔨 Latest commit 880883a
🔍 Latest deploy log https://app.netlify.com/projects/luxury-mochi-9269a9/deploys/6a37e05d0a8aef000899f853
😎 Deploy Preview https://deploy-preview-165--luxury-mochi-9269a9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@YDX-2147483647 YDX-2147483647 force-pushed the typst-0-15 branch 2 times, most recently from 078ea4e to febd234 Compare June 16, 2026 08:20
@YDX-2147483647 YDX-2147483647 changed the title Update to Typst v0.15 升级到 Typst v0.15 Jun 16, 2026
@YDX-2147483647 YDX-2147483647 marked this pull request as ready for review June 16, 2026 09:12
@YDX-2147483647 YDX-2147483647 requested a review from Copilot June 16, 2026 09:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the project’s Typst toolchain and documentation examples to Typst v0.15, aligning CI/Netlify builds and rendered documentation snippets with the new release while keeping older Typst versions available for legacy examples.

Changes:

  • Bump the “latest” Typst version to v0.15.0 and keep v0.14.2 / v0.13.1 as named side-by-side executables.
  • Update Netlify build/install scripts to fetch Typst v0.15.0 and adjust local package installation behavior.
  • Refresh multiple docs/FAQ pages to newer Typst Universe package versions and add v0.15-specific notes.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
scripts/typst-versions.yaml Sets Typst v0.15.0 as default and preserves older versions for CI setup.
scripts/netlify-build.sh Downloads Typst v0.15.0 and keeps older binaries for legacy renders on Netlify.
scripts/install-typst-local-packages.sh Clears cached local package version before re-installing (Netlify cache).
README.md Updates local setup instructions to Typst v0.15 and mentions v0.14.2 legacy usage.
docs/FAQ/sub-figure.md Bumps subpar package version in examples.
docs/FAQ/missing-ref.md Bumps citegeist version in example workaround.
docs/FAQ/mathcal_font.md Adds Typst 0.15 behavior note and annotates older-version code fences.
docs/FAQ/latex-equation.md Bumps mitex package version.
docs/FAQ/dcases.md Bumps physica package version.
docs/FAQ/chinese-space.md Adds issue link and documents known side effects with an example.
docs/FAQ/chinese-bold.md Bumps cuti package version.
docs/FAQ/chemical-formulae.md Bumps typsium package version.
docs/FAQ/cetz_install.md Updates cetz version references in installation guidance.
docs/FAQ/bib-etal-lang.md Bumps gb7714-bilingual package version in examples.
docs/dev/typst-render.md Documents support for compiling with typst-0.14.2 in addition to typst-0.13.1.
docs/dev/index.md Updates documentation template wording to include “已变化”.
docs/.vitepress/typst_render.ts Allows typst v0.14.2 fences, updates cache version, and adjusts log filtering regex.
docs/.vitepress/theme/typst_version.ts Adds v0.15.0 to the Typst release history list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/netlify-build.sh

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 23 changed files in this pull request and generated 3 comments.

Comment thread docs/FAQ/cases-right.md
Comment thread docs/.vitepress/theme/custom.css
Comment thread scripts/netlify-build.sh
@YDX-2147483647 YDX-2147483647 force-pushed the typst-0-15 branch 2 times, most recently from ba58b9f to 0a22bb7 Compare June 20, 2026 12:03
Comment thread docs/FAQ/cases-right.md
@YDX-2147483647 YDX-2147483647 force-pushed the typst-0-15 branch 3 times, most recently from 9694835 to 083d1ea Compare June 21, 2026 12:32
@YDX-2147483647 YDX-2147483647 merged commit 9eeb862 into master Jun 21, 2026
8 checks passed
@YDX-2147483647 YDX-2147483647 deleted the typst-0-15 branch June 21, 2026 13:35
YDX-2147483647 added a commit that referenced this pull request Jun 22, 2026
之前 #165 从 0.0.3 古早版本升级过来,没检查编译结果。

β-吲哚基丙氨酸awa建议改FAQ,因为0.3.0语法就是这样的了。更详细的用法参考 https://github.com/Typsium/typsium/tree/main/tests 中的测试用例。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

准备升级到 Typst v0.15

2 participants