@apify/docs-theme 1.0.255 → 1.0.256
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 +114 -82
- 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,118 @@ 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',
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
label: 'Reference',
|
|
50
|
-
href: `${absoluteUrl}/api/v2`,
|
|
51
|
-
target: '_self',
|
|
52
|
-
rel: 'dofollow',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
label: 'Client for JavaScript',
|
|
56
|
-
href: `${absoluteUrl}/api/client/js/docs`,
|
|
57
|
-
target: '_self',
|
|
58
|
-
rel: 'dofollow',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
label: 'Client for Python',
|
|
62
|
-
href: `${absoluteUrl}/api/client/python/docs`,
|
|
63
|
-
target: '_self',
|
|
64
|
-
rel: 'dofollow',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
51
|
+
target: '_self',
|
|
52
|
+
rel: 'dofollow',
|
|
67
53
|
},
|
|
68
54
|
{
|
|
69
|
-
label: '
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
activeBasePath: 'sdk',
|
|
55
|
+
label: 'Account',
|
|
56
|
+
href: `${absoluteUrl}/account`,
|
|
57
|
+
activeBasePath: 'account',
|
|
73
58
|
position: 'left',
|
|
74
59
|
target: '_self',
|
|
75
60
|
rel: 'dofollow',
|
|
76
|
-
items: [
|
|
77
|
-
{
|
|
78
|
-
label: 'SDK for JavaScript',
|
|
79
|
-
href: `${absoluteUrl}/sdk/js/docs/overview`,
|
|
80
|
-
target: '_self',
|
|
81
|
-
rel: 'dofollow',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
html: 'SDK for Python',
|
|
85
|
-
href: `${absoluteUrl}/sdk/python/docs/overview`,
|
|
86
|
-
target: '_self',
|
|
87
|
-
rel: 'dofollow',
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
61
|
},
|
|
91
62
|
{
|
|
92
|
-
label: '
|
|
93
|
-
href: `${absoluteUrl}/
|
|
63
|
+
label: 'Integrations',
|
|
64
|
+
href: `${absoluteUrl}/integrations`,
|
|
65
|
+
activeBasePath: 'integrations',
|
|
94
66
|
position: 'left',
|
|
95
|
-
activeBasePath: 'cli',
|
|
96
67
|
target: '_self',
|
|
97
68
|
rel: 'dofollow',
|
|
98
69
|
},
|
|
99
70
|
{
|
|
100
|
-
label: '
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
71
|
+
label: 'Limits',
|
|
72
|
+
href: `${absoluteUrl}/limits`,
|
|
73
|
+
activeBasePath: 'limits',
|
|
74
|
+
position: 'left',
|
|
104
75
|
target: '_self',
|
|
76
|
+
rel: 'dofollow',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Security',
|
|
80
|
+
href: `${absoluteUrl}/security`,
|
|
81
|
+
activeBasePath: 'security',
|
|
105
82
|
position: 'left',
|
|
106
|
-
|
|
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',
|
|
107
99
|
items: [
|
|
108
100
|
{
|
|
109
|
-
label: '
|
|
110
|
-
href:
|
|
101
|
+
label: 'API Reference',
|
|
102
|
+
href: `${absoluteUrl}/api/v2`,
|
|
103
|
+
target: '_self',
|
|
111
104
|
rel: 'dofollow',
|
|
112
105
|
},
|
|
113
106
|
{
|
|
114
|
-
label: '
|
|
115
|
-
href:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
label: 'impit',
|
|
119
|
-
href: 'https://github.com/apify/impit',
|
|
107
|
+
label: 'SDK for JavaScript',
|
|
108
|
+
href: `${absoluteUrl}/sdk/js/docs/overview`,
|
|
109
|
+
target: '_self',
|
|
110
|
+
rel: 'dofollow',
|
|
120
111
|
},
|
|
121
112
|
{
|
|
122
|
-
label: '
|
|
123
|
-
href:
|
|
113
|
+
label: 'SDK for Python',
|
|
114
|
+
href: `${absoluteUrl}/sdk/python/docs/overview`,
|
|
115
|
+
target: '_self',
|
|
116
|
+
rel: 'dofollow',
|
|
124
117
|
},
|
|
125
118
|
{
|
|
126
|
-
label: '
|
|
127
|
-
href:
|
|
119
|
+
label: 'Client for JavaScript',
|
|
120
|
+
href: `${absoluteUrl}/api/client/js/docs`,
|
|
121
|
+
target: '_self',
|
|
122
|
+
rel: 'dofollow',
|
|
128
123
|
},
|
|
129
124
|
{
|
|
130
|
-
label: '
|
|
131
|
-
href:
|
|
125
|
+
label: 'Client for Python',
|
|
126
|
+
href: `${absoluteUrl}/api/client/python/docs`,
|
|
127
|
+
target: '_self',
|
|
128
|
+
rel: 'dofollow',
|
|
132
129
|
},
|
|
133
130
|
{
|
|
134
|
-
label: '
|
|
135
|
-
href:
|
|
131
|
+
label: 'CLI',
|
|
132
|
+
href: `${absoluteUrl}/cli/docs`,
|
|
133
|
+
target: '_self',
|
|
134
|
+
rel: 'dofollow',
|
|
136
135
|
},
|
|
137
136
|
],
|
|
138
137
|
},
|
|
@@ -163,8 +162,14 @@ const themeConfig = {
|
|
|
163
162
|
rel: 'dofollow',
|
|
164
163
|
},
|
|
165
164
|
{
|
|
166
|
-
label: '
|
|
167
|
-
href: `${absoluteUrl}/
|
|
165
|
+
label: 'Get started',
|
|
166
|
+
href: `${absoluteUrl}/get-started`,
|
|
167
|
+
target: '_self',
|
|
168
|
+
rel: 'dofollow',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
label: 'Actors',
|
|
172
|
+
href: `${absoluteUrl}/actors`,
|
|
168
173
|
target: '_self',
|
|
169
174
|
rel: 'dofollow',
|
|
170
175
|
},
|
|
@@ -211,18 +216,45 @@ const themeConfig = {
|
|
|
211
216
|
],
|
|
212
217
|
},
|
|
213
218
|
{
|
|
214
|
-
title: '
|
|
219
|
+
title: 'Open source',
|
|
215
220
|
items: [
|
|
216
221
|
{
|
|
217
|
-
label: '
|
|
218
|
-
href:
|
|
219
|
-
position: 'left',
|
|
220
|
-
target: '_self',
|
|
222
|
+
label: 'Crawlee',
|
|
223
|
+
href: 'https://crawlee.dev',
|
|
221
224
|
rel: 'dofollow',
|
|
222
225
|
},
|
|
223
226
|
{
|
|
224
|
-
label: '
|
|
225
|
-
href:
|
|
227
|
+
label: 'Fingerprint Suite',
|
|
228
|
+
href: 'https://github.com/apify/fingerprint-suite',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: 'impit',
|
|
232
|
+
href: 'https://github.com/apify/impit',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
label: 'MCP CLI',
|
|
236
|
+
href: 'https://github.com/apify/mcpc',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
label: 'Actor whitepaper',
|
|
240
|
+
href: 'https://whitepaper.actor',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
label: 'proxy-chain',
|
|
244
|
+
href: 'https://github.com/apify/proxy-chain',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
label: 'Apify on GitHub',
|
|
248
|
+
href: 'https://github.com/apify',
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
title: 'Other',
|
|
254
|
+
items: [
|
|
255
|
+
{
|
|
256
|
+
label: 'CLI',
|
|
257
|
+
href: `${absoluteUrl}/cli/docs`,
|
|
226
258
|
position: 'left',
|
|
227
259
|
target: '_self',
|
|
228
260
|
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);
|