Skip to content

Commit 1c2c332

Browse files
authored
Merge pull request #1 from couchbase/cloud-update
Updates to fix lint errors
2 parents fca2ce3 + aeb2121 commit 1c2c332

File tree

15 files changed

+146
-126
lines changed

15 files changed

+146
-126
lines changed

gulp.d/tasks/build-preview-pages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ function registerHelpers (src) {
9292

9393
function compileLayouts (src, layouts) {
9494
return vfs.src('layouts/*.hbs', { base: src, cwd: src }).pipe(
95-
map((file, enc, next) => {
96-
layouts[file.stem] = handlebars.compile(file.contents.toString(), { preventIndent: true })
95+
map(({ stem, contents, basename }, enc, next) => {
96+
layouts[stem] = handlebars.compile(contents.toString(), { srcName: basename, preventIndent: true })
9797
next()
9898
})
9999
)

gulp.d/tasks/release.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,17 @@ function collectReleases ({ octokit, owner, repo, filter, page = 1, accum = [] }
3535

3636
function versionBundle (bundleFile, tagName) {
3737
return new Promise((resolve, reject) =>
38-
zip.src(bundleFile)
38+
zip
39+
.src(bundleFile)
3940
.on('error', reject)
40-
.pipe((() => {
41-
const meta = new File({ path: 'ui.yml', contents: Buffer.from(`version: ${tagName}\n`) })
42-
const stream = map((file, _, next) => file.path === meta.path && file !== meta ? next() : next(null, file))
43-
stream.write(meta)
44-
return stream
45-
})())
41+
.pipe(
42+
(() => {
43+
const meta = new File({ path: 'ui.yml', contents: Buffer.from(`version: ${tagName}\n`) })
44+
const stream = map((file, _, next) => (file.path === meta.path && file !== meta ? next() : next(null, file)))
45+
stream.write(meta)
46+
return stream
47+
})()
48+
)
4649
.pipe(zip.dest(bundleFile))
4750
.on('finish', () => resolve(bundleFile))
4851
)
@@ -65,9 +68,7 @@ module.exports = (dest, bundleName, owner, repo, token, updateBranch) => async (
6568
const readmeBlob = await octokit.gitdata
6669
.createBlob({ owner, repo, content: readmeContent, encoding: 'utf-8' })
6770
.then((result) => result.data.sha)
68-
let tree = await octokit.gitdata
69-
.getCommit({ owner, repo, commit_sha: commit })
70-
.then((result) => result.data.tree.sha)
71+
let tree = await octokit.gitdata.getCommit({ owner, repo, commit_sha: commit }).then((result) => result.data.tree.sha)
7172
tree = await octokit.gitdata
7273
.createTree({
7374
owner,

src/css/common.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
top: 0;
44
right: 0;
55
left: 0;
6-
z-index: 1030;
6+
z-index: var(--z-index-nav-mobile);
77
}
88

99
.btn {

src/css/doc.css

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,8 @@
6161
.doc h5 > a.anchor,
6262
.doc h6 > a.anchor {
6363
color: var(--color-brand-red);
64-
background-image: -webkit-linear-gradient(
65-
-45deg,
66-
var(--color-brand-purple),
67-
var(--color-brand-red) 75%
68-
);
69-
-webkit-background-clip: text;
64+
background-image: linear-gradient(-45deg, var(--color-brand-purple), var(--color-brand-red) 75%);
65+
background-clip: text;
7066
-webkit-text-fill-color: transparent;
7167
font-weight: var(--weight-normal);
7268
position: absolute;
@@ -774,15 +770,15 @@
774770

775771
@media screen and (min-width: 840px) {
776772
.active-tab-item-row,
777-
.tabset .dropddown-btn{
773+
.tabset .dropddown-btn {
778774
display: none;
779775
}
780-
.doc .tabs ul.hide{
776+
777+
.doc .tabs ul.hide {
781778
display: none;
782779
}
783780
}
784781

785-
786782
@media screen and (max-width: 840px) {
787783
.tabset {
788784
position: relative;
@@ -795,7 +791,7 @@
795791

796792
.active-tab-item-row {
797793
display: inline-block;
798-
max-width:60%;
794+
max-width: 60%;
799795
}
800796

801797
.active-tab-item-row a {
@@ -814,7 +810,6 @@
814810
text-decoration: none;
815811
}
816812

817-
.active-tab-item-row a::after,
818813
.active-tab-item-row a::after {
819814
background-color: var(--color-brand-white);
820815
content: "";
@@ -826,33 +821,33 @@
826821
left: 0;
827822
right: 0;
828823
}
829-
824+
830825
.ulist.tabs {
831826
margin: 0;
832827
position: relative;
833828
}
834829

835-
.doc .tabs .dropddown-btn{
830+
.doc .tabs .dropddown-btn {
836831
width: 100%;
837832
height: 100%;
838833
display: flex;
839834
align-items: center;
840-
color: #333;
835+
color: #333;
841836
}
842837

843-
.doc .tabs .dropddown-btn .fas{
838+
.doc .tabs .dropddown-btn .fas {
844839
font-size: 18px;
845840
margin-left: 10px;
846841
}
847842

848843
.doc .tabs .dropddown-btn:focus,
849-
.doc .tabs .dropddown-btn:hover{
844+
.doc .tabs .dropddown-btn:hover {
850845
outline: none;
851846
text-decoration: none;
852847
}
853848

854849
.doc .tabs ul {
855-
box-shadow: 0px 3px 10px -3px #ccc;
850+
box-shadow: 0 3px 10px -3px #ccc;
856851
margin: 0;
857852
position: absolute;
858853
left: 0;
@@ -866,31 +861,31 @@
866861
.doc .tabs ul p {
867862
color: var(--color-brand-gray1);
868863
}
869-
864+
870865
.doc .tabset:not(.is-loading) .tabs li:not(.is-active) {
871-
background: var( --color-brand-white);
866+
background: var(--color-brand-white);
872867
min-height: 2.5rem;
873868
height: auto;
874-
padding: .75rem;
869+
padding: 0.75rem;
875870
}
876-
871+
877872
.doc .tabs li.is-active {
878873
display: none;
879874
}
880-
875+
881876
.doc .tabs li {
882877
width: 100%;
883878
flex-wrap: wrap;
884879
margin-right: 0;
885880
border-top: 0;
886881
border-bottom: 1px solid var(--color-border);
887882
}
888-
889-
.doc .tabset > .content{
883+
884+
.doc .tabset > .content {
890885
width: 100%;
891886
}
892-
893-
.doc .tabs ul.show{
887+
888+
.doc .tabs ul.show {
894889
display: block;
895890
}
896891
}

src/css/header.css

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,9 @@
99

1010
.navbar {
1111
position: relative;
12-
display: -webkit-box;
13-
display: -ms-flexbox;
1412
display: flex;
15-
-ms-flex-wrap: wrap;
1613
flex-wrap: wrap;
17-
-webkit-box-align: center;
18-
-ms-flex-align: center;
1914
align-items: center;
20-
-webkit-box-pack: justify;
21-
-ms-flex-pack: justify;
2215
justify-content: space-between;
2316
padding: 0.75rem var(--width-container-gutter);
2417
}
@@ -183,6 +176,7 @@
183176
color: var(--color-brand-red);
184177
}
185178
}
179+
186180
@media screen and (min-width: 768px) {
187181
.search .query {
188182
width: 235px;

src/css/is-this-helpful.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@
130130
z-index: 1001;
131131
}
132132

133-
134-
135133
.modal-popup .modal-popup-dialogue {
136134
padding: 10px 15px;
137135
/* height: auto; */
@@ -144,14 +142,13 @@
144142
box-shadow: 0 0 10px #333;
145143
transform: translate(0%, -100%);
146144
transition: all 0.3s;
147-
148145
}
149146

150-
.modal-popup.show{
147+
.modal-popup.show {
151148
display: block;
152149
}
153150

154-
.modal-popup.show .modal-popup-dialogue{
151+
.modal-popup.show .modal-popup-dialogue {
155152
transform: translate(0%, 200px);
156153
}
157154

@@ -162,4 +159,4 @@
162159

163160
.modal-popup .popup-content {
164161
padding: 0 15px;
165-
}
162+
}

src/css/landing-page.css

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
margin-bottom: 30px;
2020
}
2121

22-
2322
.doc.landing-page-doc .sub-heading {
2423
margin-bottom: 30px;
2524
width: 100%;
@@ -30,22 +29,23 @@
3029
/* flex-basis: 48%; */
3130
margin-bottom: 35px;
3231
}
33-
.card-row.three-column-row .column{
32+
33+
.card-row.three-column-row .column {
3434
flex-basis: 25%;
3535
}
3636

37-
.card-row .column+.column {
37+
.card-row .column + .column {
3838
padding-left: 5%;
3939
}
4040

41-
.card-row.border-column-row .column + .column{
41+
.card-row.border-column-row .column + .column {
4242
border-left: 1px solid var(--color-brand-gray5);
4343
}
4444

4545
.doc.landing-page-doc h3 {
4646
font-size: 1.5rem;
4747
line-height: 130%;
48-
color: var( --color-brand-gray4);
48+
color: var(--color-brand-gray4);
4949
margin: 0;
5050
}
5151

@@ -74,7 +74,7 @@
7474

7575
.doc.landing-page-doc ul li a {
7676
text-decoration: none;
77-
color: var( --color-brand-blue);
77+
color: var(--color-brand-blue);
7878
}
7979

8080
.doc.landing-page-doc .media-box {
@@ -91,12 +91,14 @@
9191
.doc.landing-page-doc h4 {
9292
font-size: 1.125rem;
9393
margin: 0;
94-
color: var( --color-brand-gray4);
94+
color: var(--color-brand-gray4);
9595
}
96-
.doc.landing-page-doc h2{
96+
97+
.doc.landing-page-doc h2 {
9798
margin: 0;
9899
}
99-
.doc.landing-page-doc h2:after{
100+
101+
.doc.landing-page-doc h2::after {
100102
content: none;
101103
}
102104

@@ -108,23 +110,24 @@
108110
flex-basis: 100%;
109111
max-width: 100%;
110112
}
111-
/* .card-row .column{
112-
margin-bottom: 15px;
113-
} */
113+
114114
.card-row {
115115
margin-bottom: 15px;
116116
}
117+
117118
.doc.landing-page-doc .media-left {
118-
margin-left: 0px;
119+
margin-left: 0;
119120
}
121+
120122
.doc.landing-page-doc figure {
121123
text-align: center;
122124
}
123-
.card-row .column+.column {
125+
126+
.card-row .column + .column {
124127
padding-left: 0;
125128
}
126-
.card-row.border-column-row .column + .column{
129+
130+
.card-row.border-column-row .column + .column {
127131
border-left: 0;
128132
}
129-
130-
}
133+
}

0 commit comments

Comments
 (0)