summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorTom MacWright <tmcw@users.noreply.github.com>2016-12-15 10:30:45 -0800
committerGitHub <noreply@github.com>2016-12-15 10:30:45 -0800
commit74f39c0120844e5c08feb05907fcc19a653a8b4d (patch)
tree58f949ba58099fd1b8752b308abb41a75d6c488b /platform
parent78efb2d4519c862fe65e0a7a86d2e1aa5c6005fc (diff)
downloadqtlocation-mapboxgl-74f39c0120844e5c08feb05907fcc19a653a8b4d.tar.gz
[ios] [osx] Make theme configurable (#7420)
* Make theme configurable * [ios][osx] Make jazzy theme configurable
Diffstat (limited to 'platform')
-rwxr-xr-xplatform/ios/scripts/document.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/ios/scripts/document.sh b/platform/ios/scripts/document.sh
index 4160749e2b..2fb57a2688 100755
--- a/platform/ios/scripts/document.sh
+++ b/platform/ios/scripts/document.sh
@@ -32,6 +32,9 @@ mkdir -p ${OUTPUT}
cp platform/ios/screenshot.png "${OUTPUT}"
+DEFAULT_THEME="platform/darwin/docs/theme"
+THEME=${JAZZY_THEME:-$DEFAULT_THEME}
+
jazzy \
--config platform/ios/jazzy.yml \
--sdk iphonesimulator \
@@ -40,7 +43,7 @@ jazzy \
--readme ${README} \
--documentation="platform/ios/docs/Info.plist Keys.md" \
--root-url https://www.mapbox.com/ios-sdk/api/${RELEASE_VERSION}/ \
- --theme platform/darwin/docs/theme \
+ --theme ${THEME} \
--output ${OUTPUT}
# https://github.com/realm/jazzy/issues/411
find ${OUTPUT} -name *.html -exec \