Update update_site.sh
This commit is contained in:
parent
d7de3440bf
commit
3da400eb67
|
@ -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
|
Loading…
Reference in New Issue