Sync docs from master to gh-pages

This commit is contained in:
Dave Syer
2016-02-03 15:58:06 +00:00
parent 0274f5f2fc
commit f06ae5e594
7 changed files with 5376 additions and 0 deletions

46
ghpages.sh Normal file
View File

@@ -0,0 +1,46 @@
#!/bin/bash -x
git remote add docs https://github.com/spring-projects/spring-cloud-static
if ! (git fetch docs && git checkout --track docs/gh-pages); then
echo "No gh-pages, error"
exit 1
fi
if ! [ -d target/generated-docs ]; then
echo "No gh-pages sources in target/generated-docs, so not syncing"
exit 0
fi
# Stash any outstanding changes
###################################################################
git diff-index --quiet HEAD
dirty=$?
if [ "$dirty" != "0" ]; then git stash; fi
# Switch to gh-pages branch to sync it with master
###################################################################
git checkout gh-pages
for f in target/generated-docs/*; do
file=${f#target/generated-docs/*}
if ! git ls-files -i -o --exclude-standard --directory | grep -q ^$file$; then
# Not ignored...
cp -rf $f .
git add -A $file
fi
done
git commit -a -m "Sync docs from master to gh-pages"
# Uncomment the following push if you want to auto push to
# the gh-pages branch whenever you commit to master locally.
# This is a little extreme. Use with care!
###################################################################
git push docs gh-pages || exit 1
# Finally, switch back to the master branch and exit block
git checkout master
if [ "$dirty" != "0" ]; then git stash pop; fi
exit 0

0
images/.gitkeep Normal file
View File

BIN
images/Hystrix.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

BIN
images/HystrixFallback.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
images/HystrixGraph.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
images/RequestLatency.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

5330
spring-cloud.html Normal file

File diff suppressed because it is too large Load Diff