#!/bin/bash
yardoc lib/**/*.rb &&
mkdir -p ../stacked-doc &&
mv doc/* ../stacked-doc &&
git checkout gh-pages &&
mv ../stacked-doc/* . &&
git add . &&
git commit -m "Updated documentation." &&
git push origin gh-pages

#!/bin/bash
yardoc lib/**/*.rb &&
mkdir -p ../stacked-doc &&
mv doc/* ../stacked-doc &&
git checkout gh-pages &&
rm -rf * &&
mv ../stacked-doc/* . &&
git add . &&
git commit -m "Updated documentation." &&
git push origin gh-pages

Remove all files before trying to copy them back.
Remove all files before trying to copy them back.
