Author: Jake Bauer <email@example.com>
Date: Wed, 17 Aug 2022 18:40:28 -0400
|M||sbs.1|| | ||25||++++++++++++++++++-------|
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/sbs.1 b/sbs.1
@@ -10,17 +10,20 @@
is a static site builder designed to fill a gap between writing HTML by hand and
-more complicated generators such as Hugo or Jekyll.
+more complicated generators such as Hugo or Jekyll. It supports compiling both
+gemtext and markdown into HTML.
Commands are as follows:
.Bl -tag -width Ds
.It Cm build Ar
-Build the given markdown file(s), sandwiching the content of each given markdown
-file between the template header and footer files and placing the resulting
-files in the ./static/ directory.
+Build the given markdown or gemtext file(s), sandwiching the content of each
+given file between the template header and footer files and placing the
+resulting files in the ./static/ directory. If run without arguments, build
+everything under the ./content/ directory.
.It Cm genfeed
Compile an Atom feed from all posts found under the configured blog directory,
-outputting the file to ./static/feed.xml.
+outputting the file to ./static/feed.xml. Note that posts under the blog
+directory must be in markdown format.
.It Cm new Ar subcommand
.Bl -tag -width Ds
.It page Ar file
@@ -68,6 +71,9 @@ nl).
The arguments passed to lowdown which tell it how to compile given pages. This
option is set to a sensible default and should not be changed under normal
+The command sbs will use for publishing your site (e.g. rsync -rv static/*
+user@website:/var/www/html, ssh user@website "cd /var/www/html; git pull", etc.)
.Sh EXIT STATUS
@@ -77,8 +83,9 @@ To create a new site called "example.com":
.Dl sbs new site example.com
-All of the following commands must be run from within a given site's directory.
-The examples below assume the webmaster is currently inside of the newly created
+All of the following commands must be run from within the root of a given site's
+directory (i.e. the example.com/ directory, not any subdirectory). The examples
+below assume the webmaster is currently inside of the newly created
"example.com" directory and has edited the files and configuration generated by
sbs to their liking.
@@ -96,6 +103,10 @@ created files:
.Dl sbs build content/index.md content/blog/hello-world.md
+Or, simply run:
+.Dl sbs build
To generate an Atom feed containing all posts under the configured blog
directory (which will just be a single post in this example):