Skip to content

Commit

Permalink
deploy: add upload-docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 30, 2018
1 parent dee5f53 commit bbbc869
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/upload-docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

readonly modules="packages/*"

for m in $modules; do
name=$(echo $m | cut -d '/' -f 2)
echo "sanitizing: $name"
find $m/doc -name "*.html" -exec sed -i "s/\/\([a-zA-Z_0-9/-]\+\)\/node_modules\///g" '{}' \;
echo "syncing..."
aws s3 sync $m/doc s3://docs.thi.ng/umbrella/$name --profile toxi-s3 --acl public-read
done

0 comments on commit bbbc869

Please sign in to comment.