2015-11-18 10:03:18 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-11-24 03:07:36 +08:00
|
|
|
set -e
|
|
|
|
|
2015-11-18 10:09:46 +08:00
|
|
|
# Runs script/grunt docs and moves the output to gh-pages branch
|
|
|
|
# This overwrites whatever is in gh-pages
|
2015-11-18 10:03:18 +08:00
|
|
|
mkdir docs/output
|
|
|
|
script/grunt docs
|
|
|
|
git checkout gh-pages --quiet
|
2015-11-18 10:09:46 +08:00
|
|
|
cp -rf docs/output/* docs # Place all of the html in its proper place
|
|
|
|
mv -f docs/sidebar.json _data # Move sidebar.json to appropriate folder
|
|
|
|
rm -f docs/api.json # Remove unecessary file
|
2015-11-18 10:03:18 +08:00
|
|
|
rm -rf docs/output
|
|
|
|
|
|
|
|
git add .
|
|
|
|
printf "Now commit the changes! \n\n"
|
|
|
|
git status
|