2022-11-24 17:25:46 +01:00
|
|
|
#!/bin/sh
|
2022-11-18 11:57:56 +01:00
|
|
|
|
2023-09-06 18:51:36 +02:00
|
|
|
FONT="'Cascadia Code PL', 'JetBrains Mono', 'Iosevka', 'Fira Code', 'Hack', monospace"
|
2022-11-18 11:57:56 +01:00
|
|
|
|
|
|
|
for pic in $(find ./static/files -name '*.dot' -print); do
|
2023-02-04 17:54:15 +01:00
|
|
|
SVG_NAME=".$(echo $pic | cut -d'.' -f2)"
|
|
|
|
|
|
|
|
# light mode
|
|
|
|
dot $pic -Tsvg -Gfontname="$FONT" -Nfontname="$FONT" -Efontname="$FONT" > ${SVG_NAME}_light.svg
|
|
|
|
|
|
|
|
# dark mode
|
2023-07-20 20:30:54 +02:00
|
|
|
dot $pic -Tsvg -Gfontname="$FONT" -Nfontname="$FONT" -Efontname="$FONT" -Gbgcolor="#1b1b1d" -Gcolor="white" -Gfontcolor="white" -Nfillcolor="none" -Ncolor="white" -Nfontcolor="white" -Efillcolor="none" -Ecolor="white" -Efontcolor="white" > ${SVG_NAME}_dark.svg
|
|
|
|
done;
|