blob: 0ba504f4a06ff41617242cd72714c12da5eb7bf7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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.
|