From a265d181cdf46cf8711468ad6c10fd09f6b46c6e Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Fri, 27 Feb 2015 14:06:34 -0700 Subject: [PATCH] Sync docs from master to gh-pages --- ghpages.sh | 46 ++++ images/.gitkeep | 0 spring-cloud-consul.html | 443 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 489 insertions(+) create mode 100644 ghpages.sh create mode 100644 images/.gitkeep create mode 100644 spring-cloud-consul.html diff --git a/ghpages.sh b/ghpages.sh new file mode 100644 index 00000000..91905757 --- /dev/null +++ b/ghpages.sh @@ -0,0 +1,46 @@ +#!/bin/bash -x + +git remote set-url --push origin `git config remote.origin.url | sed -e 's/^git:/https:/'` + +if ! (git remote set-branches --add origin gh-pages && git fetch -q); then + echo "No gh-pages, so not syncing" + exit 0 +fi + +if ! [ -d docs/target/generated-docs ]; then + echo "No gh-pages sources in docs/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 docs/target/generated-docs/*; do + file=${f#docs/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 origin gh-pages + +# Finally, switch back to the master branch and exit block +git checkout master +if [ "$dirty" != "0" ]; then git stash pop; fi + +exit 0 diff --git a/images/.gitkeep b/images/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/spring-cloud-consul.html b/spring-cloud-consul.html new file mode 100644 index 00000000..9fcd6760 --- /dev/null +++ b/spring-cloud-consul.html @@ -0,0 +1,443 @@ + + + + + + + +Spring Cloud Consul + + + + + +
+
+
+
+

This project provides Consul integrations for Spring Boot apps through autoconfiguration +and binding to the Spring Environment and other Spring programming model idioms. With a few +simple annotations you can quickly enable and configure the common patterns inside your +application and build large distributed systems with Consul based components. The +patterns provided include Service Discovery, Circuit Breaker and Configuration. +Intelligent Routing (Zuul) and Client Side Load Balancing (Ribbon) are provided by +integration with Spring Cloud Netflix.

+
+
+
+
+

TODO: Document Spring Cloud Consul

+
+ +
+
+
+ + + \ No newline at end of file