diff options
Diffstat (limited to 'docs/src/lib.rs')
| -rw-r--r-- | docs/src/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/src/lib.rs b/docs/src/lib.rs index 9228a990..5ca3724a 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -21,10 +21,10 @@ use typst::foundations::{ Scope, Smart, Type, Value, FOUNDATIONS, }; use typst::introspection::INTROSPECTION; -use typst::layout::{Abs, Margin, PageElem, LAYOUT}; +use typst::layout::{Abs, Margin, PageElem, PagedDocument, LAYOUT}; use typst::loading::DATA_LOADING; use typst::math::MATH; -use typst::model::{Document, MODEL}; +use typst::model::MODEL; use typst::symbols::SYMBOLS; use typst::text::{Font, FontBook, TEXT}; use typst::utils::LazyHash; @@ -105,7 +105,8 @@ pub trait Resolver { fn image(&self, filename: &str, data: &[u8]) -> String; /// Produce HTML for an example. - fn example(&self, hash: u128, source: Option<Html>, document: &Document) -> Html; + fn example(&self, hash: u128, source: Option<Html>, document: &PagedDocument) + -> Html; /// Determine the commits between two tags. fn commits(&self, from: &str, to: &str) -> Vec<Commit>; @@ -800,7 +801,7 @@ mod tests { None } - fn example(&self, _: u128, _: Option<Html>, _: &Document) -> Html { + fn example(&self, _: u128, _: Option<Html>, _: &PagedDocument) -> Html { Html::new(String::new()) } |
