aboutsummaryrefslogtreecommitdiffstats
path: root/man/ssg-build.1
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-12-27 06:44:59 -0500
committerEugene Triguba <hello@eugenetriguba.com>2025-12-27 06:44:59 -0500
commit93670740c05def63ae4b02c99eb49391f663ff38 (patch)
tree77bbd8d664622154155fc06e2c4228cfac4fec04 /man/ssg-build.1
parentAdd license (diff)
downloadssg-93670740c05def63ae4b02c99eb49391f663ff38.zip
Add initial version of ssg
Diffstat (limited to 'man/ssg-build.1')
-rw-r--r--man/ssg-build.159
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.