@apify/docs-theme 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/config.js +46 -15
- package/src/theme/Footer/index.jsx +7 -29
- package/src/theme/Footer/index.module.css +11 -1
- package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.jsx +1 -1
- package/src/theme/custom.css +9 -4
- package/static/img/footer-apify-logo-black.svg +7 -0
- package/{src/img/footer-apify-logo.svg → static/img/footer-apify-logo-white.svg} +0 -0
- package/src/img/footer-open-source.svg +0 -8
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -144,7 +144,7 @@ const themeConfig = ({
|
|
|
144
144
|
footer: {
|
|
145
145
|
links: [
|
|
146
146
|
{
|
|
147
|
-
title: '
|
|
147
|
+
title: 'Learn',
|
|
148
148
|
items: [
|
|
149
149
|
{
|
|
150
150
|
label: 'Academy',
|
|
@@ -157,40 +157,71 @@ const themeConfig = ({
|
|
|
157
157
|
],
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
|
-
title: '
|
|
160
|
+
title: 'API',
|
|
161
161
|
items: [
|
|
162
162
|
{
|
|
163
|
-
label: '
|
|
164
|
-
href:
|
|
163
|
+
label: 'Reference',
|
|
164
|
+
href: `/api/v2/`,
|
|
165
|
+
target: '_self',
|
|
166
|
+
rel: 'dofollow',
|
|
165
167
|
},
|
|
166
168
|
{
|
|
167
|
-
label: '
|
|
168
|
-
href: '
|
|
169
|
+
label: 'Client for JavaScript',
|
|
170
|
+
href: `/client-js/`, // we need a trailing slash here, we'd get redirected there anyway
|
|
171
|
+
target: '_self',
|
|
172
|
+
rel: 'dofollow',
|
|
169
173
|
},
|
|
170
174
|
{
|
|
171
|
-
label: '
|
|
172
|
-
href: '
|
|
175
|
+
label: 'Client for Python',
|
|
176
|
+
href: `/client-python/`, // we need a trailing slash here, we'd get redirected there anyway
|
|
177
|
+
target: '_self',
|
|
178
|
+
rel: 'dofollow',
|
|
173
179
|
},
|
|
174
180
|
],
|
|
175
181
|
},
|
|
176
182
|
{
|
|
177
|
-
title: '
|
|
183
|
+
title: 'SDK',
|
|
178
184
|
items: [
|
|
179
185
|
{
|
|
180
|
-
label: '
|
|
181
|
-
href: '
|
|
186
|
+
label: 'SDK for JavaScript',
|
|
187
|
+
href: `/sdk-js/`, // we need a trailing slash here, we'd get redirected there anyway
|
|
188
|
+
target: '_self',
|
|
189
|
+
rel: 'dofollow',
|
|
182
190
|
},
|
|
183
191
|
{
|
|
184
|
-
label: '
|
|
185
|
-
href: '
|
|
192
|
+
label: 'SDK for Python',
|
|
193
|
+
href: `/sdk-python/`, // we need a trailing slash here, we'd get redirected there anyway
|
|
194
|
+
target: '_self',
|
|
195
|
+
rel: 'dofollow',
|
|
186
196
|
},
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
title: 'Other',
|
|
201
|
+
items: [
|
|
187
202
|
{
|
|
188
|
-
label: '
|
|
189
|
-
href: '
|
|
203
|
+
label: 'CLI',
|
|
204
|
+
href: `/cli/`, // we need a trailing slash here, we'd get redirected there anyway
|
|
205
|
+
position: 'left',
|
|
206
|
+
target: '_self',
|
|
207
|
+
rel: 'dofollow',
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
title: 'More',
|
|
213
|
+
items: [
|
|
214
|
+
{
|
|
215
|
+
label: 'Cralwee',
|
|
216
|
+
to: 'https://crawlee.dev',
|
|
217
|
+
target: '_self',
|
|
218
|
+
rel: 'dofollow',
|
|
190
219
|
},
|
|
191
220
|
{
|
|
192
221
|
label: 'GitHub',
|
|
193
222
|
href: 'https://github.com/apify',
|
|
223
|
+
target: '_self',
|
|
224
|
+
rel: 'dofollow',
|
|
194
225
|
},
|
|
195
226
|
],
|
|
196
227
|
},
|
|
@@ -26,42 +26,20 @@ function Footer() {
|
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
28
|
const { links, style } = footer;
|
|
29
|
-
const OpenSourceIcon = require('../../img/footer-open-source.svg').default;
|
|
30
|
-
const ApifyLogo = require('../../img/footer-apify-logo.svg').default;
|
|
31
29
|
return (
|
|
32
30
|
<footer className={clsx(styles.footer, style)}>
|
|
33
31
|
<div className="container padding-horiz--lg">
|
|
34
|
-
<div className="row">
|
|
35
|
-
|
|
36
|
-
<div className=
|
|
37
|
-
<
|
|
38
|
-
<FooterLinksColumn column={links[0]} />
|
|
39
|
-
</div>
|
|
40
|
-
<div className="col col--6">
|
|
41
|
-
<FooterLinksColumn column={links[1]} />
|
|
42
|
-
</div>
|
|
32
|
+
<div className="row" style={{ justifyContent: 'space-between' }}>
|
|
33
|
+
{ links.map((column, i) => (
|
|
34
|
+
<div key={i} className={`col col--2`}>
|
|
35
|
+
<FooterLinksColumn {...{ column }} />
|
|
43
36
|
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div className="row">
|
|
47
|
-
<div className="col col--3 col--offset-9">
|
|
48
|
-
<FooterLinksColumn column={links[2]} />
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
37
|
+
))
|
|
38
|
+
}
|
|
52
39
|
</div>
|
|
53
40
|
<div className="row padding-vert--md padding-top--lg">
|
|
54
41
|
<div className="col padding-vert--md col--6">
|
|
55
|
-
<div className={styles.
|
|
56
|
-
<OpenSourceIcon className={styles.alignMiddle} />
|
|
57
|
-
<span className={styles.alignMiddle}>Apify SDK is free and open source</span>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
<div className="col padding-vert--md col--6 text--right">
|
|
61
|
-
<span className={styles.builtBy}>
|
|
62
|
-
<span className={styles.alignMiddle}>Built by</span>
|
|
63
|
-
<ApifyLogo className={styles.alignMiddle} />
|
|
64
|
-
</span>
|
|
42
|
+
<div className={styles.footerLogo}></div>
|
|
65
43
|
</div>
|
|
66
44
|
</div>
|
|
67
45
|
</div>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.footer {
|
|
2
|
-
background: #272c3d;
|
|
3
2
|
padding-top: 64px;
|
|
4
3
|
}
|
|
5
4
|
|
|
@@ -44,3 +43,14 @@
|
|
|
44
43
|
color: #8d92af;
|
|
45
44
|
margin-bottom: 20px;
|
|
46
45
|
}
|
|
46
|
+
|
|
47
|
+
.footerLogo {
|
|
48
|
+
width: 90px;
|
|
49
|
+
height: 24px;
|
|
50
|
+
background-image: url('/img/footer-apify-logo-black.svg');
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
html[data-theme='dark'] .footerLogo {
|
|
55
|
+
background-image: url('/img/footer-apify-logo-white.svg');
|
|
56
|
+
}
|
|
@@ -14,7 +14,7 @@ export default function NavbarMobilePrimaryMenu() {
|
|
|
14
14
|
// TODO how can the order be defined for mobile?
|
|
15
15
|
// Should we allow providing a different list of items?
|
|
16
16
|
const items = useNavbarItems();
|
|
17
|
-
const baseUrl = useBaseUrl('
|
|
17
|
+
const baseUrl = useBaseUrl('/');
|
|
18
18
|
const { options: { subNavbar } } = usePluginData('@apify/docs-theme');
|
|
19
19
|
return (
|
|
20
20
|
<>
|
package/src/theme/custom.css
CHANGED
|
@@ -64,7 +64,7 @@ html[data-theme='dark'] {
|
|
|
64
64
|
|
|
65
65
|
--ifm-footer-background-color: #272c3d;
|
|
66
66
|
--ifm-footer-title-color: #f2f3fb;
|
|
67
|
-
--ifm-footer-link-color: #
|
|
67
|
+
--ifm-footer-link-color: #8d92af;
|
|
68
68
|
--max-layout-width: 1680px;
|
|
69
69
|
|
|
70
70
|
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
|
|
@@ -106,6 +106,10 @@ html[data-theme='dark'] {
|
|
|
106
106
|
color: var(--ifm-footer-title-color);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
footer .col {
|
|
110
|
+
margin-bottom: 2rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
109
113
|
.navbar__title {
|
|
110
114
|
/* Replaced by SVG */
|
|
111
115
|
display: none;
|
|
@@ -181,7 +185,7 @@ html.plugin-pages .main-wrapper {
|
|
|
181
185
|
}
|
|
182
186
|
|
|
183
187
|
aside > div > a {
|
|
184
|
-
padding-left:
|
|
188
|
+
padding-left: 0px;
|
|
185
189
|
}
|
|
186
190
|
|
|
187
191
|
aside > div > a > b {
|
|
@@ -320,7 +324,7 @@ nav.navbar .dropdown__menu {
|
|
|
320
324
|
display: none;
|
|
321
325
|
width: 11rem;
|
|
322
326
|
height: 3rem;
|
|
323
|
-
padding: 10px
|
|
327
|
+
/* padding: 10px 0px; */
|
|
324
328
|
}
|
|
325
329
|
|
|
326
330
|
.navbar-sidebar .navbar__logo {
|
|
@@ -342,6 +346,8 @@ nav.navbar .dropdown__menu {
|
|
|
342
346
|
|
|
343
347
|
.main-wrapper a[class*='sidebarLogo'] img {
|
|
344
348
|
height: 3rem;
|
|
349
|
+
width: 11rem;
|
|
350
|
+
padding: 10px 0px;
|
|
345
351
|
}
|
|
346
352
|
|
|
347
353
|
html.plugin-pages h2 {
|
|
@@ -494,7 +500,6 @@ div[class*="searchBox"] {
|
|
|
494
500
|
}
|
|
495
501
|
}
|
|
496
502
|
|
|
497
|
-
|
|
498
503
|
@media (min-width: 997px) {
|
|
499
504
|
.navbar__sub {
|
|
500
505
|
display: block;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg version="1.1" viewBox="0 0 91 25" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M3.135 2.85A3.409 3.409 0 0 0 .227 6.699l2.016 14.398 8.483-19.304-7.59 1.059Z" fill="#97D700"/>
|
|
4
|
+
<path d="M23.604 14.847 22.811 3.78a3.414 3.414 0 0 0-3.64-3.154c-.077 0-.153.014-.228.025l-3.274.452 7.192 16.124a3.4 3.4 0 0 0 .743-2.379Z" fill="#71C5E8"/>
|
|
5
|
+
<path d="M5.336 24.595a3.39 3.39 0 0 0 1.706-.248l12.35-5.211L13.514 5.97 5.336 24.595Z" fill="#FF9013"/>
|
|
6
|
+
<path d="M33.83 5.304h3.903l5.448 14.623h-3.494l-1.022-2.994h-5.877l-1.025 2.994h-3.384L33.83 5.304Zm-.177 9.032h4.14l-2-5.994h-.086l-2.054 5.994Zm25.189-9.032h3.302v14.623h-3.302V5.304Zm5.792 0h10.71v2.7h-7.4v4.101h5.962v2.632h-5.963v5.186h-3.309V5.303Zm17.482 9.076-5.498-9.076h3.748l3.428 6.016h.085l3.599-6.016H91l-5.56 9.054v5.569h-3.324v-5.548ZM51.75 5.304h-7.292v14.623h3.3v-4.634h3.993a4.995 4.995 0 1 0 0-9.99Zm-.364 7.417h-3.628V7.875h3.627a2.423 2.423 0 0 1 0 4.846Z"/>
|
|
7
|
+
</svg>
|
|
File without changes
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path
|
|
3
|
-
d="M23.85 21.4261L22.07 18.5161C22.0223 18.4379 21.998 18.3477 22 18.2561V14.1261C22 12.3461 20.29 11.0561 18.48 9.67613C18.4235 9.63333 18.3765 9.5792 18.342 9.51722C18.3076 9.45523 18.2865 9.38675 18.28 9.31613C18.2746 9.24341 18.2842 9.17036 18.3083 9.10153C18.3324 9.0327 18.3704 8.96959 18.42 8.91613C19.2176 8.18843 19.7543 7.21901 19.9476 6.15676C20.1409 5.09451 19.9801 3.99817 19.49 3.03613C19.1249 2.3284 18.5986 1.7164 17.9535 1.24953C17.3084 0.782657 16.5625 0.473992 15.7761 0.348443C14.9897 0.222895 14.1849 0.28398 13.4264 0.526769C12.668 0.769557 11.9773 1.18725 11.41 1.74613L10.35 2.74613C10.2604 2.83348 10.1402 2.88237 10.015 2.88237C9.88984 2.88237 9.76963 2.83348 9.68 2.74613L8.62 1.74613C8.05176 1.18725 7.36022 0.769615 6.60107 0.526864C5.84192 0.284114 5.03637 0.223031 4.24929 0.348535C3.46221 0.474039 2.71561 0.782623 2.0696 1.24944C1.42359 1.71625 0.896234 2.32824 0.529996 3.03613C0.0712553 3.97975 -0.0790193 5.04376 0.100451 6.07751C0.279922 7.11126 0.780043 8.06236 1.53 8.79613L9.29 16.7961C9.39004 16.8988 9.50986 16.98 9.64221 17.035C9.77456 17.09 9.91668 17.1176 10.06 17.1161C10.2048 17.1178 10.3485 17.0904 10.4825 17.0354C10.6165 16.9804 10.7381 16.899 10.84 16.7961C10.9225 16.7101 10.9793 16.6027 11.004 16.4861C11.0288 16.3695 11.0204 16.2483 10.98 16.1361C10.8286 15.6925 10.7607 15.2245 10.78 14.7561C10.8094 14.1798 10.9714 13.6181 11.2535 13.1146C11.5355 12.6112 11.9299 12.1796 12.406 11.8535C12.8821 11.5274 13.427 11.3156 13.9983 11.2345C14.5697 11.1535 15.152 11.2053 15.7 11.3861C15.7886 11.4152 15.8836 11.4184 15.9739 11.3954C16.0643 11.3724 16.1462 11.3241 16.21 11.2561L16.36 11.1061C16.445 11.0188 16.559 10.9655 16.6805 10.9563C16.8021 10.9471 16.9228 10.9826 17.02 11.0561L17.32 11.2861C18.54 12.2061 20.05 13.3561 20.05 14.1361V18.6861C20.0494 18.8734 20.1014 19.057 20.2 19.2161L22.2 22.4761C22.2519 22.6119 22.3328 22.7347 22.437 22.8361C22.5412 22.9374 22.6663 23.0148 22.8034 23.0628C22.9406 23.1109 23.0866 23.1285 23.2313 23.1143C23.376 23.1002 23.5158 23.0547 23.6411 22.981C23.7664 22.9073 23.8741 22.8072 23.9567 22.6876C24.0394 22.568 24.095 22.4319 24.1196 22.2886C24.1442 22.1454 24.1374 21.9985 24.0994 21.8581C24.0615 21.7178 23.9935 21.5875 23.9 21.4761L23.85 21.4261Z"
|
|
4
|
-
fill="#B3B8D2"/>
|
|
5
|
-
<path
|
|
6
|
-
d="M16.09 13.1961C15.6537 12.7991 15.0849 12.5791 14.495 12.5791C13.9051 12.5791 13.3363 12.7991 12.9 13.1961C12.6632 13.4054 12.4704 13.6597 12.333 13.9442C12.1955 14.2288 12.1161 14.5378 12.0993 14.8534C12.0826 15.169 12.1288 15.4847 12.2354 15.7822C12.3419 16.0797 12.5067 16.353 12.72 16.5861L14.35 18.3561C14.4307 18.4514 14.4765 18.5713 14.48 18.6961V19.6961C14.48 20.9961 16 22.2861 16.48 22.6461C16.6349 22.7659 16.8242 22.8325 17.02 22.8361C17.2022 22.8349 17.3795 22.7771 17.5275 22.6707C17.6754 22.5644 17.7867 22.4147 17.846 22.2424C17.9053 22.0701 17.9096 21.8836 17.8584 21.7087C17.8071 21.5339 17.7029 21.3792 17.56 21.2661C16.9911 20.869 16.5388 20.3269 16.25 19.6961V18.1261C16.2512 17.9074 16.1689 17.6964 16.02 17.5361L14.02 15.3561C13.9611 15.2977 13.9155 15.2272 13.8861 15.1496C13.8568 15.072 13.8445 14.9889 13.85 14.9061C13.8613 14.738 13.9364 14.5806 14.06 14.4661C14.1771 14.3621 14.3283 14.3047 14.485 14.3047C14.6416 14.3047 14.7929 14.3621 14.91 14.4661L16.91 16.3261C17.0797 16.4839 17.3052 16.5679 17.5368 16.5594C17.7684 16.551 17.9872 16.4509 18.145 16.2811C18.3028 16.1114 18.3867 15.8859 18.3783 15.6543C18.3698 15.4227 18.2697 15.2039 18.1 15.0461L16.09 13.1961Z"
|
|
7
|
-
fill="#B3B8D2"/>
|
|
8
|
-
</svg>
|