From 6dc38c593a70f4cbe9b9043833e0f4d19b133209 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Wed, 30 Jan 2019 18:07:09 -0800 Subject: [ios, docs] Support custom jazzy header content --- platform/ios/scripts/document.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/ios/scripts/document.sh b/platform/ios/scripts/document.sh index cf6d71a9f0..b2e8dc4f68 100755 --- a/platform/ios/scripts/document.sh +++ b/platform/ios/scripts/document.sh @@ -10,6 +10,9 @@ if [ -z `which jazzy` ]; then ./platform/ios/scripts/install-packaging-dependencies.sh fi +DEFAULT_THEME="platform/darwin/docs/theme" +THEME=${JAZZY_THEME:-$DEFAULT_THEME} +CUSTOM_HEAD=${JAZZY_CUSTOM_HEAD:-''} OUTPUT=${OUTPUT:-documentation} BRANCH=$( git describe --tags --match=ios-v*.*.* --abbrev=0 ) @@ -31,8 +34,6 @@ cp -r platform/darwin/docs/img "${OUTPUT}" cp -r platform/ios/docs/img "${OUTPUT}" step "Generating jazzy docs for ${SHORT_VERSION}…" -DEFAULT_THEME="platform/darwin/docs/theme" -THEME=${JAZZY_THEME:-$DEFAULT_THEME} jazzy \ --config platform/ios/jazzy.yml \ @@ -43,6 +44,7 @@ jazzy \ --documentation="platform/{darwin,ios}/docs/guides/*.md" \ --root-url https://docs.mapbox.com/ios/api/maps/${RELEASE_VERSION}/ \ --theme ${THEME} \ + --head "${CUSTOM_HEAD}" \ --output ${OUTPUT} # https://github.com/realm/jazzy/issues/411 -- cgit v1.2.1