From 56e6d09b0fb06b233eaa0183d714aef64c0ff794 Mon Sep 17 00:00:00 2001 From: Jesse Farless Date: Fri, 10 Jun 2016 14:51:40 +0200 Subject: [PATCH] Add a script that updates RxSwift jazzy docs --- scripts/update-jazzy-docs.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 scripts/update-jazzy-docs.sh diff --git a/scripts/update-jazzy-docs.sh b/scripts/update-jazzy-docs.sh new file mode 100755 index 00000000..cd539802 --- /dev/null +++ b/scripts/update-jazzy-docs.sh @@ -0,0 +1,22 @@ +. scripts/common.sh + +function updateDocs() { + WORKSPACE=$1 + SCHEME=$2 + CONFIGURATION=$3 + SIMULATOR=$4 + MODULE=$5 + + ensure_simulator_available "${SIMULATOR}" + SIMULATOR_GUID=`simulator_ids "${SIMULATOR}"` + DESTINATION='id='$SIMULATOR_GUID'' + + set -x + killall Simulator || true + jazzy --config .jazzy.yml -m "${MODULE}" -x -workspace,"${WORKSPACE}",-scheme,"${SCHEME}",-configuration,"${CONFIGURATION}",-derivedDataPath,"${BUILD_DIRECTORY}",-destination,"$DESTINATION" + set +x +} + +./scripts/update-jazzy-config.rb + +updateDocs Rx.xcworkspace "RxExample-iOS" "Release" $DEFAULT_IOS9_SIMULATOR "RxSwift"