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
This commit is contained in:
James Sherlock 2017-05-25 07:38:06 -07:00 committed by Facebook Github Bot
parent c2504e0d0e
commit a8e4f3089c
2 changed files with 6 additions and 1 deletions

View file

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

View file

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