From a8e4f3089cde19bb9f0f6c3b6fda6a2be39566d2 Mon Sep 17 00:00:00 2001 From: James Sherlock Date: Thu, 25 May 2017 07:38:06 -0700 Subject: [PATCH] Add script to detect if Jazzy is installed or not Summary: Issue fixed: #744 Pretty much same as Swiftlint's check just inverted and made for jazzy! Closes https://github.com/Instagram/IGListKit/pull/790 Differential Revision: D5129341 Pulled By: rnystrom fbshipit-source-id: 4cc0f037aeefb216e5e1f82bcfc5da1c9a15caab --- Dangerfile | 2 +- build_docs.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dangerfile b/Dangerfile index e098e106..18571079 100644 --- a/Dangerfile +++ b/Dangerfile @@ -14,7 +14,7 @@ if has_source_changes && no_changelog_entry && not_declared_trivial end # Docs are regenerated when releasing -has_doc_changes = !git.modified_files.grep(/docs/).empty? +has_doc_changes = !git.modified_files.grep(/docs\//).empty? if has_doc_changes warn("Docs are regenerated when creating new releases.") end diff --git a/build_docs.sh b/build_docs.sh index 9c888ce6..e0f52b28 100755 --- a/build_docs.sh +++ b/build_docs.sh @@ -1,5 +1,10 @@ #!/bin/bash +if ! which jazzy >/dev/null; then + echo "Jazzy not detected: You can download it from https://github.com/realm/jazzy" + exit +fi + # Docs by jazzy # https://github.com/realm/jazzy # ------------------------------