2022-01-23 20:41:03 +01:00
|
|
|
mkdir ./_widgets
|
2022-01-23 19:37:07 +01:00
|
|
|
for D in *; do
|
|
|
|
if [[ -d "${D}" ]] && [[ ${D} == *"-widget"* ]]; then
|
|
|
|
echo "${D}"
|
|
|
|
cp ${D}/README.md ./_widgets/${D}.md
|
|
|
|
sed -i '1s/^/---\nlayout: page\n---\n/' ./_widgets/${D}.md
|
2022-01-24 01:22:17 +01:00
|
|
|
|
2022-01-24 02:11:57 +01:00
|
|
|
mkdir -p ./assets/img/widgets/screenshots/${D}
|
|
|
|
|
|
|
|
find ${D}/ \( -name '*.jpg' -o -name '*.png' -o -name '*.gif' \) -exec cp '{}' ./assets/img/widgets/screenshots/${D} \;
|
2022-01-24 01:22:17 +01:00
|
|
|
|
2022-01-24 03:04:08 +01:00
|
|
|
sed -i "s/](\.\(\/screenshots\)\{0,1\}/](..\/awesome-wm-widgets\/assets\/img\/widgets\/screenshots\/$D/g" ./_widgets/${D}.md
|
2022-01-23 19:37:07 +01:00
|
|
|
fi
|
2022-01-24 01:22:17 +01:00
|
|
|
done
|