Add docs script to automatically move output of grunt docs to gh-pages

This commit is contained in:
Juan Tejada 2015-11-17 18:03:18 -08:00
parent 285a60493e
commit 35991c5786

13
script/docs Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
mkdir docs/output
script/grunt docs
git checkout gh-pages --quiet
cp -rf docs/output/* docs
mv -f docs/sidebar.json _data
rm -f docs/api.json
rm -rf docs/output
git add .
printf "Now commit the changes! \n\n"
git status