Skip to content

Commit fdcc62b

Browse files
ndom91balazsorban44
authored andcommitted
WIP: Update Docusaurus + Site dependencies (#802)
* update: deps * fix: broken link * fix: search upgrade change
1 parent 4764d60 commit fdcc62b

File tree

8 files changed

+4548
-2693
lines changed

8 files changed

+4548
-2693
lines changed

www/docs/configuration/providers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ NextAuth.js is designed to work with any OAuth service, it supports OAuth 1.0, 1
1515
* [Atlassian](/providers/atlassian)
1616
* [Auth0](/providers/auth0)
1717
* [Basecamp](/providers/basecamp)
18-
* [Battle.net](/providers/battlenet)
18+
* [Battle.net](/providers/battle.net)
1919
* [Box](/providers/box)
2020
* [Amazon Cognito](/providers/cognito)
2121
* [Discord](/providers/discord)

www/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
alt: 'NextAuth Logo',
1818
src: 'img/logo/logo-xs.png'
1919
},
20-
links: [
20+
items: [
2121
{
2222
to: '/getting-started/introduction',
2323
activeBasePath: 'docs',

www/package-lock.json

Lines changed: 4437 additions & 2595 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"lint:fix": "standard --fix"
1111
},
1212
"dependencies": {
13-
"@docusaurus/core": "^2.0.0-alpha.54",
14-
"@docusaurus/preset-classic": "^2.0.0-alpha.54",
13+
"@docusaurus/core": "^2.0.0-alpha.66",
14+
"@docusaurus/preset-classic": "^2.0.0-alpha.66",
1515
"classnames": "^2.2.6",
16-
"docusaurus-lunr-search": "^1.0.3",
17-
"jose": "^1.27.2",
16+
"docusaurus-lunr-search": "^2.1.7",
17+
"jose": "^2.0.2",
1818
"lodash.times": "^4.3.2",
19-
"react": "^16.8.4",
20-
"react-dom": "^16.8.4",
21-
"react-marquee-slider": "^1.0.16",
22-
"styled-components": "^5.1.1"
19+
"react": "^17.0.1",
20+
"react-dom": "^17.0.1",
21+
"react-marquee-slider": "^1.1.2",
22+
"styled-components": "^5.2.0"
2323
},
2424
"browserslist": {
2525
"production": [
@@ -34,6 +34,6 @@
3434
]
3535
},
3636
"devDependencies": {
37-
"standard": "^14.3.4"
37+
"standard": "^15.0.0"
3838
}
3939
}

www/src/css/index.css

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/* You can override the default Infima variables here. */
1111
:root {
12-
--ifm-color-link: #289EF9;
12+
--ifm-color-link: #289ef9;
1313
--ifm-color-primary: #1eb1fc;
1414
--ifm-color-primary-dark: #03a7fa;
1515
--ifm-color-primary-darker: #039eed;
@@ -21,22 +21,24 @@
2121
--ifm-color-info: #1eb1fc;
2222
--ifm-color-success: #1eb1fc;
2323
--ifm-color-warning: #c94b4b;
24-
--ifm-font-family-base: -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
24+
--ifm-font-family-base: -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
25+
Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
26+
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
2527
--ifm-background-color: #fff;
2628
--ifm-footer-background-color: #f9f9f9;
2729
--ifm-hero-background-color: #f5f5f5;
28-
--ifm-navbar-background-color: rgba(255,255,255,0.95);
30+
--ifm-navbar-background-color: rgba(255, 255, 255, 0.95);
2931
--ifm-h1-font-size: 3rem;
3032
--ifm-h1-font-size: 2rem;
3133
}
3234

33-
html[data-theme='dark']:root {
34-
--ifm-color-link: #289EF9;
35+
html[data-theme="dark"]:root {
36+
--ifm-color-link: #289ef9;
3537
--ifm-footer-background-color: #111;
3638
--ifm-html-background-color: #242526;
3739
--ifm-background-color: #000000;
3840
--ifm-hero-background-color: #111111;
39-
--ifm-navbar-background-color: rgba(0,0,0,0.95);
41+
--ifm-navbar-background-color: rgba(0, 0, 0, 0.95);
4042
}
4143

4244
@import "hero.css";
@@ -63,7 +65,6 @@ a {
6365
a,
6466
a:hover,
6567
.navbar .navbar__link:hover {
66-
text-decoration: underline;
6768
color: var(--ifm-color-link);
6869
}
6970

@@ -109,12 +110,12 @@ a:hover,
109110

110111
.navbar__title {
111112
font-size: 1.2rem;
112-
margin-left: .2rem;
113+
margin-left: 0.2rem;
113114
display: none;
114115
}
115116

116-
.navbar-sidebar__brand .navbar__title {
117-
display: inline;
117+
.navbar-sidebar__brand .navbar__title {
118+
display: inline;
118119
}
119120

120121
@media screen and (min-width: 420px) {
@@ -137,14 +138,14 @@ a:hover,
137138
padding: 0;
138139
height: 100%;
139140
font-size: 0.9rem;
140-
background: #1E1E1E;
141+
background: #1e1e1e;
141142
overflow: hidden;
142-
border-radius: .5rem;
143+
border-radius: 0.5rem;
143144
}
144145

145146
.home-main .code .code-heading {
146-
color: rgba(255,255,255,1);
147-
background: #191A1B;
147+
color: rgba(255, 255, 255, 1);
148+
background: #191a1b;
148149
margin: 0;
149150
padding: 0.5rem 1rem;
150151
font-size: 1rem;
@@ -171,7 +172,7 @@ hr {
171172
border-color: #ddd;
172173
}
173174

174-
html[data-theme='dark'] hr {
175+
html[data-theme="dark"] hr {
175176
border-color: #242526;
176177
}
177178

@@ -190,20 +191,20 @@ html[data-theme='dark'] hr {
190191
background-repeat: no-repeat;
191192
}
192193

193-
html[data-theme='dark'] .navbar__item.navbar__link[href*="github"]:before {
194+
html[data-theme="dark"] .navbar__item.navbar__link[href*="github"]:before {
194195
background-image: url("/img/brand-github-inverted.svg");
195196
}
196197

197198
.navbar__item.navbar__link[href*="npmjs"]:before {
198199
content: "";
199200
width: 3rem;
200201
height: 1.2rem;
201-
margin-top: .2rem;
202+
margin-top: 0.2rem;
202203
background-image: url("/img/brand-npm.svg");
203204
background-repeat: no-repeat;
204205
}
205206

206-
html[data-theme='dark'] .navbar__item.navbar__link[href*="npm"]:before {
207+
html[data-theme="dark"] .navbar__item.navbar__link[href*="npm"]:before {
207208
background-image: url("/img/brand-npm-inverted.svg");
208209
}
209210

@@ -214,8 +215,8 @@ html[data-theme='dark'] .navbar__item.navbar__link[href*="npm"]:before {
214215
}
215216
}
216217

217-
html[data-theme='dark'] {
218-
--ifm-background-color: #1F201C;
218+
html[data-theme="dark"] {
219+
--ifm-background-color: #1f201c;
219220
}
220221

221222
.home-main .feature-image-wrapper {
@@ -225,22 +226,21 @@ html[data-theme='dark'] {
225226
border-radius: 10rem;
226227
overflow: visible;
227228
background-color: var(--ifm-color-primary);
228-
box-shadow: 0 0 2rem rgba(0,0,0,.1);
229-
background-image: linear-gradient(0deg, #1786FB 0%, #45EABA 100%);
229+
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
230+
background-image: linear-gradient(0deg, #1786fb 0%, #45eaba 100%);
230231
}
231232

232233
.home-main .section-features .row .col:nth-child(2) .feature-image-wrapper {
233-
background-image: linear-gradient(0deg, #605BD4 0%, #E95595 100%);
234+
background-image: linear-gradient(0deg, #605bd4 0%, #e95595 100%);
234235
}
235236

236-
237237
.home-main .section-features .row .col:nth-child(3) .feature-image-wrapper {
238-
background-image: linear-gradient(0deg, #FD5D21 0%, #FBB12E 100%);
238+
background-image: linear-gradient(0deg, #fd5d21 0%, #fbb12e 100%);
239239
}
240240

241241
.home-main .feature-image-wrapper img {
242242
filter: saturate(1.2) contrast(2);
243-
zoom: .80;
243+
zoom: 0.8;
244244
}
245245

246246
@media screen and (max-width: 996px) {
@@ -255,14 +255,14 @@ html[data-theme='dark'] {
255255
font-size: 1rem !important;
256256
color: #000;
257257
text-align: left;
258-
padding: .1rem 2rem;
258+
padding: 0.1rem 2rem;
259259
text-decoration: underline;
260260
font-weight: bold;
261261
display: inline;
262262
opacity: 1;
263263
}
264264

265-
html[data-theme='dark'] .button.button--secondary.button--sm.menu__button {
265+
html[data-theme="dark"] .button.button--secondary.button--sm.menu__button {
266266
color: #fff;
267267
}
268268

@@ -271,4 +271,4 @@ html[data-theme='dark'] {
271271
opacity: 0.8;
272272
display: block;
273273
}
274-
}
274+
}

www/src/css/sidebar.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
border-right: none !important;
44
}
55

6+
.menu__list .menu__link {
7+
text-decoration: none;
8+
}
9+
610
.menu__list .menu__list-item a[href="#!"],
711
.menu__list .menu__list-item a:not(.menu__link--sublist) {
812
background: transparent;
@@ -22,13 +26,18 @@
2226
font-weight: 700;
2327
}
2428

25-
.menu__list .menu__list-item a.menu__link.menu__link--active:not(.menu__link--sublist) {
26-
background: transparent;
29+
.menu__list
30+
.menu__list-item
31+
a.menu__link.menu__link--active:not(.menu__link--sublist) {
32+
background: transparent;
2733
color: var(--ifm-color-link);
2834
}
2935

30-
html[data-theme='dark'] .menu__list .menu__list-item a:not(.menu__link--sublist),
31-
html[data-theme='dark'] .menu__list .menu__list-item a[href="#!"] {
36+
html[data-theme="dark"]
37+
.menu__list
38+
.menu__list-item
39+
a:not(.menu__link--sublist),
40+
html[data-theme="dark"] .menu__list .menu__list-item a[href="#!"] {
3241
color: #fff;
3342
}
3443

www/src/css/table-of-contents.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
border: none !important;
77
}
88

9+
.table-of-contents__link {
10+
text-decoration: none;
11+
}
12+
913
.contents a {
1014
text-decoration: none;
1115
}
@@ -36,10 +40,10 @@
3640
}
3741

3842
.contents li > ul {
39-
margin-left: .25rem;
43+
margin-left: 0.25rem;
4044
}
4145

4246
.contents li > ul li > a {
4347
font-weight: 400;
4448
font-size: 0.95rem;
45-
}
49+
}

0 commit comments

Comments
 (0)