Reorganize document lib
This change reduces the amount of symlinks required per document.
This commit is contained in:
parent
24c84801f1
commit
4bd6eb9dca
16 changed files with 14 additions and 15 deletions
|
|
@ -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"),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue