Configuration

Every configuration table accepted by tola.toml. In the terminal, run tola help "[build]" to read any section offline.

SectionSummary
includeSplit site configuration across multiple local TOML files.
[site]Configure the site’s public origin, mount path, title, authors, and languages.
[build]Configure the Typst entry file, content directory, publish directory, and hook concurrency.
[build.minify]Control HTML, CSS, and JavaScript minification for compiled pages and static assets.
[build.references]Choose whether broken internal links, missing assets, and unknown fragments fail the build or warn.
[hooks]Run Nu scripts or external commands before discovery, after compilation, or after publication.
[[hooks.before-build]]Run commands before content discovery to generate Typst sources, data, or static inputs.
[[hooks.generate-outputs]]Produce additional publishable files—such as search indexes or manifests—from compiled outputs.
[[hooks.after-publish]]Run post-publish commands—such as deployment or HTML verification—against the published directory.
[assets]Publish static files and directories such as images, stylesheets, fonts, and downloads.
[typst.fonts]Configure font search directories for the Typst compiler and SVG rasterization.
[icons]Declare local SVG or Iconify icon collections used by @tola/icon.
[modules]Attach local, Git, or tarball modules under site-chosen aliases.
[options]Define arbitrary site-wide settings shared by Typst templates, Nu scripts, and hook toggles.
[vendor]Store local vendored copies of modules, Typst packages, and remote icons for offline and --pure builds.
[formatter]Configure Typst code formatting shared by tola fmt and tola lsp.
[server]Configure the listen address and port used by tola dev and tola preview.
[dev]Configure file watching and live reload behavior for tola dev.
[diagnostics]Limit how many errors and warnings are printed to the terminal per run.

Search this site

Use the arrow keys to move through results.

Type to search.