Deploy

Before deploying, check discovered sources, verify internal links and production subpaths, lock or vendor remote inputs, and upload the publish directory.

Pre-deploy checks

sh
tola inspect sources
tola check --json --pretty
tola preview

If a page is missing from output, start with tola inspect sources to confirm discovery; if discovered but omitted, check your entry or theme filters (such as draft: true).

tola check runs before-build and generate-outputs hooks, then verifies output paths, internal links, static assets, and fragments. Absolute URLs with a scheme (including URLs starting with site.origin) are treated as external.

When hosting under a subpath (such as GitHub Pages project sites https://user.github.io/my-docs/), set the real origin and base-path = "/my-docs/" under [site] and inspect navigation, CSS, images, search indexes, and 404.html with tola preview (or tola preview --base-path /my-docs/).

Lockfile

Remote modules, Typst packages, and remote icon presets are pinned in tola.lock. Commit tola.lock so collaborators and CI resolve identical inputs. Preview and apply upgrades explicitly:

sh
tola update <alias> --dry-run
tola update <alias>

Input isolation modes

FlagBehavior
--lockedForbids tola.lock changes and enforces exact lockfile match; locked remote inputs may still download.
--offlineForbids network access; reads local files and host caches only, failing on missing inputs.
--pureUses only project files, vendored dependencies, and Tola built-ins; skips host caches, global package directories, and system fonts.

Vendoring

To build with tola build --pure without network access or host state, configure [vendor] and vendor locked inputs:

toml
[vendor]
path = "vendor"
sh
tola vendor --dry-run
tola vendor
tola build --pure

After updating tola.lock, run tola vendor --refresh to sync vendor/.

Build & hosting

Run a production build (save --json for audit logs if needed):

sh
tola build
tola build --json --pretty > build-report.json

In CI (such as GitHub Actions), check formatting, links, and build with --locked (or --pure when vendored):

yaml
- name: Check and build site
  run: |
    tola fmt --check
    tola check --locked
    tola build --locked

Upload public/ (or [build].publish-dir) to GitHub Pages, Cloudflare Pages, Netlify, Nginx, or any static host configured to serve index.html for directory routes and /404.html on unmatched paths.

If [[hooks.after-publish]] syncs outputs automatically, it runs after public/ is written; if the hook fails, the command exits non-zero without rolling back public/ on disk, and the JSON report records published status.

Search this site

Use the arrow keys to move through results.

Type to search.