@apify/docs-theme 1.0.255 → 1.0.257
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 +137 -75
- package/src/theme/DocItemContent/index.js +8 -1
- package/src/theme/SearchBar/index.js +11 -1
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -20,119 +20,148 @@ const themeConfig = {
|
|
|
20
20
|
},
|
|
21
21
|
items: [
|
|
22
22
|
{
|
|
23
|
-
label: '
|
|
24
|
-
href: `${absoluteUrl}/
|
|
25
|
-
activeBasePath: '
|
|
23
|
+
label: 'Get started',
|
|
24
|
+
href: `${absoluteUrl}/get-started`,
|
|
25
|
+
activeBasePath: 'get-started',
|
|
26
26
|
position: 'left',
|
|
27
27
|
target: '_self',
|
|
28
28
|
rel: 'dofollow',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
label: '
|
|
32
|
-
href: `${absoluteUrl}/
|
|
33
|
-
|
|
34
|
-
activeBasePath: 'platform',
|
|
31
|
+
label: 'Actors',
|
|
32
|
+
href: `${absoluteUrl}/actors`,
|
|
33
|
+
activeBasePath: 'actors',
|
|
35
34
|
position: 'left',
|
|
36
35
|
target: '_self',
|
|
37
36
|
rel: 'dofollow',
|
|
38
37
|
},
|
|
39
38
|
{
|
|
40
|
-
label: '
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
label: 'Storage',
|
|
40
|
+
href: `${absoluteUrl}/storage`,
|
|
41
|
+
activeBasePath: 'storage',
|
|
42
|
+
position: 'left',
|
|
43
43
|
target: '_self',
|
|
44
44
|
rel: 'dofollow',
|
|
45
|
-
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Proxy',
|
|
48
|
+
href: `${absoluteUrl}/proxy`,
|
|
49
|
+
activeBasePath: 'proxy',
|
|
46
50
|
position: 'left',
|
|
51
|
+
target: '_self',
|
|
52
|
+
rel: 'dofollow',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Account',
|
|
56
|
+
href: `${absoluteUrl}/account`,
|
|
57
|
+
activeBasePath: 'account',
|
|
58
|
+
position: 'left',
|
|
59
|
+
target: '_self',
|
|
60
|
+
rel: 'dofollow',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Integrations',
|
|
64
|
+
href: `${absoluteUrl}/integrations`,
|
|
65
|
+
activeBasePath: 'integrations',
|
|
66
|
+
position: 'left',
|
|
67
|
+
target: '_self',
|
|
68
|
+
rel: 'dofollow',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: 'Limits',
|
|
72
|
+
href: `${absoluteUrl}/limits`,
|
|
73
|
+
activeBasePath: 'limits',
|
|
74
|
+
position: 'left',
|
|
75
|
+
target: '_self',
|
|
76
|
+
rel: 'dofollow',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Security',
|
|
80
|
+
href: `${absoluteUrl}/security`,
|
|
81
|
+
activeBasePath: 'security',
|
|
82
|
+
position: 'left',
|
|
83
|
+
target: '_self',
|
|
84
|
+
rel: 'dofollow',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'Academy',
|
|
88
|
+
href: `${absoluteUrl}/academy`,
|
|
89
|
+
activeBasePath: 'academy',
|
|
90
|
+
position: 'right',
|
|
91
|
+
target: '_self',
|
|
92
|
+
rel: 'dofollow',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'APIs, SDKs & CLI',
|
|
96
|
+
type: 'dropdown',
|
|
97
|
+
activeBaseRegex: '^/(api|sdk|cli)/',
|
|
98
|
+
position: 'right',
|
|
47
99
|
items: [
|
|
48
100
|
{
|
|
49
|
-
label: 'Reference',
|
|
101
|
+
label: 'API Reference',
|
|
50
102
|
href: `${absoluteUrl}/api/v2`,
|
|
51
103
|
target: '_self',
|
|
52
104
|
rel: 'dofollow',
|
|
53
105
|
},
|
|
54
106
|
{
|
|
55
|
-
label: '
|
|
56
|
-
href: `${absoluteUrl}/
|
|
107
|
+
label: 'SDK for JavaScript',
|
|
108
|
+
href: `${absoluteUrl}/sdk/js/docs/overview`,
|
|
57
109
|
target: '_self',
|
|
58
110
|
rel: 'dofollow',
|
|
59
111
|
},
|
|
60
112
|
{
|
|
61
|
-
label: '
|
|
62
|
-
href: `${absoluteUrl}/
|
|
113
|
+
label: 'SDK for Python',
|
|
114
|
+
href: `${absoluteUrl}/sdk/python/docs/overview`,
|
|
63
115
|
target: '_self',
|
|
64
116
|
rel: 'dofollow',
|
|
65
117
|
},
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
label: 'SDK',
|
|
70
|
-
type: 'dropdown',
|
|
71
|
-
to: `${absoluteUrl}/sdk`,
|
|
72
|
-
activeBasePath: 'sdk',
|
|
73
|
-
position: 'left',
|
|
74
|
-
target: '_self',
|
|
75
|
-
rel: 'dofollow',
|
|
76
|
-
items: [
|
|
77
118
|
{
|
|
78
|
-
label: '
|
|
79
|
-
href: `${absoluteUrl}/
|
|
119
|
+
label: 'Client for JavaScript',
|
|
120
|
+
href: `${absoluteUrl}/api/client/js/docs`,
|
|
80
121
|
target: '_self',
|
|
81
122
|
rel: 'dofollow',
|
|
82
123
|
},
|
|
83
124
|
{
|
|
84
|
-
|
|
85
|
-
href: `${absoluteUrl}/
|
|
125
|
+
label: 'Client for Python',
|
|
126
|
+
href: `${absoluteUrl}/api/client/python/docs`,
|
|
86
127
|
target: '_self',
|
|
87
128
|
rel: 'dofollow',
|
|
88
129
|
},
|
|
89
|
-
],
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
label: 'CLI',
|
|
93
|
-
href: `${absoluteUrl}/cli/docs`,
|
|
94
|
-
position: 'left',
|
|
95
|
-
activeBasePath: 'cli',
|
|
96
|
-
target: '_self',
|
|
97
|
-
rel: 'dofollow',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
label: 'Open source',
|
|
101
|
-
type: 'dropdown',
|
|
102
|
-
to: `${absoluteUrl}/open-source`,
|
|
103
|
-
activeBasePath: 'open-source',
|
|
104
|
-
target: '_self',
|
|
105
|
-
position: 'left',
|
|
106
|
-
className: 'navbar__item',
|
|
107
|
-
items: [
|
|
108
130
|
{
|
|
109
|
-
label: '
|
|
110
|
-
href:
|
|
131
|
+
label: 'CLI',
|
|
132
|
+
href: `${absoluteUrl}/cli/docs`,
|
|
133
|
+
target: '_self',
|
|
111
134
|
rel: 'dofollow',
|
|
112
135
|
},
|
|
113
136
|
{
|
|
114
|
-
label: '
|
|
115
|
-
href:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
label: 'impit',
|
|
119
|
-
href: 'https://github.com/apify/impit',
|
|
137
|
+
label: 'Experimental client for Rust',
|
|
138
|
+
href: `https://github.com/apify/apify-client-rust`,
|
|
139
|
+
target: '_self',
|
|
140
|
+
rel: 'dofollow',
|
|
120
141
|
},
|
|
121
142
|
{
|
|
122
|
-
label: '
|
|
123
|
-
href:
|
|
143
|
+
label: 'Experimental client for Go',
|
|
144
|
+
href: `https://github.com/apify/apify-client-go`,
|
|
145
|
+
target: '_self',
|
|
146
|
+
rel: 'dofollow',
|
|
124
147
|
},
|
|
125
148
|
{
|
|
126
|
-
label: '
|
|
127
|
-
href:
|
|
149
|
+
label: 'Experimental client for PHP',
|
|
150
|
+
href: `https://github.com/apify/apify-client-php`,
|
|
151
|
+
target: '_self',
|
|
152
|
+
rel: 'dofollow',
|
|
128
153
|
},
|
|
129
154
|
{
|
|
130
|
-
label: '
|
|
131
|
-
href:
|
|
155
|
+
label: 'Experimental client for Java',
|
|
156
|
+
href: `https://github.com/apify/apify-client-java`,
|
|
157
|
+
target: '_self',
|
|
158
|
+
rel: 'dofollow',
|
|
132
159
|
},
|
|
133
160
|
{
|
|
134
|
-
label: '
|
|
135
|
-
href:
|
|
161
|
+
label: 'Experimental client for .NET',
|
|
162
|
+
href: `https://github.com/apify/apify-client-dotnet`,
|
|
163
|
+
target: '_self',
|
|
164
|
+
rel: 'dofollow',
|
|
136
165
|
},
|
|
137
166
|
],
|
|
138
167
|
},
|
|
@@ -163,8 +192,14 @@ const themeConfig = {
|
|
|
163
192
|
rel: 'dofollow',
|
|
164
193
|
},
|
|
165
194
|
{
|
|
166
|
-
label: '
|
|
167
|
-
href: `${absoluteUrl}/
|
|
195
|
+
label: 'Get started',
|
|
196
|
+
href: `${absoluteUrl}/get-started`,
|
|
197
|
+
target: '_self',
|
|
198
|
+
rel: 'dofollow',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
label: 'Actors',
|
|
202
|
+
href: `${absoluteUrl}/actors`,
|
|
168
203
|
target: '_self',
|
|
169
204
|
rel: 'dofollow',
|
|
170
205
|
},
|
|
@@ -211,18 +246,45 @@ const themeConfig = {
|
|
|
211
246
|
],
|
|
212
247
|
},
|
|
213
248
|
{
|
|
214
|
-
title: '
|
|
249
|
+
title: 'Open source',
|
|
215
250
|
items: [
|
|
216
251
|
{
|
|
217
|
-
label: '
|
|
218
|
-
href:
|
|
219
|
-
position: 'left',
|
|
220
|
-
target: '_self',
|
|
252
|
+
label: 'Crawlee',
|
|
253
|
+
href: 'https://crawlee.dev',
|
|
221
254
|
rel: 'dofollow',
|
|
222
255
|
},
|
|
223
256
|
{
|
|
224
|
-
label: '
|
|
225
|
-
href:
|
|
257
|
+
label: 'Fingerprint Suite',
|
|
258
|
+
href: 'https://github.com/apify/fingerprint-suite',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: 'impit',
|
|
262
|
+
href: 'https://github.com/apify/impit',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
label: 'MCP CLI',
|
|
266
|
+
href: 'https://github.com/apify/mcpc',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
label: 'Actor whitepaper',
|
|
270
|
+
href: 'https://whitepaper.actor',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
label: 'proxy-chain',
|
|
274
|
+
href: 'https://github.com/apify/proxy-chain',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
label: 'Apify on GitHub',
|
|
278
|
+
href: 'https://github.com/apify',
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
title: 'Other',
|
|
284
|
+
items: [
|
|
285
|
+
{
|
|
286
|
+
label: 'CLI',
|
|
287
|
+
href: `${absoluteUrl}/cli/docs`,
|
|
226
288
|
position: 'left',
|
|
227
289
|
target: '_self',
|
|
228
290
|
rel: 'dofollow',
|
|
@@ -51,7 +51,14 @@ export default function DocItemContent({ children }) {
|
|
|
51
51
|
'/api/v2/logs',
|
|
52
52
|
'/api/v2/users',
|
|
53
53
|
'/api/client',
|
|
54
|
-
'/
|
|
54
|
+
'/get-started',
|
|
55
|
+
'/actors',
|
|
56
|
+
'/storage',
|
|
57
|
+
'/proxy',
|
|
58
|
+
'/account',
|
|
59
|
+
'/integrations',
|
|
60
|
+
'/limits',
|
|
61
|
+
'/security',
|
|
55
62
|
'/sdk',
|
|
56
63
|
'/cli',
|
|
57
64
|
'/academy',
|
|
@@ -17,7 +17,17 @@ import './styles.css';
|
|
|
17
17
|
*/
|
|
18
18
|
function matchesCurrentInstance(href, baseUrl) {
|
|
19
19
|
if (baseUrl === '/') {
|
|
20
|
-
return
|
|
20
|
+
return (
|
|
21
|
+
href.startsWith('/academy') ||
|
|
22
|
+
href.startsWith('/get-started') ||
|
|
23
|
+
href.startsWith('/actors') ||
|
|
24
|
+
href.startsWith('/storage') ||
|
|
25
|
+
href.startsWith('/proxy') ||
|
|
26
|
+
href.startsWith('/account') ||
|
|
27
|
+
href.startsWith('/integrations') ||
|
|
28
|
+
href.startsWith('/limits') ||
|
|
29
|
+
href.startsWith('/security')
|
|
30
|
+
);
|
|
21
31
|
}
|
|
22
32
|
|
|
23
33
|
return href.startsWith(baseUrl);
|