Built-in packages
Import Tola’s built-in Typst packages at version 0.0.0, for example #import "@tola/address:0.0.0": output-url. In the terminal, run tola help "@tola/address" output-url.
| Package | Summary |
|---|---|
@tola/site | Read resolved [site] settings, [options], build-mode, and site-rooted paths inside Typst. |
@tola/module | Read resolved options and published static assets for a configured Tola module. |
@tola/address | Generate slugs and convert between site routes, publish output paths, and browser URLs. |
@tola/icon | Render configured SVG icons inline in HTML or publish them as standalone SVG assets. |
@tola/image | Inspect image metadata, resize/convert images, and generate responsive <img> elements with srcset. |
@tola/source | Discover Typst content files, inspect the current source, and declare or validate page metadata. |
@tola/collection | Index, group, filter, paginate, and traverse hierarchical trees over site records. |
@tola/datalog | Evaluate stratified Datalog queries over site relations, facts, and derivation rules. |
@tola/schema | Declare, compose, inspect, and run validation schemas over metadata and Typst values. |
@tola/document | Inspect the current document, list its headings, query cross-document links, and extract plain text. |
@tola/code | Syntax-highlight code blocks in HTML export with light and dark themes. |
@tola/head | Build HTML <head> metadata elements: title, description, canonical link, Open Graph, and Twitter cards. |
@tola/feed | Generate RSS, Atom, or JSON Feed outputs from site documents. |
@tola/sitemap | Generate an XML sitemap listing published site documents for search engines. |
@tola/hash | Compute BLAKE3 digests and encode bytes as lowercase hexadecimal strings. |
@tola/uuid | Normalize UUID strings and generate deterministic UUID v5 identifiers. |
@tola/diagnostic | Emit custom errors, warnings, info messages, and hints during Typst evaluation. |