diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-01 16:30:58 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-01 16:33:28 +0100 |
| commit | 6ab7760822ccd24b4ef126d4737d41f1be15fe19 (patch) | |
| tree | 49905f91d292ceefe4f9878ead43f117c4b1fec0 /docs/src/lib.rs | |
| parent | ab841188e3d2687ee8f436336e6fde337985a83e (diff) | |
Split up `model` module
Diffstat (limited to 'docs/src/lib.rs')
| -rw-r--r-- | docs/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/lib.rs b/docs/src/lib.rs index 1989970e..c32f9ff9 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -15,9 +15,9 @@ use serde::de::DeserializeOwned; use serde::{Deserialize, Serialize}; use serde_yaml as yaml; use typst::doc::Frame; +use typst::eval::{CastInfo, Func, FuncInfo, Library, Module, ParamInfo, Value}; use typst::font::{Font, FontBook}; use typst::geom::{Abs, Sides, Smart}; -use typst::model::{CastInfo, Func, FuncInfo, Library, Module, ParamInfo, Value}; use typst_library::layout::PageNode; use unscanny::Scanner; @@ -43,7 +43,7 @@ static LIBRARY: Lazy<Prehashed<Library>> = Lazy::new(|| { lib.styles.set(PageNode::HEIGHT, Smart::Auto); lib.styles .set(PageNode::MARGIN, Sides::splat(Some(Smart::Custom(Abs::pt(15.0).into())))); - typst::model::set_lang_items(lib.items.clone()); + typst::eval::set_lang_items(lib.items.clone()); Prehashed::new(lib) }); @@ -630,7 +630,7 @@ fn symbol_page(resolver: &dyn Resolver, parent: &str, name: &str) -> PageModel { .find(|&(_, x)| x == c) .map(|(s, _)| s), codepoint: c as u32, - accent: typst::model::combining_accent(c).is_some(), + accent: typst::eval::combining_accent(c).is_some(), unicode_name: unicode_names2::name(c) .map(|s| s.to_string().to_title_case()), alternates: symbol |
