diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-27 06:44:59 -0500 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-27 06:44:59 -0500 |
| commit | 93670740c05def63ae4b02c99eb49391f663ff38 (patch) | |
| tree | 77bbd8d664622154155fc06e2c4228cfac4fec04 /man/ssg-build.1 | |
| parent | Add license (diff) | |
| download | ssg-93670740c05def63ae4b02c99eb49391f663ff38.zip | |
Add initial version of ssg
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. |