diff options
Diffstat (limited to 'man/ssg-build.1')
| -rw-r--r-- | man/ssg-build.1 | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/man/ssg-build.1 b/man/ssg-build.1 new file mode 100644 index 0000000..0ba504f --- /dev/null +++ b/man/ssg-build.1 @@ -0,0 +1,59 @@ +.TH SSG-BUILD 1 "December 2025" "ssg" "User Commands" +.SH NAME +ssg-build \- build the site +.SH SYNOPSIS +.B ssg build +.RI [ options ] +.SH DESCRIPTION +Build the static site by rendering templates with data and copying static files. +.PP +Templates are processed using Go's html/template package. See +.BR ssg-templates (5) +for template syntax and available functions. +.SH OPTIONS +.TP +.BI \-data " dir" +Data directory containing JSON files. Default: data +.TP +.BI \-templates " dir" +Templates directory containing HTML files. Default: templates +.TP +.BI \-static " dir" +Static files directory. Default: static +.TP +.BI \-out " dir" +Output directory. Default: dist +.TP +.B \-q +Quiet mode. Only show errors. +.SH EXAMPLES +Build a site: +.PP +.RS +.nf +$ ssg build +.fi +.RE +.PP +Build to a custom output directory: +.PP +.RS +.nf +$ ssg build -out=public +.fi +.RE +.PP +Build with custom directories: +.PP +.RS +.nf +$ ssg build -data=content -templates=layouts -out=public +.fi +.RE +.SH SEE ALSO +.BR ssg-templates (5), +.BR ssg-serve (1) +.SH SSG +Part of the +.BR ssg (1) +suite. |