Skip to content

Commit 8b3f0f2

Browse files
committed
Merge branch 'master' into littledata-docs-update
2 parents abdcad4 + 5ba7df8 commit 8b3f0f2

File tree

1,206 files changed

+14450
-8230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,206 files changed

+14450
-8230
lines changed

.buildkite/pipeline.yml

100644100755
Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
steps:
2+
- label: ":hammer: Install Dependencies"
3+
command:
4+
- make deps
5+
env:
6+
SEGMENT_CONTEXTS: "snyk, aws-credentials"
7+
plugins:
8+
- docker#v3.3.0:
9+
image: jekyll/jekyll:4.2.0
10+
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v3.0.0:
11+
key: "v2-cache-gem-{{ checksum 'Gemfile.lock' }}"
12+
paths: [ "vendor/" ]
13+
save: true
14+
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v3.0.0:
15+
key: "v2-cache-npm-{{ checksum 'yarn.lock' }}"
16+
paths: [ "node_modules/" ]
17+
save: true
18+
19+
- wait: ~
20+
221
- label: ":hammer: Build Dependencies and Docs"
322
command:
423
- make test
@@ -10,18 +29,17 @@ steps:
1029
- build_package.tar.gz
1130
plugins:
1231
- docker#v3.3.0:
13-
image: jekyll/jekyll
32+
image: jekyll/jekyll:4.2.0
1433
environment:
1534
- BUILDKITE_BRANCH
16-
17-
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
18-
key: "v1-cache-gem-{{ checksum 'Gemfile.lock' }}"
35+
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v3.0.0:
36+
key: "v2-cache-gem-{{ checksum 'Gemfile.lock' }}"
1937
paths: [ "vendor/" ]
20-
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
21-
key: "v1-cache-npm-{{ checksum 'yarn.lock' }}"
38+
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v3.0.0:
39+
key: "v2-cache-npm-{{ checksum 'yarn.lock' }}"
2240
paths: [ "node_modules/" ]
23-
24-
- wait
41+
42+
- wait: ~
2543

2644
- label: ":shipit: Deploy Docs to S3"
2745
env:
@@ -30,4 +48,4 @@ steps:
3048
command:
3149
- buildkite-agent artifact download build_package.tar.gz .
3250
- make unzip-artifacts
33-
- make upload-docs
51+
- make upload-docs

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ node_modules/
1111
src/assets/docs.bundle.js
1212
yarn-error.log
1313
# Make sure to update `analytics` to the full path to your Typewriter client.
14+
.vscode/spellright.dict

CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# The default owners for everything in
22
# the repo. Unless a later match takes precedence.
3-
CODEOWNERS @sanscontext @markzegarelli @nielst @XavierAgostini @danielstjules @stephment
3+
CODEOWNERS @segmentio/segment-doc-team
44

55
# Diagram library
66
/diagram-library @sanscontext
77

88
# Utility scripts
9-
/scripts @sanscontext @bryanmikaelian @XavierAgostini
9+
/scripts @segmentio/segment-doc-team @XavierAgostini
1010

1111
# Vale Linting
1212
/vale-styles @segmentio/segment-doc-team
@@ -21,10 +21,10 @@ CODEOWNERS @sanscontext @markzegarelli @nielst @XavierAgostini @danielstjules @
2121

2222

2323
# Libraries owners
24-
/src/connections/catalog/libraries @osamakhn @bsneed @lubird @pooyaj @juliofarah
24+
/src/connections/catalog/libraries @osamakhn @bsneed @pooyaj @juliofarah
2525

2626
# Destination owners
27-
/src/connections/destinations @n2parko @danielstjules @benhorowitz
27+
/src/connections/destinations @segmentio/segment-doc-team
2828

2929

3030
# Privacy owners

Gemfile.lock

100644100755
Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,56 @@
11
GIT
22
remote: https://github.com/jekyll/jekyll.git
3-
revision: 1d7d11be61196b45b4645fd8cd73776e8fe8d184
3+
revision: 11ff8aa0dd610fa26689dc8d2d42decd3bba79ee
44
specs:
5-
jekyll (4.0.0)
5+
jekyll (4.1.1)
66
addressable (~> 2.4)
77
colorator (~> 1.0)
88
em-websocket (~> 0.5)
9-
i18n (>= 0.9.5, < 2)
9+
i18n (~> 1.0)
1010
jekyll-sass-converter (~> 2.0)
1111
jekyll-watch (~> 2.0)
12-
kramdown (~> 2.1)
12+
kramdown (~> 2.3)
1313
kramdown-parser-gfm (~> 1.0)
1414
liquid (~> 4.0)
15-
mercenary (~> 0.3.3)
15+
mercenary (~> 0.4.0)
1616
pathutil (~> 0.9)
1717
rouge (~> 3.0)
1818
safe_yaml (~> 1.0)
19-
terminal-table (~> 1.8)
19+
terminal-table (~> 2.0)
2020

2121
GEM
2222
remote: https://rubygems.org/
2323
specs:
2424
addressable (2.7.0)
2525
public_suffix (>= 2.0.2, < 5.0)
2626
colorator (1.1.0)
27-
commonmarker (0.20.1)
27+
commonmarker (0.21.0)
2828
ruby-enum (~> 0.5)
29-
concurrent-ruby (1.1.5)
30-
dotenv (2.7.5)
31-
em-websocket (0.5.1)
29+
concurrent-ruby (1.1.7)
30+
dotenv (2.7.6)
31+
em-websocket (0.5.2)
3232
eventmachine (>= 0.12.9)
3333
http_parser.rb (~> 0.6.0)
3434
eventmachine (1.2.7)
35-
faraday (0.17.1)
35+
faraday (1.1.0)
3636
multipart-post (>= 1.2, < 3)
37-
ffi (1.11.3)
37+
ruby2_keywords
38+
ffi (1.13.1)
3839
forwardable-extended (2.6.0)
3940
http_parser.rb (0.6.0)
40-
i18n (1.7.0)
41+
i18n (1.8.5)
4142
concurrent-ruby (~> 1.0)
4243
jekyll-commonmark (1.3.1)
4344
commonmarker (~> 0.14)
4445
jekyll (>= 3.7, < 5.0)
45-
jekyll-include-cache (0.2.0)
46+
jekyll-include-cache (0.2.1)
4647
jekyll (>= 3.7, < 5.0)
47-
jekyll-last-modified-at (1.2.1)
48+
jekyll-last-modified-at (1.3.0)
4849
jekyll (>= 3.7, < 5.0)
4950
posix-spawn (~> 0.3.9)
50-
jekyll-redirect-from (0.15.0)
51+
jekyll-redirect-from (0.16.0)
5152
jekyll (>= 3.3, < 5.0)
52-
jekyll-sass-converter (2.0.1)
53+
jekyll-sass-converter (2.1.0)
5354
sassc (> 2.0.1, < 3.0)
5455
jekyll-sitemap (1.4.0)
5556
jekyll (>= 3.7, < 5.0)
@@ -62,39 +63,41 @@ GEM
6263
liquid (4.0.3)
6364
liquid-c (4.0.0)
6465
liquid (>= 3.0.0)
65-
listen (3.2.0)
66+
listen (3.3.0)
6667
rb-fsevent (~> 0.10, >= 0.10.3)
6768
rb-inotify (~> 0.9, >= 0.9.10)
68-
mercenary (0.3.6)
69+
mercenary (0.4.0)
6970
multipart-post (2.1.1)
7071
pathutil (0.16.2)
7172
forwardable-extended (~> 2.6)
72-
posix-spawn (0.3.13)
73-
premonition (2.0.0)
74-
public_suffix (4.0.1)
73+
posix-spawn (0.3.15)
74+
premonition (2.0.1)
75+
public_suffix (4.0.6)
7576
rake (13.0.1)
76-
rb-fsevent (0.10.3)
77-
rb-inotify (0.10.0)
77+
rb-fsevent (0.10.4)
78+
rb-inotify (0.10.1)
7879
ffi (~> 1.0)
7980
rexml (3.2.4)
80-
rouge (3.13.0)
81-
ruby-enum (0.7.2)
81+
rouge (3.25.0)
82+
ruby-enum (0.8.0)
8283
i18n
84+
ruby2_keywords (0.0.2)
8385
safe_yaml (1.0.5)
84-
sassc (2.2.1)
86+
sassc (2.4.0)
8587
ffi (~> 1.9)
86-
terminal-table (1.8.0)
88+
terminal-table (2.0.0)
8789
unicode-display_width (~> 1.1, >= 1.1.1)
8890
thread_safe (0.3.6)
89-
tzinfo (1.2.5)
91+
tzinfo (1.2.8)
9092
thread_safe (~> 0.1)
91-
tzinfo-data (1.2019.3)
93+
tzinfo-data (1.2020.4)
9294
tzinfo (>= 1.0.0)
93-
unicode-display_width (1.6.0)
95+
unicode-display_width (1.7.0)
9496
wdm (0.1.1)
9597

9698
PLATFORMS
9799
ruby
100+
x86_64-linux-musl
98101

99102
DEPENDENCIES
100103
dotenv
@@ -113,4 +116,4 @@ DEPENDENCIES
113116
wdm (~> 0.1.0)
114117

115118
BUNDLED WITH
116-
2.0.2
119+
2.2.2

Makefile

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ node_modules: package.json yarn.lock
101101
vendor/bundle:
102102
@export BUNDLE_PATH="vendor/bundle"
103103
@mkdir -p vendor && mkdir -p vendor/bundle
104-
@chmod -R 777 vendor/
105-
@bundle install --path=vendor/bundle
104+
@chmod -R 777 vendor/ Gemfile.lock
105+
@bundle config set --local path 'vendor/bundle'
106+
@bundle install
106107

107108

108109
.PHONY: lint

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ defaults:
3838
landing: true
3939
layout: integration
4040

41+
collections:
42+
release_notes:
43+
output: false
44+
4145
plugins_dir: ./_plugins
4246
plugins:
4347
- jekyll-sitemap

_plugins/jekyll-faq.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def render(context)
1414
<div class="accordion__heading" data-ref="accordion[trigger]">
1515
<%= key.split("|")[0] %>
1616
<div class="accordion__icon">
17-
<svg width="10" height="6" xmlns="http://www.w3.org/2000/svg">
18-
<path d="M1.36.27l-.72.7L5 5.39 9.36.97l-.72-.7L5 3.97z" fill-rule="nonzero"/>
17+
<svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg">
18+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.87 4.17s.01 0 0 0l-3.5-4A.498.498 0 004 0c-.15 0-.28.07-.37.17l-3.5 4A.495.495 0 00.5 5h7a.495.495 0 00.37-.83z" fill="#8F95B2"/>
1919
</svg>
2020
</div>
2121
</div>

js/feedback/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function() {
1414
const helpfulTemplate = [...templates].filter(
1515
(template) => template.dataset.feedbackTemplate === 'helpful'
1616
)
17-
const unhelpfulTemplatte = [...templates].filter(
17+
const unhelpfulTemplate = [...templates].filter(
1818
(template) => template.dataset.feedbackTemplate === 'unhelpful'
1919
)
2020
const alternateTemplate = [...templates].filter(
@@ -96,8 +96,11 @@ export default function() {
9696

9797
const addActiveClasses = (elements) => {
9898
for (let i = 0; i < elements.length; i++) {
99-
const activeClass = elements[i].getAttribute(ACTIVE_CLASS)
100-
elements[i].classList.add(activeClass)
99+
const activeClasses = elements[i].getAttribute(ACTIVE_CLASS).split(' ')
100+
101+
for (let c = 0; c < activeClasses.length; c++) {
102+
elements[i].classList.add(activeClasses[c])
103+
}
101104
}
102105
}
103106

js/glightbox/index.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import GLightbox from 'glightbox'
2+
3+
const COMPONENT_SELECTOR = '[data-glightbox]'
4+
5+
const closeIcon = `<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
6+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.41 5L9.7 1.71c.19-.18.3-.43.3-.71A1.003 1.003 0 008.29.29L5 3.59 1.71.29A1.003 1.003 0 00.29 1.71L3.59 5 .3 8.29c-.19.18-.3.43-.3.71a1.003 1.003 0 001.71.71L5 6.41 8.29 9.7c.18.19.43.3.71.3a1.003 1.003 0 00.71-1.71L6.41 5z" fill="#fff"/>
7+
</svg>`
8+
9+
const nextIcon = `<svg width="15" height="13" viewBox="0 0 15 13" fill="none" xmlns="http://www.w3.org/2000/svg">
10+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.7 6.29l-5-5a.965.965 0 00-.71-.3 1.003 1.003 0 00-.71 1.71l3.29 3.29H1.99c-.55 0-1 .45-1 1s.45 1 1 1h9.59l-3.29 3.29a1.003 1.003 0 001.42 1.42l5-5c.18-.18.29-.43.29-.71 0-.28-.12-.52-.3-.7z" fill="#fff"/>
11+
</svg>
12+
`
13+
14+
const prevIcon = `<svg width="15" height="13" viewBox="0 0 15 13" fill="none" xmlns="http://www.w3.org/2000/svg">
15+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.99 5.99H4.41L7.7 2.7a1.003 1.003 0 00-1.42-1.42l-5 5a1.014 1.014 0 000 1.42l5 5a1.003 1.003 0 001.42-1.42L4.41 7.99H14c.55 0 1-.45 1-1s-.46-1-1.01-1z" fill="#fff"/>
16+
</svg>`
17+
18+
export default function () {
19+
const components = document.querySelectorAll(COMPONENT_SELECTOR)
20+
21+
for (let c = 0; c < components.length; c++) {
22+
const images = components[c].querySelectorAll('img')
23+
24+
const gallery = GLightbox({
25+
elements: [...images].map((image) => {
26+
return {
27+
'href': image.getAttribute('src'),
28+
'type': 'image',
29+
'description': image.getAttribute('alt'),
30+
}
31+
}),
32+
openEffect: 'fade',
33+
closeEffect: 'fade',
34+
svg: {
35+
close: closeIcon,
36+
next: nextIcon,
37+
prev: prevIcon
38+
}
39+
})
40+
41+
for (let i = 0; i < images.length; i++) {
42+
images[i].addEventListener('click', (event) => {
43+
event.preventDefault()
44+
45+
gallery.openAt(i)
46+
})
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)