#!/usr/bin/env bash
set -euxo pipefail
THEME_MD="./docs/themes.md"
themes=$(yartsu --list-themes | tail -n +5 | cut -d' ' -f 3)
mkdir -p ./docs/themes
rm -f ./docs/themes/*
rm -f $THEME_MD
yartsu -o docs/themes/list.svg -- yartsu --list-themes
cat >>"$THEME_MD" <