aboutsummaryrefslogtreecommitdiffstats
path: root/man/ssg-serve.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-serve.1
parentAdd license (diff)
downloadssg-93670740c05def63ae4b02c99eb49391f663ff38.zip
Add initial version of ssg
Diffstat (limited to 'man/ssg-serve.1')
-rw-r--r--man/ssg-serve.145
1 files changed, 45 insertions, 0 deletions
diff --git a/man/ssg-serve.1 b/man/ssg-serve.1
new file mode 100644
index 0000000..15d8a3c
--- /dev/null
+++ b/man/ssg-serve.1
@@ -0,0 +1,45 @@
+.TH SSG-SERVE 1 "December 2025" "ssg" "User Commands"
+.SH NAME
+ssg-serve \- serve the site locally
+.SH SYNOPSIS
+.B ssg serve
+.RI [ options ]
+.SH DESCRIPTION
+Start a local HTTP server to preview the built site.
+.SH OPTIONS
+.TP
+.BI \-dir " dir"
+Directory to serve. Default: dist
+.TP
+.BI \-addr " address"
+Address to listen on. Default: :8080
+.SH EXAMPLES
+Serve the default output directory:
+.PP
+.RS
+.nf
+$ ssg serve
+.fi
+.RE
+.PP
+Serve on a different port:
+.PP
+.RS
+.nf
+$ ssg serve -addr=:3000
+.fi
+.RE
+.PP
+Build and serve:
+.PP
+.RS
+.nf
+$ ssg build && ssg serve
+.fi
+.RE
+.SH SEE ALSO
+.BR ssg-build (1)
+.SH SSG
+Part of the
+.BR ssg (1)
+suite.