Skip to content

Commit

Permalink
dev: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Oct 14, 2024
1 parent e166262 commit 21af57e
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
curl -L https://github.com/Myriad-Dreamin/shiroa/releases/download/v0.1.2/font-assets.tar.gz | tar -xvz -C assets/fonts
- name: Download & install shiroa
run: |
curl -L https://github.com/Myriad-Dreamin/shiroa/releases/download/v0.2.0-nightly1/shiroa-x86_64-unknown-linux-gnu.tar.gz | tar -xvz
curl -L https://github.com/Myriad-Dreamin/shiroa/releases/download/v0.2.0-nightly4/shiroa-x86_64-unknown-linux-gnu.tar.gz | tar -xvz
chmod +x shiroa-x86_64-unknown-linux-gnu/bin/shiroa
sudo cp shiroa-x86_64-unknown-linux-gnu/bin/shiroa /usr/bin/shiroa
- name: Build Book
Expand Down
3 changes: 2 additions & 1 deletion src/basic/scripting-literal-and-variable.typ
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Typst还为你内置了一些特殊的数值,它们都是浮点数:
$pi$=#calc.pi \
$tau$=#calc.tau \
$inf$=#calc.inf \
NaN=#calc.nan \
// NaN=#calc.nan \
```)

=== 字符串字面量 <grammar-string-literal>
Expand Down Expand Up @@ -864,3 +864,4 @@ todo参数解构。
][
#q1
]
2 changes: 1 addition & 1 deletion src/book.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/shiroa:0.1.0": *
#import "@preview/shiroa:0.1.1": *

#show: book

Expand Down
2 changes: 1 addition & 1 deletion src/ebook.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/shiroa:0.1.0": *
#import "@preview/shiroa:0.1.1": *
#import "/typ/templates/ebook.typ"

#show: ebook.project.with(
Expand Down
48 changes: 6 additions & 42 deletions src/introduction.typ
Original file line number Diff line number Diff line change
Expand Up @@ -107,48 +107,12 @@ typst watch file.typ
set align(center)
table(
columns: (1fr, 1fr, 1fr, 1fr, 48pt, 48pt, 1fr),
[名称],
[编辑器],
[编译器环境],
[预览方案],
[是否支持即时编译],
[语言服务],
[备注],
[WebAPP],
[Code Mirror],
[wasm],
[渲染图片],
[是],
[优秀],
align(left)[开箱即用,需要科学上网,无法git],
[VSCode],
[VSCode],
[native],
[webview],
[是],
[良好],
align(left)[简单上手,定制性差],
[neovim],
[neovim],
[native],
[webview],
[是],
[良好],
align(left)[不易安装,定制性好],
[Emacs],
[Emacs],
[native],
[webview],
[是],
[良好],
align(left)[难以安装],
[typst-cli],
[任意编辑器],
[native],
[任意PDF阅读器],
[否],
[无],
align(left)[简单上手,灵活组合],
[名称], [编辑器], [编译器环境], [预览方案], [是否支持即时编译], [语言服务], [备注],
[WebAPP], [Code Mirror], [wasm], [渲染图片], [是], [优秀], align(left)[开箱即用,需要科学上网,无法git],
[VSCode], [VSCode], [native], [webview], [是], [良好], align(left)[简单上手,定制性差],
[neovim], [neovim], [native], [webview], [是], [良好], align(left)[不易安装,定制性好],
[Emacs], [Emacs], [native], [webview], [是], [良好], align(left)[难以安装],
[typst-cli], [任意编辑器], [native], [任意PDF阅读器], [否], [无], align(left)[简单上手,灵活组合],
)
}

Expand Down
2 changes: 1 addition & 1 deletion typ/templates/ebook.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/shiroa:0.1.0": *
#import "@preview/shiroa:0.1.1": *
#import "/typ/templates/page.typ": project, part-style, dash-color
#import "/typ/templates/term.typ": reset-term-state

Expand Down
2 changes: 1 addition & 1 deletion typ/templates/page.typ
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is important for typst-book to produce a responsive layout
// and multiple targets.
#import "@preview/shiroa:0.1.0": get-page-width, target, is-web-target, is-pdf-target, plain-text, templates
#import "@preview/shiroa:0.1.1": get-page-width, target, is-web-target, is-pdf-target, plain-text, templates
#import templates: *
#import "template-link.typ": *
#import "/typ/templates/side-notes.typ": side-attrs
Expand Down
2 changes: 1 addition & 1 deletion typ/templates/template-link.typ
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// #import "supports-text.typ": plain-text
#import "@preview/shiroa:0.1.0": plain-text
#import "@preview/shiroa:0.1.1": plain-text

#let make-unique-label(it, disambiguator: 1) = label({
let k = plain-text(it).trim()
Expand Down

0 comments on commit 21af57e

Please sign in to comment.