From 93670740c05def63ae4b02c99eb49391f663ff38 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 27 Dec 2025 06:44:59 -0500 Subject: Add initial version of ssg --- man/ssg-build.1 | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 man/ssg-build.1 (limited to 'man/ssg-build.1') 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. -- cgit v1.2.3