Sha256: 90590cf0850c1fa26e899d4b19acc075ca3f62f06d9231e3b1d2abebf28875d9

Contents?: true

Size: 661 Bytes

Versions: 2

Compression:

Stored size: 661 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 pull --rebase

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 --force

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

git checkout master

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stub_requests-0.1.11 update_docs.sh
stub_requests-0.1.10 update_docs.sh