Skip to content

Commit e596437

Browse files
authored
Merge pull request #5 from segmentio/add-rouge
add rouge
2 parents 7d88e2f + aa553e6 commit e596437

File tree

15 files changed

+49
-49
lines changed

15 files changed

+49
-49
lines changed

_config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ url: "http://0.0.0.0:4000" # the base hostname & protocol for your site, e.g. ht
66
# Build settings
77
markdown: kramdown
88
theme: minima
9+
highlighter: rouge
910
defaults:
10-
-
11-
scope:
11+
-
12+
scope:
1213
path: ""
1314
values:
1415
layout: "page"
@@ -25,4 +26,4 @@ exclude:
2526
- Makefile
2627
- Dockerfile
2728
- README.md
28-
- conf/
29+
- conf/

connections/destinations/adjust/index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This document was last updated on January 31, 2018. If you notice any gaps, out-
1111

1212
<!-- {{>connection-modes}} -->
1313

14-
1. From your Segment UI's Destinations page click on "Add Destination".
14+
1. From your Segment UI's Destinations page click on "Add Destination".
1515
2. Search for "Adjust" within the Destinations Catalog and confirm the Source you'd like to connect to.
1616
3. Do not need to include Adjust's SDK natively as this prevent you from successfully implementing the Adjust.
1717
4. Depending on the source you've selected, include Adjust's library by adding the following lines to your dependency configuration.
@@ -26,13 +26,13 @@ pod "Segment-Adjust"
2626

2727
After adding the dependency, you must register the destination with our SDK. To do this, import the Adjust destination in your `AppDelegate`:
2828

29-
```objective-c
29+
```objc
3030
#import <Segment-Adjust/SEGAdjustIntegrationFactory.h>
3131
```
3232

3333
And add the following lines:
3434

35-
```objective-c
35+
```objc
3636
NSString *const SEGMENT_WRITE_KEY = @" ... ";
3737
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];
3838

@@ -211,4 +211,3 @@ By default, our destination enables event buffering for Adjust. This saves your
211211
### Deep Linking
212212

213213
The destination does not automatically support deep linking out of the box (you'd need to write code here regardless). This means you can use [Adjust's deep-linking](https://github.com/adjust/ios_sdk#7-set-up-deep-link-reattributions) by accessing [the Adjust SDK directly](/docs/sources/mobile/ios/#faq).
214-

connections/destinations/adobe-analytics/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ compile 'com.segment.analytics.android.integrations:adobe-analytics:1.0.0'
618618

619619

620620
iOS:
621-
```objective-c
621+
```objc
622622
pod 'Segment-Adobe-Analytics', '1.1.0-beta'
623623
```
624624

@@ -666,7 +666,7 @@ Config.setUserIdentifier("123");
666666

667667
And on iOS:
668668

669-
```objective-c
669+
```objc
670670
[ADBMobile setUserIdentifier:@"123"];
671671
```
672672
@@ -680,7 +680,7 @@ Analytics.trackState("Home Screen", <properties mapped in contextData>);
680680

681681
And on iOS:
682682

683-
```objective-c
683+
```objc
684684
[self.ADBMobile trackState:@"Home Screen" data:<properties mapped in contextData>];
685685
```
686686
@@ -694,7 +694,7 @@ Analytics.trackEvent("Clicked A Button", <properties mapped in contextData>);
694694

695695
And on iOS:
696696

697-
```objective-c
697+
```objc
698698
[ADBMobile trackAction:@"Clicked A Button" data:<properties mapped in contextData>];
699699
```
700700
@@ -706,7 +706,7 @@ Calling `reset` sets your user's `visitorId` to `null`. `null` is Adobe's defau
706706
Config.setUserIdentifier(null);
707707
```
708708

709-
```objective-c
709+
```objc
710710
[ADBMobile trackingClearCurrentBeacon];
711711
```
712712

@@ -720,7 +720,7 @@ Analytics.sendQueuedHits();
720720

721721
And on iOS:
722722

723-
```objective-c
723+
```objc
724724
[ADBMobile trackingSendQueuedHits];
725725
```
726726

@@ -792,7 +792,7 @@ Analytics.with(this).track("Video Playback Started",
792792

793793
The following example shows how to set an integration-specific option on iOS:
794794

795-
```objective-c
795+
```objc
796796
options:@{
797797
@"integrations": @{
798798
@"Adobe Analytics" : @{

connections/destinations/amplitude/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ example. To set an out of session event, pass in `true` for the key
684684

685685
iOS Example:
686686

687-
```objective-c
687+
```objc
688688
[[SEGAnalytics sharedAnalytics]
689689
track: @"Push Notification Viewed"
690690
properties: nil

connections/destinations/appsflyer/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ If you are sending in the attribution data yourself, for iOS be sure the followi
131131

132132
For example, an attribution event coming from an attribution partner would look like:
133133

134-
```objective-c
134+
```objc
135135
[[SEGAnalytics sharedAnalytics] track:@"Install Attributed", properties: @{
136136
@"provider" : @"Appsflyer/Tune/Kochava/Branch",
137137
@"campaign" : @{

connections/destinations/branch-metrics/index.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ There are a few pieces of code that must be in place. First, open your project
8282

8383
* Find the line which starts the method:
8484

85-
```objective-c
85+
```objc
8686
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:
8787
```
8888

8989
and paste the following piece of code within:
9090

91-
```objective-c
91+
```objc
9292
[[Branch getInstance] initSessionWithLaunchOptions:launchOptions andRegisterDeepLinkHandler:^(NSDictionary * _Nonnull params, NSError * _Nullable error) {
9393
// do stuff with deep link data (nav to page, display content, etc)
9494
NSLog(@"%@", params);
@@ -97,7 +97,7 @@ NSLog(@"%@", params);
9797
9898
* You will also need to add the following as a separate method:
9999
100-
```objective-c
100+
```objc
101101
(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
102102
// handler for URI Schemes (depreciated in iOS 9.2+, but still used by some apps)
103103
[[Branch getInstance] application:app openURL:url options:options];
@@ -111,7 +111,7 @@ return YES;
111111

112112
This method is necessary to receive a Branch parameter when the URI scheme is called and the app open immediately. It will automatically call the **Deep Link Handler** registered above:
113113

114-
```objective-c
114+
```objc
115115
(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:NSString *)sourceApplication annotation:(id)annotation {
116116
// pass the url to the handle deep link call
117117
[[Branch getInstance] handleDeepLink:url];
@@ -125,7 +125,7 @@ This method is necessary to receive a Branch parameter when the URI scheme is ca
125125

126126
Additionally, in iOS9, if you list content in Spotlight with Branch, you’ll want to receive those parameters in this App Delegate callback.
127127

128-
```objective-c
128+
```objc
129129
(BOOL)application:(UIApplication *)application
130130
continueUserActivity:(NSUserActivity *)userActivity
131131
restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler {
@@ -168,15 +168,15 @@ You can retrieve the deep link data at any time from the Branch singleton by cal
168168

169169
This is the latest set of deep link data from the most recent link that was clicked. If you minimize the app and reopen it, the session will be cleared and so will this data.
170170

171-
```objective-c
171+
```objc
172172
NSDictionary *params = [[Branch getInstance] getLatestReferringParams];
173173
```
174174

175175
##### Get first referring params
176176

177177
These are the first set of deep link data the ever referred the user. Once it’s been set for a given user, it can never be updated. This is useful for referral programs.
178178

179-
```objective-c
179+
```objc
180180
NSDictionary *params = [[Branch getInstance] getFirstReferringParams];
181181
```
182182

@@ -192,14 +192,14 @@ Deep linking is an incredibly important part of building your app, and essential
192192

193193
Below is how to create your own Branch Links. In order to share these links, we’ve built a *native share sheet for Android* and implemented a simple way to use *UIActivityViewController* on *iOS*. Check out the section on [content sharing](https://dev.branch.io/recipes/content_sharing/ios).
194194

195-
```objective-c
195+
```objc
196196
#import "BranchUniversalObject.h"
197197
#import "BranchLinkProperties.h"
198198
```
199199

200200
First create the object that you’d like to link to:
201201

202-
```objective-c
202+
```objc
203203
BranchUniversalObject *branchUniversalObject = [[BranchUniversalObject alloc] initWithCanonicalIdentifier:@"item/12345"];
204204
branchUniversalObject.title = @"My Content Title";
205205
branchUniversalObject.contentDescription = @"My Content Description";
@@ -222,7 +222,7 @@ withValue:@"http://example.com/ios"];
222222
223223
Lastly, create the link by referencing the universal object.
224224
225-
```objective-c
225+
```objc
226226
[branchUniversalObject getShortUrlWithLinkProperties:linkProperties andCallback:^(NSString *url, NSError *error) {
227227
if (!error) {
228228
NSLog(@"success getting url! %@", url);
@@ -242,22 +242,22 @@ The work in this section will take place in the view controller that you want to
242242

243243
In the view controller that will display on link click, first import `Branch.h`.
244244

245-
```objective-c
245+
```objc
246246
import "Branch.h"
247247
```
248248

249249
##### Register for the delegate
250250

251251
Make your view controller conform to the delegate `BranchDeepLinkingController`.
252252

253-
```objective-c
253+
```objc
254254
@interface ExampleDeepLinkingController : UIViewController <BranchDeepLinkingController>
255255
```
256256
257257
##### Configure your view on load
258258
Receive the delegate method that will be called when the view controller is loaded from a link click.
259259
260-
```objective-c
260+
```objc
261261
@synthesize deepLinkingCompletionDelegate;
262262
- (void)configureControlWithData:(NSDictionary *)data {
263263
NSString *pictureUrl = data[@"product_picture"];
@@ -277,7 +277,7 @@ Receive the delegate method that will be called when the view controller is load
277277

278278
Since the view controller is displayed modally, you should add a close button that let’s the user minimize to continue the remainder of your flow.
279279

280-
```objective-c
280+
```objc
281281
(IBAction)closePressed {
282282
[self.deepLinkingCompletionDelegate deepLinkingControllerCompleted];
283283
}
@@ -289,7 +289,7 @@ Lastly, you need to tell Branch which view controller you will use and which key
289289

290290
**Note**: If you don’t know what this key is, see [Creating Links](https://dev.branch.io/recipes/quickstart_guide/ios/#creating-links)
291291

292-
```objective-c
292+
```objc
293293
(BOOL)application:(UIApplication *)application
294294
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
295295

@@ -310,7 +310,7 @@ Lastly, you need to tell Branch which view controller you will use and which key
310310
#### Where to define your deep link keys
311311
You can define the deep link metadata in the `Branch Universal Object` that you’ll create before creating a deep link.
312312

313-
```objective-c
313+
```objc
314314
BranchUniversalObject *branchUniversalObject = [[BranchUniversalObject alloc] initWithCanonicalIdentifier:@"item/12345"];
315315
branchUniversalObject.title = @"My Content Title";
316316
branchUniversalObject.contentDescription = @"My Content Description";
@@ -327,7 +327,7 @@ This section will describe a routing example in an abstract way. In case you wan
327327
328328
Inside of the deepLinkHandler, you will want to examine the params dictionary to determine whether the user clicked on a link to content. Below is an example assuming that the links correspond to pictures.
329329
330-
```objective-c
330+
```objc
331331
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *****)launchOptions {
332332
333333
// initialize the session, setup a deep link handler
@@ -373,7 +373,7 @@ If you’re [creating links dynamically](https://dev.branch.io/overviews/link_cr
373373

374374
#### SDK/API link control
375375

376-
```objective-c
376+
```objc
377377
BranchLinkProperties *linkProperties = [[BranchLinkProperties alloc] init];
378378
linkProperties.feature = @"sharing";
379379
linkProperties.channel = @"facebook";

connections/destinations/comscore/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Please take note that iOS and Android expect different casing. We expect `snake_
164164

165165
Example on passing destination specific option values through on iOS
166166

167-
```objective-c
167+
```objc
168168
options:@{
169169
@"integrations": @{
170170
@"comScore" : @{

connections/destinations/customer.io/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Page events will be sent to Customer.io as a `Page View` event where name and pr
4444

4545
If you haven't had a chance to review our spec, please take a look to understand what the [Screen method](https://segment.com/docs/spec/screen/) does. An example call would look like:
4646

47-
```objective-c
47+
```objc
4848
[[SEGAnalytics sharedAnalytics] screen:@"Home"];
4949
```
5050

connections/destinations/doubleclick-floodlight/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Assuming the below is an example Floodlight tag mapping:
4040

4141
With the following `track` call:
4242

43-
```objective-c
43+
```objc
4444
[[SEGAnalytics sharedAnalytics] track:@"Free El"
4545
properties:@{ @"show": @"Stranger Things", @"source": @"Netflix", @"greatestShowEver": YES }];
4646
```

connections/destinations/flurry/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you haven't had a chance to review our spec, please take a look to understand
2727

2828
An example iOS call would look like:
2929

30-
```objective-c
30+
```objc
3131
[[SEGAnalytics sharedAnalytics] screen:@"Home"];
3232
```
3333

connections/destinations/intercom/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Segment supports Intercom's `reset` method only for Device Mode Mobile sources.
237237

238238
On iOS:
239239

240-
```objective-c
240+
```objc
241241
[Intercom reset];
242242
```
243243

@@ -423,7 +423,7 @@ analytics.onIntegrationReady("Intercom", new Callback() {
423423
});
424424
```
425425

426-
```objective-c
426+
```objc
427427
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(integrationDidStart:) name:SEGAnalyticsIntegrationDidStart object:nil];
428428

429429
- (void)integrationDidStart:(nonnull NSNotification *)notification

connections/destinations/kitemetrics/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _**NOTE:** The Kitemetrics Destination is currently in beta, which means that th
1010

1111
## Getting Started
1212

13-
<!-- {{>connection-modes}} -->
13+
<!-- {{>connection-modes}} -->
1414

1515

1616
1. From your Segment UI's Destinations page click on "Add Destination".
@@ -45,7 +45,7 @@ SEGAnalytics.setup(with: configuration)
4545
```
4646

4747
Objective-C
48-
```objectivec
48+
```objc
4949
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
5050
configuration.trackApplicationLifecycleEvents = YES;
5151
configuration.trackAttributionData = YES;
@@ -67,7 +67,7 @@ SEGAnalytics.shared().screen("Screen Title")
6767
```
6868

6969
Objective-C
70-
```objectivec
70+
```objc
7171
[[SEGAnalytics sharedAnalytics] screen:@"Screen Title"];
7272
```
7373
@@ -79,8 +79,8 @@ configuration.recordScreenViews = true
7979
```
8080

8181
Objective-C
82-
```objectivec
82+
```objc
8383
configuration.recordScreenViews = YES;
8484
```
8585

86-
Screen calls will be sent to Kitemetrics as a `custom event`. They are available for selection as a KPI in Settings -> KPI. Screen calls can be a maximum of 255 characters. Do not include personally identifiable information. Please omit parameters or attributes from the Screen Call.
86+
Screen calls will be sent to Kitemetrics as a `custom event`. They are available for selection as a KPI in Settings -> KPI. Screen calls can be a maximum of 255 characters. Do not include personally identifiable information. Please omit parameters or attributes from the Screen Call.

connections/destinations/leanplum/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ CocoaPods is the dependency manager we use for Objective-C projects. If you alre
5353

5454
Add the following lines into your AppDelegate:
5555

56-
```objective-c
56+
```objc
5757
String *const SEGMENT_WRITE_KEY = @" [YOUR_SEGMENT_WRITE_KEY] ";
5858
SEGAnalyticsConfiguration *config =
5959
[SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];

connections/destinations/nielsen-dcr/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Please take note that iOS and Android expect different casing. We expect `snake_
258258

259259
Example on passing destination specific option values through on iOS
260260

261-
```objective-c
261+
```objc
262262
options:@{
263263
@"integrations": @{
264264
@"nielsen-dcr" : @{

0 commit comments

Comments
 (0)