A .build.yml => .build.yml +18 -0
@@ 0,0 1,18 @@
+image: alpine/edge
+packages:
+ - pandoc
+ - rsync
+sources:
+ - https://git.sr.ht/~edwargix/tallyard
+environment:
+ deploy: deploy@tallyard.xyz
+secrets:
+ - 22d51b58-cf60-4127-a353-8e8bb12f6e80
+tasks:
+ - build: |
+ cd tallyard/site
+ make
+ - deploy: |
+ cd tallyard/site
+ sshopts="ssh -o StrictHostKeyChecking=no"
+ rsync --rsh="$sshopts" -rP index.html $deploy:/var/www/tallyard.xyz/
A site/.gitignore => site/.gitignore +2 -0
@@ 0,0 1,2 @@
+README.html
+index.html
A site/Makefile => site/Makefile +8 -0
@@ 0,0 1,8 @@
+index.html: index.dhtml README.html
+ sed -e '/$${README}/{r README.html' -e 'd}' index.dhtml > $@
+
+README.html: ../README.md
+ pandoc $< -o $@
+
+clean:
+ rm -f index.html README.html
A site/index.dhtml => site/index.dhtml +22 -0
@@ 0,0 1,22 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <style type="text/css">
+ body {
+ margin:40px auto;
+ max-width:650px;
+ line-height:1.6;
+ font-size:18px;
+ color:#444;
+ padding:0 10px
+ }
+ h1,h2,h3 {
+ line-height:1.2
+ }
+ </style>
+ </head>
+
+ <body>
+ ${README}
+ </body>
+</html>