Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix font awesome 6 setup #4748

Merged
merged 1 commit into from
Feb 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ nav_title: Customization
article_title: Android and FireOS Content Card Customization
layout: featured

platform:
platform:
- Android
- FireOS

Expand Down Expand Up @@ -40,7 +40,7 @@ guide_featured_list:
fa_icon: fa fa-times
- name: GIFs
link: /docs/developer_guide/platform_integration_guides/android/content_cards/customization/GIFs/
fa_icon: fa fa-caret-square-o-right
fa_icon: fa-solid fa-file-image
- name: Carousel View Use Case
link: /docs/developer_guide/platform_integration_guides/android/content_cards/customization/use_cases/carousel_view/
fa_icon: fa fa-arrows-h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ nav_title: Customization
article_title: Android and FireOS In-App Message Customization
layout: featured

platform:
platform:
- Android
- FireOS

Expand Down Expand Up @@ -34,13 +34,13 @@ guide_featured_list:
fa_icon: fa fa-code
- name: GIFs
link: /docs/developer_guide/platform_integration_guides/android/in-app_messaging/customization/gifs/
fa_icon: fa fa-caret-square-o-right
fa_icon: fa-solid fa-file-image
- name: YouTube in HTML
link: /docs/developer_guide/platform_integration_guides/android/in-app_messaging/customization/youtube_in_html/
fa_icon: fa fa-youtube-play
fa_icon: fa-brands fa-youtube
- name: Google Review Prompt
link: /docs/developer_guide/platform_integration_guides/android/in-app_messaging/customization/google_review_prompt/
fa_icon: fa fa-google
fa_icon: fa-brands fa-google


---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ nav_title: Customization
article_title: Android and FireOS News Feed Customization
layout: featured

platform:
platform:
- Android
- FireOS

Expand Down Expand Up @@ -34,7 +34,7 @@ guide_featured_list:
fa_icon: fa fa-id-badge
- name: GIFs
link: /docs/developer_guide/platform_integration_guides/android/news_feed/customization/gifs/
fa_icon: fa fa-caret-square-o-right
fa_icon: fa-solid fa-file-image


---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ guide_top_header: "Android Push Customization"
guide_top_text: ""
description: "This landing page covers the Braze Android SDK push customization options."

platform:
platform:
- Android

channel: push
Expand All @@ -17,7 +17,7 @@ guide_featured_title: "Section Articles"
guide_featured_list:
- name: Android Inline Image Push
link: /docs/developer_guide/platform_integration_guides/android/push_notifications/android/customization/inline_image_push/
fa_icon: fa fa-picture-o
fa_icon: fa-regular fa-image
- name: HTML Push Notifications
link: /docs/developer_guide/platform_integration_guides/android/push_notifications/android/customization/html_rendered_push/
fa_icon: fa fa-pencil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ guide_featured_list:
fa_icon: fa fa-exclamation
- name: Custom Sounds
link: /docs/developer_guide/platform_integration_guides/ios/push_notifications/customization/custom_sounds/
fa_icon: fa fa-file-audio-o
fa_icon: fa-regular fa-file-audio
- name: Rich Notifications
link: /docs/developer_guide/platform_integration_guides/ios/push_notifications/customization/rich_notifications/
fa_icon: fa fa-paint-brush
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ guide_featured_list:
fa_icon: fa fa-exclamation
- name: Custom Sounds
link: /docs/developer_guide/platform_integration_guides/ios/push_notifications/customization/custom_sounds/
fa_icon: fa fa-file-audio-o
fa_icon: fa-regular fa-file-audio
- name: Rich Notifications
link: /docs/developer_guide/platform_integration_guides/ios/push_notifications/customization/rich_notifications/
fa_icon: fa fa-paint-brush
Expand Down
2 changes: 1 addition & 1 deletion _docs/_help/faqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ guide_featured_list:
fa_icon: fas fa-comment-dots
- name: "Intelligence FAQs"
link: /docs/user_guide/intelligence/faqs/
fa_icon: fa fa-lightbulb-o
fa_icon: fa-regular fa-lightbulb


guide_menu_title: "Best Practices"
Expand Down
2 changes: 1 addition & 1 deletion _docs/_partners/isv_partners.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ guide_featured_title: "Partner Documentation"
guide_featured_list:
- name: API Integration
link: /docs/partners/isv_partners/api_partner
fa_icon: fa fa-user-circle-o
fa_icon: fa-regular fa-circle-user
- name: Cohort Import Integration
link: /docs/partners/isv_partners/cohort_import
fa_icon: fas fa-users
Expand Down
7 changes: 4 additions & 3 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

{% comment %} Braze Web SDK {% endcomment %}
<script type="text/javascript">
+function(a,p,P,b,y){a.braze={};a.brazeQueue=[];for(var s="BrazeSdkMetadata DeviceProperties Card Card.prototype.dismissCard Card.prototype.removeAllSubscriptions Card.prototype.removeSubscription Card.prototype.subscribeToClickedEvent Card.prototype.subscribeToDismissedEvent Card.fromContentCardsJson Banner CaptionedImage ClassicCard ControlCard ContentCards ContentCards.prototype.getUnviewedCardCount Feed Feed.prototype.getUnreadCardCount ControlMessage InAppMessage InAppMessage.SlideFrom InAppMessage.ClickAction InAppMessage.DismissType InAppMessage.OpenTarget InAppMessage.ImageStyle InAppMessage.Orientation InAppMessage.TextAlignment InAppMessage.CropType InAppMessage.prototype.closeMessage InAppMessage.prototype.removeAllSubscriptions InAppMessage.prototype.removeSubscription InAppMessage.prototype.subscribeToClickedEvent InAppMessage.prototype.subscribeToDismissedEvent InAppMessage.fromJson FullScreenMessage ModalMessage HtmlMessage SlideUpMessage User User.Genders User.NotificationSubscriptionTypes User.prototype.addAlias User.prototype.addToCustomAttributeArray User.prototype.addToSubscriptionGroup User.prototype.getUserId User.prototype.incrementCustomUserAttribute User.prototype.removeFromCustomAttributeArray User.prototype.removeFromSubscriptionGroup User.prototype.setCountry User.prototype.setCustomLocationAttribute User.prototype.setCustomUserAttribute User.prototype.setDateOfBirth User.prototype.setEmail User.prototype.setEmailNotificationSubscriptionType User.prototype.setFirstName User.prototype.setGender User.prototype.setHomeCity User.prototype.setLanguage User.prototype.setLastKnownLocation User.prototype.setLastName User.prototype.setPhoneNumber User.prototype.setPushNotificationSubscriptionType InAppMessageButton InAppMessageButton.prototype.removeAllSubscriptions InAppMessageButton.prototype.removeSubscription InAppMessageButton.prototype.subscribeToClickedEvent automaticallyShowInAppMessages destroyFeed hideContentCards showContentCards showFeed showInAppMessage toggleContentCards toggleFeed changeUser destroy getDeviceId initialize isPushBlocked isPushPermissionGranted isPushSupported logCardClick logCardDismissal logCardImpressions logContentCardsDisplayed logCustomEvent logFeedDisplayed logInAppMessageButtonClick logInAppMessageClick logInAppMessageHtmlClick logInAppMessageImpression logPurchase openSession requestPushPermission removeAllSubscriptions removeSubscription requestContentCardsRefresh requestFeedRefresh requestImmediateDataFlush enableSDK isDisabled setLogger setSdkAuthenticationSignature addSdkMetadata disableSDK subscribeToContentCardsUpdates subscribeToFeedUpdates subscribeToInAppMessage subscribeToSdkAuthenticationFailures toggleLogging unregisterPush wipeData handleBrazeAction".split(" "),i=0;i<s.length;i++){for(var m=s[i],k=a.braze,l=m.split("."),j=0;j<l.length-1;j++)k=k[l[j]];k[l[j]]=(new Function("return function "+m.replace(/\./g,"_")+"(){window.brazeQueue.push(arguments); return true}"))()}window.braze.getCachedContentCards=function(){return new window.braze.ContentCards};window.braze.getCachedFeed=function(){return new window.braze.Feed};window.braze.getUser=function(){return new window.braze.User};(y=p.createElement(P)).type='text/javascript';
y.src='https://js.appboycdn.com/web-sdk/4.0/braze.min.js';
+function(a,p,P,b,y){a.braze={};a.brazeQueue=[];for(var s="BrazeSdkMetadata DeviceProperties Card Card.prototype.dismissCard Card.prototype.removeAllSubscriptions Card.prototype.removeSubscription Card.prototype.subscribeToClickedEvent Card.prototype.subscribeToDismissedEvent Card.fromContentCardsJson Banner CaptionedImage ClassicCard ControlCard ContentCards ContentCards.prototype.getUnviewedCardCount Feed Feed.prototype.getUnreadCardCount ControlMessage InAppMessage InAppMessage.SlideFrom InAppMessage.ClickAction InAppMessage.DismissType InAppMessage.OpenTarget InAppMessage.ImageStyle InAppMessage.Orientation InAppMessage.TextAlignment InAppMessage.CropType InAppMessage.prototype.closeMessage InAppMessage.prototype.removeAllSubscriptions InAppMessage.prototype.removeSubscription InAppMessage.prototype.subscribeToClickedEvent InAppMessage.prototype.subscribeToDismissedEvent InAppMessage.fromJson FullScreenMessage ModalMessage HtmlMessage SlideUpMessage User User.Genders User.NotificationSubscriptionTypes User.prototype.addAlias User.prototype.addToCustomAttributeArray User.prototype.addToSubscriptionGroup User.prototype.getUserId User.prototype.incrementCustomUserAttribute User.prototype.removeFromCustomAttributeArray User.prototype.removeFromSubscriptionGroup User.prototype.setCountry User.prototype.setCustomLocationAttribute User.prototype.setCustomUserAttribute User.prototype.setDateOfBirth User.prototype.setEmail User.prototype.setEmailNotificationSubscriptionType User.prototype.setFirstName User.prototype.setGender User.prototype.setHomeCity User.prototype.setLanguage User.prototype.setLastKnownLocation User.prototype.setLastName User.prototype.setPhoneNumber User.prototype.setPushNotificationSubscriptionType InAppMessageButton InAppMessageButton.prototype.removeAllSubscriptions InAppMessageButton.prototype.removeSubscription InAppMessageButton.prototype.subscribeToClickedEvent FeatureFlag FeatureFlag.prototype.getStringProperty FeatureFlag.prototype.getNumberProperty FeatureFlag.prototype.getBooleanProperty automaticallyShowInAppMessages destroyFeed hideContentCards showContentCards showFeed showInAppMessage toggleContentCards toggleFeed changeUser destroy getDeviceId initialize isPushBlocked isPushPermissionGranted isPushSupported logCardClick logCardDismissal logCardImpressions logContentCardImpressions logContentCardClick logContentCardsDisplayed logCustomEvent logFeedDisplayed logInAppMessageButtonClick logInAppMessageClick logInAppMessageHtmlClick logInAppMessageImpression logPurchase openSession requestPushPermission removeAllSubscriptions removeSubscription requestContentCardsRefresh requestFeedRefresh refreshFeatureFlags requestImmediateDataFlush enableSDK isDisabled setLogger setSdkAuthenticationSignature addSdkMetadata disableSDK subscribeToContentCardsUpdates subscribeToFeedUpdates subscribeToInAppMessage subscribeToSdkAuthenticationFailures toggleLogging unregisterPush wipeData handleBrazeAction subscribeToFeatureFlagsUpdates getAllFeatureFlags".split(" "),i=0;i<s.length;i++){for(var m=s[i],k=a.braze,l=m.split("."),j=0;j<l.length-1;j++)k=k[l[j]];k[l[j]]=(new Function("return function "+m.replace(/\./g,"_")+"(){window.brazeQueue.push(arguments); return true}"))()}window.braze.getCachedContentCards=function(){return new window.braze.ContentCards};window.braze.getCachedFeed=function(){return new window.braze.Feed};window.braze.getUser=function(){return new window.braze.User};window.braze.getFeatureFlag=function(){return new window.braze.FeatureFlag};(y=p.createElement(P)).type='text/javascript';
y.src='https://js.appboycdn.com/web-sdk/4.6/braze.min.js';
y.async=1;(b=p.getElementsByTagName(P)[0]).parentNode.insertBefore(y,b)
}(window,document,'script');

Expand All @@ -19,7 +19,8 @@
enableLogging: false,
allowUserSuppliedJavascript: true,
sessionTimeoutInSeconds: 300,
baseUrl: 'sdk.iad-01.braze.com'
baseUrl: 'sdk.iad-01.braze.com',
doNotLoadFontAwesome: true
});
var app_valid_paths = {
'docs' : true
Expand Down
18 changes: 9 additions & 9 deletions _plugins/sdk_min_versions_tag.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Usage:
# Usage:
# {% sdk_min_versions ios:3.2.3 android:8.0.0 web:1.2.3 %}
# Description:
# Renders a chip for each platform along with the changelog version as an href
Expand Down Expand Up @@ -34,36 +34,36 @@ def render(context)

render_html = "<div id='sdk-versions'>"
if !@original_web.nil?
render_html += "<a href='/docs/developer_guide/platform_integration_guides/web/changelog/##{@web_changelog_ref}' class='sdk-versions--chip web-sdk' target='_blank'><i class='fa fa-desktop'></i> &nbsp; Web: #{@original_web}+ &nbsp;<i class='fa fa-external-link'></i></a>"
render_html += "<a href='/docs/developer_guide/platform_integration_guides/web/changelog/##{@web_changelog_ref}' class='sdk-versions--chip web-sdk' target='_blank'><i class='fa-solid fa-desktop'></i> &nbsp; Web: #{@original_web}+ &nbsp;<i class='fa-solid fa-arrow-up-right-from-square'></i></a>"
end
if !@original_ios.nil?
render_html += "<a href='/docs/developer_guide/platform_integration_guides/ios/changelog/swift_changelog/##{@ios_changelog_ref}' class='sdk-versions--chip ios-sdk' target='_blank'><i class='fa fa-apple'></i> &nbsp; iOS: #{@original_ios}+ &nbsp;<i class='fa fa-external-link'></i></a>"
render_html += "<a href='/docs/developer_guide/platform_integration_guides/ios/changelog/swift_changelog/##{@ios_changelog_ref}' class='sdk-versions--chip ios-sdk' target='_blank'><i class='fa-brands fa-apple'></i> &nbsp; iOS: #{@original_ios}+ &nbsp;<i class='fa-solid fa-arrow-up-right-from-square'></i></a>"
end
if !@original_ios2.nil?
render_html += "<a href='/docs/developer_guide/platform_integration_guides/ios/changelog/swift_changelog/##{@ios_changelog_ref2}' class='sdk-versions--chip ios-sdk' target='_blank'><i class='fa fa-apple'></i> &nbsp; iOS Swift: #{@original_ios2}+ &nbsp;<i class='fa fa-external-link'></i></a>"
render_html += "<a href='/docs/developer_guide/platform_integration_guides/ios/changelog/swift_changelog/##{@ios_changelog_ref2}' class='sdk-versions--chip ios-sdk' target='_blank'><i class='fa-brands fa-apple'></i> &nbsp; iOS Swift: #{@original_ios2}+ &nbsp;<i class='fa-solid fa-arrow-up-right-from-square'></i></a>"
end
if !@original_ios3.nil?
render_html += "<a href='/docs/developer_guide/platform_integration_guides/ios/changelog/objc_changelog/##{@ios_changelog_ref3}' class='sdk-versions--chip ios-sdk' target='_blank'><i class='fa fa-apple'></i> &nbsp; iOS Objective-C: #{@original_ios3} &nbsp;<i class='fa fa-external-link'></i></a>"
render_html += "<a href='/docs/developer_guide/platform_integration_guides/ios/changelog/objc_changelog/##{@ios_changelog_ref3}' class='sdk-versions--chip ios-sdk' target='_blank'><i class='fa-brands fa-apple'></i> &nbsp; iOS Objective-C: #{@original_ios3} &nbsp;<i class='fa-solid fa-arrow-up-right-from-square'></i></a>"
end
if !@original_android.nil?
render_html += "<a href='/docs/developer_guide/platform_integration_guides/android/changelog/##{@android_changelog_ref}' class='sdk-versions--chip android-sdk' target='_blank'><i class='fa fa-android'></i> &nbsp; Android: #{@original_android}+ &nbsp;<i class='fa fa-external-link'></i></a>"
render_html += "<a href='/docs/developer_guide/platform_integration_guides/android/changelog/##{@android_changelog_ref}' class='sdk-versions--chip android-sdk' target='_blank'><i class='fa-brands fa-android'></i> &nbsp; Android: #{@original_android}+ &nbsp;<i class='fa-solid fa-arrow-up-right-from-square'></i></a>"
end
if !@original_roku.nil?
render_html += "<a href='/docs/developer_guide/platform_integration_guides/roku/changelog/##{@roku_changelog_ref}' class='sdk-versions--chip roku-sdk' target='_blank'><i class='fa fa-tv'></i> &nbsp; Roku: #{@original_roku}+ &nbsp;<i class='fa fa-external-link'></i></a>"
render_html += "<a href='/docs/developer_guide/platform_integration_guides/roku/changelog/##{@roku_changelog_ref}' class='sdk-versions--chip roku-sdk' target='_blank'><i class='fa-solid fa-tv'></i> &nbsp; Roku: #{@original_roku}+ &nbsp;<i class='fa-solid fa-arrow-up-right-from-square'></i></a>"
end

render_html += "</div>"
return render_html
end

private
private

def get_full_version(text, platform)
query = /.*#{platform}:([\w\.\-]+) .*/
match = text.match(query)
if match.nil?
return nil
else
else
return match[1]
end
end
Expand Down
4 changes: 2 additions & 2 deletions assets/css/fontawesome.css

Large diffs are not rendered by default.

Binary file added assets/webfonts/fa-brands-400.ttf
Binary file not shown.
Binary file added assets/webfonts/fa-brands-400.woff2
Binary file not shown.
Binary file added assets/webfonts/fa-regular-400.ttf
Binary file not shown.
Binary file added assets/webfonts/fa-regular-400.woff2
Binary file not shown.
Binary file added assets/webfonts/fa-solid-900.ttf
Binary file not shown.
Binary file added assets/webfonts/fa-solid-900.woff2
Binary file not shown.
Binary file added assets/webfonts/fa-v4compatibility.ttf
Binary file not shown.
Binary file added assets/webfonts/fa-v4compatibility.woff2
Binary file not shown.