How is this Website Built?

The sources for this website are available in a Git repository:

$ git clone https://mathieu.daitauha.fr/sources/

Feel free to have a look at it, take inspiration from it if you like anything I did, or point out my mistakes so I can improve it.

The website is automatically rebuilt every time I push a new version of the sources, thanks to a post-receive Git hook:

#!/bin/bash

set -e

OUTPUT_DIR=/srv/www/daitauha.fr/mathieu
SOURCE_DIR=/srv/www/daitauha.fr/mathieu.git
TEMP_CLONE=mathieu.daitauha.fr

cd /tmp
rm -fr ${TEMP_CLONE}
git clone ${SOURCE_DIR} ${TEMP_CLONE} >/dev/null 2>&1

cd ${TEMP_CLONE}
make publish
rm -fr ${OUTPUT_DIR}.bak
test -d ${OUTPUT_DIR} && mv ${OUTPUT_DIR} ${OUTPUT_DIR}.bak
mv output ${OUTPUT_DIR}

cd ${SOURCE_DIR}
git update-server-info

Thanks!

This website is built and served using a few awesome Free Software tools:

Thank you to all developers and artists who made and shared them freely!

And of course a big thank you to Anthony Bourguignon for graciously hosting this website.