diff --git a/cli/src/main.rs b/cli/src/main.rs index 74935db..12e6dc9 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -100,7 +100,7 @@ async fn init(args: InitArgs) -> ZResult<()> { dir.join("book.typ"), format!( r##" -#import "@preview/book:0.2.2": * +#import "@preview/book:0.2.3": * #show: book @@ -135,7 +135,7 @@ Sample page write_file( dir.join("ebook.typ"), format!( - r##"#import "@preview/book:0.2.2": * + r##"#import "@preview/book:0.2.3": * #import "{ebook_template}" diff --git a/cli/src/project.rs b/cli/src/project.rs index 92e9acb..d7ca0a8 100644 --- a/cli/src/project.rs +++ b/cli/src/project.rs @@ -147,12 +147,12 @@ impl Project { let package_meta = res .first() - .ok_or_else(|| error_once!("no internal-package meta in book.typ (are you using old book package?, please import @preview/book:0.2.2; or do you forget the show rule `#show: book`?)"))?; + .ok_or_else(|| error_once!("no internal-package meta in book.typ (are you using old book package?, please import @preview/book:0.2.3; or do you forget the show rule `#show: book`?)"))?; let InternalPackageMeta::Package { version } = &package_meta.value; - if version != "0.2.2" { + if version != "0.2.3" { return Err(error_once!( - "outdated book package, please import @preview/book:0.2.2", importing_version: version, + "outdated book package, please import @preview/book:0.2.3", importing_version: version, )); } } diff --git a/contrib/typst/book/typst.toml b/contrib/typst/book/typst.toml index 56e9a09..9f05f5e 100644 --- a/contrib/typst/book/typst.toml +++ b/contrib/typst/book/typst.toml @@ -1,6 +1,6 @@ [package] name = "book" -version = "0.2.2" +version = "0.2.3" entrypoint = "lib.typ" authors = ["Myriad-Dreamin"] license = "Apache-2.0" diff --git a/contrib/typst/gh-ebook.typ b/contrib/typst/gh-ebook.typ index 4bd88e2..885e2d9 100644 --- a/contrib/typst/gh-ebook.typ +++ b/contrib/typst/gh-ebook.typ @@ -1,4 +1,4 @@ -#import "@preview/book:0.2.2": * +#import "@preview/book:0.2.3": * #import "/contrib/typst/gh-pages.typ": project, part-style #let _page-project = project diff --git a/contrib/typst/gh-pages.typ b/contrib/typst/gh-pages.typ index 9cf5752..63da75b 100644 --- a/contrib/typst/gh-pages.typ +++ b/contrib/typst/gh-pages.typ @@ -1,6 +1,6 @@ // This is important for typst-book to produce a responsive layout // and multiple targets. -#import "@preview/book:0.2.2": get-page-width, target, is-web-target, is-pdf-target, plain-text +#import "@preview/book:0.2.3": get-page-width, target, is-web-target, is-pdf-target, plain-text #let page-width = get-page-width() #let is-pdf-target = is-pdf-target() diff --git a/github-pages/docs/book.typ b/github-pages/docs/book.typ index a643022..7bf8d0c 100644 --- a/github-pages/docs/book.typ +++ b/github-pages/docs/book.typ @@ -1,5 +1,5 @@ -#import "@preview/book:0.2.2": * +#import "@preview/book:0.2.3": * #show: book diff --git a/github-pages/docs/cli/init.typ b/github-pages/docs/cli/init.typ index ba204ad..906eb0d 100644 --- a/github-pages/docs/cli/init.typ +++ b/github-pages/docs/cli/init.typ @@ -32,7 +32,7 @@ typst-book build my-book/ # memoryized dest-dir The harder way, by creating the book without `init` command, your `book.typ` should at least provides a `book-meta`, as #cross-link("/guide/get-started.typ")[Get Started] shown. ```typ -#import "@preview/book:0.2.2": * +#import "@preview/book:0.2.3": * #show: book #book-meta( diff --git a/github-pages/docs/format/theme.typ b/github-pages/docs/format/theme.typ index 7cce9e7..b1b5b8e 100644 --- a/github-pages/docs/format/theme.typ +++ b/github-pages/docs/format/theme.typ @@ -17,7 +17,7 @@ Currently we have no much design on theme's html part. But you can still configu Your `book.typ` should at least provides a `book-meta`, as #t shown. ```typ -#import "@preview/book:0.2.2": * +#import "@preview/book:0.2.3": * #show: book #book-meta( diff --git a/github-pages/docs/guide/get-started.typ b/github-pages/docs/guide/get-started.typ index ca59f3c..44c6237 100644 --- a/github-pages/docs/guide/get-started.typ +++ b/github-pages/docs/guide/get-started.typ @@ -48,7 +48,7 @@ Before a chapter can be viewed, it must be added to this list. Here's a basic summary file with a few chapters: ```typ -#import "@preview/book:0.2.2": * +#import "@preview/book:0.2.3": * #show: book #book-meta( // put metadata of your book like book.toml of mdbook diff --git a/github-pages/docs/pdf.typ b/github-pages/docs/pdf.typ index f277f87..e490f67 100644 --- a/github-pages/docs/pdf.typ +++ b/github-pages/docs/pdf.typ @@ -1,4 +1,4 @@ -#import "@preview/book:0.2.2": * +#import "@preview/book:0.2.3": * #import "/contrib/typst/gh-ebook.typ" #let ebook = gh-ebook