Reorganize document lib

This change reduces the amount of symlinks required per document.
This commit is contained in:
Joscha 2025-03-01 20:36:24 +01:00
parent 24c84801f1
commit 4bd6eb9dca
16 changed files with 14 additions and 15 deletions

View file

@ -6,6 +6,9 @@ pub mod text;
fn typst_with_lib() -> Typst {
Typst::new()
.with_file("/lib.typ", include_str!("documents/lib.typ"))
.with_file("/plugin.wasm", include_bytes!("documents/plugin.wasm"))
.with_file("/lib/main.typ", include_str!("documents/lib/main.typ"))
.with_file(
"/lib/plugin.wasm",
include_bytes!("documents/lib/plugin.wasm"),
)
}