Update update_site.sh

This commit is contained in:
streetturtle 2022-01-23 19:22:17 -05:00 committed by GitHub
parent d7de3440bf
commit 3da400eb67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -4,5 +4,10 @@ for D in *; do
echo "${D}" echo "${D}"
cp ${D}/README.md ./_widgets/${D}.md cp ${D}/README.md ./_widgets/${D}.md
sed -i '1s/^/---\nlayout: page\n---\n/' ./_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 fi
done done