summaryrefslogtreecommitdiff
path: root/platform/ios/scripts/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/scripts/package.sh')
-rwxr-xr-xplatform/ios/scripts/package.sh25
1 files changed, 3 insertions, 22 deletions
diff --git a/platform/ios/scripts/package.sh b/platform/ios/scripts/package.sh
index aabc48a6f0..eff587c7db 100755
--- a/platform/ios/scripts/package.sh
+++ b/platform/ios/scripts/package.sh
@@ -209,18 +209,8 @@ if [[ ${BUILD_DYNAMIC} == true ]]; then
plutil -replace CFBundleShortVersionString -string "${SHORT_VERSION}" "${OUTPUT}/dynamic/${NAME}.framework/Info.plist"
cp -pv ios/framework/strip-frameworks.sh "${OUTPUT}/dynamic/${NAME}.framework/strip-frameworks.sh"
fi
+sed -n -e '/^## iOS/,$p' CHANGELOG.md > "${OUTPUT}/CHANGELOG.md"
-step "Generating API documentation…"
-if [ -z `which jazzy` ]; then
- step "Installing jazzy…"
- gem install jazzy
- if [ -z `which jazzy` ]; then
- echo "Unable to install jazzy. See https://github.com/mapbox/mapbox-gl-native/blob/master/platform/ios/INSTALL.md"
- exit 1
- fi
-fi
-DOCS_OUTPUT="${OUTPUT}/documentation"
-RELEASE_VERSION=$( echo ${SHORT_VERSION} | sed -e 's/^ios-v//' -e 's/-.*//' )
rm -rf /tmp/mbgl
mkdir -p /tmp/mbgl/
README=/tmp/mbgl/README.md
@@ -236,15 +226,6 @@ sed -i '' \
-e '/{{STATIC}}/d' -e '/{{\/STATIC}}/d' \
"${README}"
cp ${README} "${OUTPUT}"
-sed -n -e '/^## iOS/,$p' CHANGELOG.md > "${OUTPUT}/CHANGELOG.md"
-jazzy \
- --sdk iphonesimulator \
- --github-file-prefix https://github.com/mapbox/mapbox-gl-native/tree/${HASH} \
- --module-version ${SHORT_VERSION} \
- --readme ${README} \
- --root-url https://www.mapbox.com/ios-sdk/api/${RELEASE_VERSION}/ \
- --output ${DOCS_OUTPUT}
-# https://github.com/realm/jazzy/issues/411
-find ${DOCS_OUTPUT} -name *.html -exec \
- perl -pi -e 's/Mapbox\s+(Docs|Reference)/Mapbox iOS SDK $1/' {} \;
+step "Generating API documentation…"
+make idocument OUTPUT="${OUTPUT}/documentation" README=${README}