Skip to content

Commit 7af2741

Browse files
committed
[netlify-ignore] Merge branch 'master' into jenskene-patch-1
2 parents db00e26 + 4eaaf90 commit 7af2741

File tree

837 files changed

+5193
-3056
lines changed

Some content is hidden

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

837 files changed

+5193
-3056
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

Gemfile.lock

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT
22
remote: https://github.com/jekyll/jekyll.git
3-
revision: e739c777fc8fb63b9890c0738983af6f1d525966
3+
revision: 11ff8aa0dd610fa26689dc8d2d42decd3bba79ee
44
specs:
55
jekyll (4.1.1)
66
addressable (~> 2.4)
@@ -16,7 +16,7 @@ GIT
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/
@@ -32,8 +32,9 @@ GEM
3232
eventmachine (>= 0.12.9)
3333
http_parser.rb (~> 0.6.0)
3434
eventmachine (1.2.7)
35-
faraday (1.0.1)
35+
faraday (1.1.0)
3636
multipart-post (>= 1.2, < 3)
37+
ruby2_keywords
3738
ffi (1.13.1)
3839
forwardable-extended (2.6.0)
3940
http_parser.rb (0.6.0)
@@ -42,7 +43,7 @@ GEM
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)
4748
jekyll-last-modified-at (1.3.0)
4849
jekyll (>= 3.7, < 5.0)
@@ -62,7 +63,7 @@ GEM
6263
liquid (4.0.3)
6364
liquid-c (4.0.0)
6465
liquid (>= 3.0.0)
65-
listen (3.2.1)
66+
listen (3.3.0)
6667
rb-fsevent (~> 0.10, >= 0.10.3)
6768
rb-inotify (~> 0.9, >= 0.9.10)
6869
mercenary (0.4.0)
@@ -77,24 +78,26 @@ GEM
7778
rb-inotify (0.10.1)
7879
ffi (~> 1.0)
7980
rexml (3.2.4)
80-
rouge (3.23.0)
81+
rouge (3.25.0)
8182
ruby-enum (0.8.0)
8283
i18n
84+
ruby2_keywords (0.0.2)
8385
safe_yaml (1.0.5)
8486
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.7)
91+
tzinfo (1.2.8)
9092
thread_safe (~> 0.1)
91-
tzinfo-data (1.2020.2)
93+
tzinfo-data (1.2020.4)
9294
tzinfo (>= 1.0.0)
9395
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+
}

js/headings-anchors/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function () {
1111
const headings = components[i].querySelectorAll(HEADINGS_SELECTOR)
1212

1313
for (let i = 0; i < headings.length; i++) {
14-
if (!headings[i].classList.contains('media-thumbnail__heading') && !headings[i].classList.contains('media-icon__heading')) {
14+
if (!headings[i].classList.contains('reference-button__heading')) {
1515
const tooltip = tippy(headings[i], {
1616
content: 'Copied!',
1717
theme: 'dark',

js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import relativeLinks from './relative-links'
1717
import sideMenu from './side-menu'
1818
import tracking from './tracking'
1919
import searchBar from './search-bar'
20+
import glightbox from './glightbox'
2021
feedback()
2122
accordion()
2223
accordionGroup()
@@ -36,3 +37,4 @@ relativeLinks()
3637
sideMenu()
3738
tracking()
3839
searchBar()
40+
glightbox()

0 commit comments

Comments
 (0)