#!/bin/sh

# Documentation generator using Gatsby and MkDocs.

set -e

OUTPUT="$(pwd)/public"
DOCS="$OUTPUT/docs"

npm run-script build

echo "rojo.space" > "$OUTPUT/CNAME"

rm -rf "$DOCS"
mkdir "$DOCS"
mkdocs build --site-dir "$DOCS"