Add serve function, update documentation accordingly

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/aya/trunk@61 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
yakumo.izuru
2023-04-21 23:06:28 +00:00
parent 625906f6b5
commit 2fb3d262ea
3 changed files with 38 additions and 26 deletions

View File

@@ -17,7 +17,7 @@ This crow tengu stands for 'the fastest one in Gensokyo' and yes this is also a
Build it manually assuming you have Go installed:
$ go install marisa.chaotic.ninja/aya@latest
$ go install marisa.chaotic.ninja/aya/cmd/aya@latest
## Ideology
@@ -66,10 +66,10 @@ for f in ./blog/*.md ; do
echo $timestamp \
"<item>" \
"<title>$title</title>" \
"<link>http://ayaerge.com/$url</link>" \
"<link>http://zserge.com/$url</link>" \
"<description>$descr</description>" \
"<pubDate>$(date --date @$timestamp -R)</pubDate>" \
"<guid>http://ayaerge.com/$url</guid>" \
"<guid>http://zserge.com/$url</guid>" \
"</item>"
fi
done | sort -r -n | cut -d' ' -f2-
@@ -93,12 +93,14 @@ content generation, or additional commands, like LESS to CSS conversion:
`aya build <file>` re-builds one file and prints resulting content to stdout.
`aya watch` rebuilds your site every time you modify any file.
`aya serve` serves your site over HTTP.
`aya var <filename> [var1 var2...]` prints a list of variables defined in the
header of a given markdown file, or the values of certain variables (even if
it's an empty string).
`aya watch` rebuilds your site every time you modify any file.
## License
The software is distributed under the MIT license.