From cfea61cb46881fd33d24f222e3e33bd1db7211b2 Mon Sep 17 00:00:00 2001 From: David Florness Date: Wed, 20 May 2020 00:17:08 -0600 Subject: [PATCH] Simple site for tallyard.xyz Some day this will be a lot better --- .build.yml | 18 ++++++++++++++++++ site/.gitignore | 2 ++ site/Makefile | 8 ++++++++ site/index.dhtml | 22 ++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 .build.yml create mode 100644 site/.gitignore create mode 100644 site/Makefile create mode 100644 site/index.dhtml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..a1c0327 --- /dev/null +++ b/.build.yml @@ -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/ diff --git a/site/.gitignore b/site/.gitignore new file mode 100644 index 0000000..39c21d7 --- /dev/null +++ b/site/.gitignore @@ -0,0 +1,2 @@ +README.html +index.html diff --git a/site/Makefile b/site/Makefile new file mode 100644 index 0000000..e19232d --- /dev/null +++ b/site/Makefile @@ -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 diff --git a/site/index.dhtml b/site/index.dhtml new file mode 100644 index 0000000..622fbcf --- /dev/null +++ b/site/index.dhtml @@ -0,0 +1,22 @@ + + + + + + + + ${README} + + -- 2.38.4