diff options
author | Augusto Gunsch <55068932+augustogunsch@users.noreply.github.com> | 2022-01-23 21:38:19 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-23 21:38:19 -0300 |
commit | f7d7b3e6f79f8216028fcf12b111b029b4cbdfcf (patch) | |
tree | 0617616d84259d3eedc3f26b3a1cf8ebf56b0b07 /scripts | |
parent | 3e9f130450951fdb86d0f37b0994f77af323f3ce (diff) | |
parent | 4066f673dbda4a733ac6d838bf04bff8682265c3 (diff) |
Merge branch 'streetturtle:master' into master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update_site.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/update_site.sh b/scripts/update_site.sh new file mode 100755 index 0000000..411069f --- /dev/null +++ b/scripts/update_site.sh @@ -0,0 +1,13 @@ +mkdir ./_widgets +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 + 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 |