2022-07-24 14:15:32 +00:00
|
|
|
# show all commands
|
|
|
|
default:
|
|
|
|
just --list --unsorted
|
|
|
|
|
2022-07-26 22:08:23 +00:00
|
|
|
# build referee-facing html
|
|
|
|
spoilers:
|
|
|
|
cat basement.order |\
|
|
|
|
xargs pandoc -f markdown -t markdown |\
|
|
|
|
pandoc \
|
2022-07-24 14:15:32 +00:00
|
|
|
-t html \
|
|
|
|
--standalone \
|
|
|
|
--toc \
|
|
|
|
--metadata title="BASEMENT QUEST" \
|
|
|
|
-H includes/styles.html \
|
2022-07-26 22:08:23 +00:00
|
|
|
> www/spoilers.html
|
2022-07-24 14:15:32 +00:00
|
|
|
|
2022-07-26 22:08:23 +00:00
|
|
|
# build public facing html
|
|
|
|
public:
|
|
|
|
cat basement.order |\
|
|
|
|
xargs -I % pandoc -f markdown -t markdown --template=templates/player.tmpl % |\
|
|
|
|
pandoc -t html \
|
2022-07-24 14:15:32 +00:00
|
|
|
--standalone \
|
|
|
|
--toc \
|
|
|
|
--metadata title="BASEMENT QUEST" \
|
|
|
|
-H includes/styles.html \
|
2022-07-26 22:08:23 +00:00
|
|
|
> www/index.html
|
|
|
|
|
|
|
|
# build rss
|
|
|
|
rss:
|
|
|
|
#!/bin/sh
|
|
|
|
echo "Building xml file!!"
|
|
|
|
echo "<?xml version=\"1.0\" ?>" > www/rss.xml
|
|
|
|
echo "<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">" >> www/rss.xml
|
|
|
|
echo " <channel>" >> www/rss.xml
|
|
|
|
echo " <atom:link href=\"https://tilde.town/~dozens/basementquest/rss.xml\" rel=\"self\" type=\"application/rss+xml\" />" >> www/rss.xml
|
|
|
|
echo " <title>BASEMENT QWEST</title>" >> www/rss.xml
|
|
|
|
echo " <link>https://tilde.town/~dozens/basementquest/rss.xml</link>" >> www/rss.xml
|
|
|
|
echo " <description>Friends having ADVENTURES! Huzzah!</description>" >> www/rss.xml
|
|
|
|
|
|
|
|
fd . 'src/' -e md -x pandoc -f markdown+autolink_bare_uris --template=templates/item.tmpl >> www/rss.xml
|
|
|
|
|
|
|
|
echo " </channel>" >> www/rss.xml
|
|
|
|
echo "</rss> " >> www/rss.xml
|
|
|
|
echo "Done building xml file \o/"
|
|
|
|
|
|
|
|
# build public, spoilers, and rss
|
|
|
|
all: spoilers public rss
|