Sha256: b06e3016983819ae64c5fd60cd6e55f68150cf38e487c854ae0f32125f721005

Contents?: true

Size: 666 Bytes

Versions: 7

Compression:

Stored size: 666 Bytes

Contents

#!/usr/bin/env bash

git checkout master
git fetch
stash_created=0

if [[ "$(git diff --stat)" != "" ]]; then
  stash_created=1
  git stash push -u -a -m "Before updating docs"
fi;

git reset --hard origin/master

rake yard

git checkout gh-pages

echo "Cleaning up current documentation"
find . ! -path '*/.git*' ! -path '*/doc*' ! -path '*/update_docs.sh*' ! -path '*/_config.yml*' ! -path '*/_index.html*' ! -path '.' | xargs rm -rf

echo "Copying new documentation"
mv doc/* ./

echo "Sending new documentation to github"
git add --all
git commit -a -m 'Update documentation'
git push

if [[ $stash_created == 1 ]]; then
  git stash pop
fi;

git checkout master

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stub_requests-0.1.9 update_docs.sh
stub_requests-0.1.8 update_docs.sh
stub_requests-0.1.7 update_docs.sh
stub_requests-0.1.6 update_docs.sh
stub_requests-0.1.5 update_docs.sh
stub_requests-0.1.4 update_docs.sh
stub_requests-0.1.3 update_docs.sh