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