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
tola inspect sources
tola check --json --pretty
tola previewIf 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:
tola update <alias> --dry-run
tola update <alias>Input isolation modes
| Flag | Behavior |
|---|---|
--locked | Forbids tola.lock changes and enforces exact lockfile match; locked remote inputs may still download. |
--offline | Forbids network access; reads local files and host caches only, failing on missing inputs. |
--pure | Uses 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:
[vendor]
path = "vendor"tola vendor --dry-run
tola vendor
tola build --pureAfter updating tola.lock, run tola vendor --refresh to sync vendor/.
Build & hosting
Run a production build (save --json for audit logs if needed):
tola build
tola build --json --pretty > build-report.jsonIn CI (such as GitHub Actions), check formatting, links, and build with --locked (or --pure when vendored):
- name: Check and build site
run: |
tola fmt --check
tola check --locked
tola build --lockedUpload 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.