summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2022-01-23 19:22:17 -0500
committerGitHub <noreply@github.com>2022-01-23 19:22:17 -0500
commit3da400eb67d78fa9883591888a8512cfe3279107 (patch)
treece18464b00e72c764b6ee6f67351b56115096ebe /scripts
parentd7de3440bf5f7c825843fd43f7dd8a30cba76ce4 (diff)
Update update_site.sh
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update_site.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/update_site.sh b/scripts/update_site.sh
index f74a046..411069f 100755
--- a/scripts/update_site.sh
+++ b/scripts/update_site.sh
@@ -4,5 +4,10 @@ for D in *; do
echo "${D}"
cp ${D}/README.md ./_widgets/${D}.md
sed -i '1s/^/---\nlayout: page\n---\n/' ./_widgets/${D}.md
+ mkdir -p ./assets/img/screenshots/${D}
+
+ find ${D}/ \( -name '*.jpg' -o -name '*.png' -o -name '*.gif' \) -exec cp '{}' ./assets/img/screenshots/${D} \;
+
+ sed -i "s/](\.\(\/screenshots\)\{0,1\}/](..\/awesome-wm-widgets\/assets\/img\/screenshots\/$D/g" ./_widgets/${D}.md
fi
-done \ No newline at end of file
+done