summaryrefslogtreecommitdiff
path: root/scripts/update_site.sh
blob: f74a0461e832577c0cabaec037c8602dfe65f065 (plain)
1
2
3
4
5
6
7
8
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
    fi
done