#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
PROJ_ROOT="$SCRIPT_DIR/../"
for x in "$PROJ_ROOT"/figures/*.mmd; do mmdc --pdfFit -c "$PROJ_ROOT/.mermaid-config.json" -i "$x" -o "$PROJ_ROOT/figures/$(basename "$x" .mmd).pdf"; done
