Update update_site.sh
This commit is contained in:
parent
3ec57a1d57
commit
e66effbf9a
|
@ -4,9 +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} \;
|
||||
mkdir -p ./assets/img/widgets/screenshots/${D}
|
||||
|
||||
find ${D}/ \( -name '*.jpg' -o -name '*.png' -o -name '*.gif' \) -exec cp '{}' ./assets/img/widgets/screenshots/${D} \;
|
||||
|
||||
sed -i "s/](\.\(\/screenshots\)\{0,1\}/](..\/awesome-wm-widgets\/assets\/img\/screenshots\/$D/g" ./_widgets/${D}.md
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue