summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2022-01-23 13:37:07 -0500
committerstreetturtle <streetturtle@gmail.com>2022-01-23 13:37:07 -0500
commit18b5614e80bd9485669e58748328e14c47447abf (patch)
treeddb49d88b1e6d8f3cf8fef733feca0e364020a38 /scripts
parentac49ade9951b591e859a470803e166acfa2b7bf2 (diff)
Test new gh-action
Diffstat (limited to 'scripts')
-rw-r--r--scripts/update_site.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/update_site.sh b/scripts/update_site.sh
new file mode 100644
index 0000000..5f0f5d6
--- /dev/null
+++ b/scripts/update_site.sh
@@ -0,0 +1,7 @@
+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 \ No newline at end of file