odes dedicated to mkws static site generator
Had some fun with suno.ai (oops made typo at some point) and thought to share! 🙃
Personal favorites are the rap and the country ones.
Songs have some killer verses, personal favorites are:
M-K-W-S, it's my savior in distress
mkws
, building web sites with ease
For all the cowboys and cowgirls, it's a breeze.
mkws
, make the static web sing for me
no fuss, no muss, keepin' it clean (great tag line, lol)
static web generator, set my web site free
with the simplicity of a country song
Anyway, enjoy and stay tuned for updates! I really have to update the
docs to include incremental building via
mk.
Hint:
Replace the bin/mkws
with the following file
#!/usr/local/plan9/bin/mk -f
URL=//example.com
SHARE=share
LANG=en_US.UTF-8
THEMEFILES=$SHARE/l.upphtml $SHARE/s.uppcss
TPLFILES=`{find . ! -name l.upphtml -name *.upphtml | cut -c3-}
HTMLFILES=${TPLFILES:%.upphtml=%.html}
$URL:V: sitemap.xml $HTMLFILES
%.html:Q: %.upphtml $THEMEFILES
>&2 echo Making $target
pp $SHARE/l.upphtml ${target%.html}.upphtml $url > $target
sitemap.xml:Q: $HTMLFILES $SHARE/sitemap.uppxml
>&2 echo Making $target
pp $SHARE/sitemap.uppxml $url > $target
clean:VQ:
>&2 echo Removing $HTMLFILES sitemap.xml
rm -f $HTMLFILES sitemap.xml
It's drop in. Make sure the shebang is correct!