From 5410430affaf7e10cf9ab4a6cfcd15950baee1d9 Mon Sep 17 00:00:00 2001 From: jgart Date: Mon, 9 Sep 2024 13:27:52 -0500 Subject: ui: Add 'new' subcommand. * doc/haunt.texi: Document it. * haunt/ui/new.scm: New file. * Makefile.am (SOURCES): Add it. * README: Mention the new subcommand. --- doc/haunt.texi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc') diff --git a/doc/haunt.texi b/doc/haunt.texi index 6be2fb5..8df937a 100644 --- a/doc/haunt.texi +++ b/doc/haunt.texi @@ -299,6 +299,7 @@ programming interfaces. @menu * Invoking haunt build:: Build the website. * Invoking haunt serve:: Serve the website over HTTP. +* Invoking haunt new:: Generating a blog template. * Invoking haunt publish:: Publish the website. @end menu @@ -375,6 +376,25 @@ Automatically rebuild the site when source files change. @end table +@node Invoking haunt new +@section Invoking @command{haunt new} + +The @command{haunt new} command creates a starter template for a new website. + +Usage: + +@example +haunt new +@end example + +By default, haunt will create a directory called @file{blog}. To use a +different name for your new blog, simply provide the name at the +command line as follows: + +@example +haunt new my-blog +@end example + @node Invoking haunt publish @section Invoking @command{haunt publish} -- cgit v1.2.3