mirror of
https://github.com/daylinmorgan/yartsu.git
synced 2024-11-10 00:23:15 -06:00
20 lines
443 B
Bash
Executable file
20 lines
443 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
THEME_MD="./docs/themes.md"
|
|
|
|
themes=$(yartsu --list-themes | tail -n +2 | awk '{print $2}')
|
|
|
|
mkdir -p ./assets/themes
|
|
rm -f $THEME_MD
|
|
|
|
echo "# Themes" >>$THEME_MD
|
|
echo >>$THEME_MD
|
|
for theme in $themes; do
|
|
url="assets/themes/${theme}.svg"
|
|
echo >>$THEME_MD
|
|
echo "## $theme" >>$THEME_MD
|
|
echo "![$theme](../$url)" >>$THEME_MD
|
|
yartsu --theme $theme -o $url -t "yartsu --theme ${theme}" -- yartsu -h
|
|
done
|
|
|
|
echo "finished."
|