Skip to content

archidocs build

Write the static viewer site with the Workspace’s Bundle and past Revisions, or a PR preview site.

archidocs build [--out <dir>] [--bundle-only] [--keep <n|all>]
archidocs build --preview [--base <branch>] [--out <dir>]

--out <dir> · Default: dist.

The folder to write the site, or the Bundle, into.

--bundle-only · Off by default.

Write only workspace.bundle.json, without the viewer or past Revisions.

--keep <n|all> · Default: 200.

How many of the latest past Revisions the site keeps Bundles for, or all; tagged Revisions are always kept.

--preview · Off by default.

Build a PR preview site holding just the PR head and the base branch’s latest Revision, for Compare.

--base <branch> · Default: the branch origin/HEAD points at.

With --preview: the base branch, read from origin/<branch> without fetching.