#!/usr/bin/env bash
IS_CLEAN=$1
if [ "${IS_CLEAN}" == "clean" ]; then
ls source/*.rst | grep -v 'index.rst' | xargs rm -f
fi
(cd .. && sphinx-apidoc -o docs/source . "**/migrations" "trans" "**/tests")
(cd .. && sphinx-build -v -b html -E docs/source/ docs/build)