Mailspring/script/docs

18 lines
462 B
Plaintext
Raw Normal View History

#!/bin/bash
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
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
rm -rf docs/output
git add .
printf "Now commit the changes! \n\n"
git status