blob: 909801b2b73fa318ba9683c007e2425ac48a285e (
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
|
.Dd January 2, 2026
.Dt SSG-INIT 1
.Os
.Sh NAME
.Nm ssg-init
.Nd initialize a new site
.Sh SYNOPSIS
.Nm ssg init
.Op Fl h | -help
.Ar [directory]
.Sh DESCRIPTION
.Nm
creates a new site with the standard directory structure:
.Pp
.Bl -item -offset indent -compact
.It
.Pa data/
.It
.Pa templates/index.html
.It
.Pa static/
.El
.Pp
If no
.Ar directory
is specified, initializes in the current directory. A sample
.Qq hello world
.Pa templates/index.html
is created if the file does not already exist.
.Pp
.Ar directory
can be any relative path from the current working directory or any absolute path. If any subdirectories are missing along the given path, they will be created with 755 permissions.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl h , Fl -help
Print brief usage information.
.El
.Sh EXIT STATUS
.Nm
exits 0 on success, and >0 if an error occurs.
.Sh EXAMPLES
Initialize a site in the current directory:
.Dl $ ssg init
.Pp
Initialize, build, and serve a new site in a subdirectory:
.Dl $ ssg init mysite
.Dl $ cd mysite
.Dl $ ssg build
.Dl $ ssg serve
.Pp
.Sh SEE ALSO
.Xr ssg 1 ,
.Xr ssg-build 1 ,
.Xr ssg-serve 1 ,
.Xr ssg-templates 5
|