refactor(script/docs): Add comments

This commit is contained in:
Juan Tejada 2015-11-17 18:09:46 -08:00
parent 35991c5786
commit 52e2c1251e

View file

@ -1,11 +1,13 @@
#!/bin/bash #!/bin/bash
# Runs script/grunt docs and moves the output to gh-pages branch
# This overwrites whatever is in gh-pages
mkdir docs/output mkdir docs/output
script/grunt docs script/grunt docs
git checkout gh-pages --quiet git checkout gh-pages --quiet
cp -rf docs/output/* docs cp -rf docs/output/* docs # Place all of the html in its proper place
mv -f docs/sidebar.json _data mv -f docs/sidebar.json _data # Move sidebar.json to appropriate folder
rm -f docs/api.json rm -f docs/api.json # Remove unecessary file
rm -rf docs/output rm -rf docs/output
git add . git add .