.Dd January 2, 2026 .Dt SSG-BUILD 1 .Os .Sh NAME .Nm ssg-build .Nd build the site .Sh SYNOPSIS .Nm ssg build .Op Fl h | -help .Op Fl d | -data Ar dir .Op Fl t | -templates Ar dir .Op Fl s | -static Ar dir .Op Fl o | -out Ar dir .Op Fl q | -quiet .Sh DESCRIPTION .Nm builds the static site by rendering HTML templates with the provided data into the output directory and copying static files to the output directory. .Pp Templates are processed using Go's .Lk https://pkg.go.dev/html/template html/template package. See .Xr ssg-templates 5 for template syntax and available functions. .Sh OPTIONS .Bl -tag -width Ds .It Fl h , Fl -help Print brief usage information. .It Fl d Ar dir , Fl -data Ar dir Data directory containing JSON files. Default: data .It Fl t Ar dir , Fl -templates Ar dir Templates directory containing HTML files. Default: templates .It Fl s Ar dir , Fl -static Ar dir Static files directory. Default: static .It Fl o Ar dir , Fl -out Ar dir Output directory. Default: dist .It Fl q , Fl -quiet Quiet mode. Only show errors. .El .Sh EXIT STATUS .Nm exits 0 on success, and >0 if an error occurs. .Sh EXAMPLES Build a site: .Dl $ ssg build .Pp Build with custom directories: .Dl $ ssg build --static assets --data content --templates layouts --out public .Pp Build with regular output silenced: .Dl $ ssg build --quiet .Pp .Sh SEE ALSO .Xr ssg 1 , .Xr ssg-serve 1 , .Xr ssg-templates 5