diff options
Diffstat (limited to 'ios/docs')
-rwxr-xr-x | ios/docs/install_docs.sh | 24 | ||||
-rwxr-xr-x | ios/docs/remove_docs.sh | 7 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ios/docs/install_docs.sh b/ios/docs/install_docs.sh new file mode 100755 index 0000000000..4d116c0332 --- /dev/null +++ b/ios/docs/install_docs.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +if [ -z `which appledoc` ]; then + echo "Unable to find appledoc. Consider installing it from source or Homebrew." + exit 1 +fi + +VERSION=$( git tag | sort -r | sed -n '1p' ) +echo "Creating new docs for $VERSION..." +echo + +appledoc \ + --output /tmp/`uuidgen` \ + --project-name "Mapbox GL $VERSION" \ + --project-company Mapbox \ + --create-docset \ + --company-id com.mapbox \ + --ignore app \ + --ignore dist \ + --ignore pkg \ + --ignore test \ + --ignore .m \ + --ignore .mm \ + .
\ No newline at end of file diff --git a/ios/docs/remove_docs.sh b/ios/docs/remove_docs.sh new file mode 100755 index 0000000000..bb8c008dc2 --- /dev/null +++ b/ios/docs/remove_docs.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +echo +echo "Removing docs from ~/Library/Developer/Shared/Documentation/DocSets..." +echo + +rm -rfv ~/Library/Developer/Shared/Documentation/DocSets/com.mapbox.Mapbox-GL-*
\ No newline at end of file |