#!/bin/sh
set -eu

mkdir -p public

PROJECT_UC="$1"

pandoc --toc                                   \
       --highlight-style pygments              \
       --toc-depth=2                           \
        -s                                      \
        --metadata title="$PROJECT_UC - README" \
        --metadata lang=en                      \
        -r markdown                             \
        -w html                                 \
        < CHANGELOG.md > public/CHANGELOG.html
