@apify/docs-theme 1.0.254 → 1.0.255
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 +82 -114
- package/src/theme/DocItemContent/index.js +1 -8
- package/src/theme/SearchBar/index.js +1 -11
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -20,118 +20,119 @@ const themeConfig = {
|
|
|
20
20
|
},
|
|
21
21
|
items: [
|
|
22
22
|
{
|
|
23
|
-
label: '
|
|
24
|
-
href: `${absoluteUrl}/
|
|
25
|
-
activeBasePath: '
|
|
23
|
+
label: 'Academy',
|
|
24
|
+
href: `${absoluteUrl}/academy`,
|
|
25
|
+
activeBasePath: 'academy',
|
|
26
26
|
position: 'left',
|
|
27
27
|
target: '_self',
|
|
28
28
|
rel: 'dofollow',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
label: '
|
|
32
|
-
href: `${absoluteUrl}/
|
|
33
|
-
|
|
31
|
+
label: 'Platform',
|
|
32
|
+
href: `${absoluteUrl}/platform`,
|
|
33
|
+
className: 'navbar__active',
|
|
34
|
+
activeBasePath: 'platform',
|
|
34
35
|
position: 'left',
|
|
35
36
|
target: '_self',
|
|
36
37
|
rel: 'dofollow',
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
|
-
label: '
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
position: 'left',
|
|
40
|
+
label: 'API',
|
|
41
|
+
type: 'dropdown',
|
|
42
|
+
to: `${absoluteUrl}/api`,
|
|
43
43
|
target: '_self',
|
|
44
44
|
rel: 'dofollow',
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
label: 'Proxy',
|
|
48
|
-
href: `${absoluteUrl}/proxy`,
|
|
49
|
-
activeBasePath: 'proxy',
|
|
45
|
+
activeBasePath: 'api',
|
|
50
46
|
position: 'left',
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
items: [
|
|
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
|
+
],
|
|
53
67
|
},
|
|
54
68
|
{
|
|
55
|
-
label: '
|
|
56
|
-
|
|
57
|
-
|
|
69
|
+
label: 'SDK',
|
|
70
|
+
type: 'dropdown',
|
|
71
|
+
to: `${absoluteUrl}/sdk`,
|
|
72
|
+
activeBasePath: 'sdk',
|
|
58
73
|
position: 'left',
|
|
59
74
|
target: '_self',
|
|
60
75
|
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
|
+
],
|
|
61
90
|
},
|
|
62
91
|
{
|
|
63
|
-
label: '
|
|
64
|
-
href: `${absoluteUrl}/
|
|
65
|
-
activeBasePath: 'integrations',
|
|
92
|
+
label: 'CLI',
|
|
93
|
+
href: `${absoluteUrl}/cli/docs`,
|
|
66
94
|
position: 'left',
|
|
95
|
+
activeBasePath: 'cli',
|
|
67
96
|
target: '_self',
|
|
68
97
|
rel: 'dofollow',
|
|
69
98
|
},
|
|
70
99
|
{
|
|
71
|
-
label: '
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
100
|
+
label: 'Open source',
|
|
101
|
+
type: 'dropdown',
|
|
102
|
+
to: `${absoluteUrl}/open-source`,
|
|
103
|
+
activeBasePath: 'open-source',
|
|
75
104
|
target: '_self',
|
|
76
|
-
rel: 'dofollow',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: 'Security',
|
|
80
|
-
href: `${absoluteUrl}/security`,
|
|
81
|
-
activeBasePath: 'security',
|
|
82
105
|
position: 'left',
|
|
83
|
-
|
|
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',
|
|
106
|
+
className: 'navbar__item',
|
|
99
107
|
items: [
|
|
100
108
|
{
|
|
101
|
-
label: '
|
|
102
|
-
href:
|
|
103
|
-
target: '_self',
|
|
109
|
+
label: 'Crawlee',
|
|
110
|
+
href: 'https://crawlee.dev',
|
|
104
111
|
rel: 'dofollow',
|
|
105
112
|
},
|
|
106
113
|
{
|
|
107
|
-
label: '
|
|
108
|
-
href:
|
|
109
|
-
target: '_self',
|
|
110
|
-
rel: 'dofollow',
|
|
114
|
+
label: 'Fingerprint Suite',
|
|
115
|
+
href: 'https://github.com/apify/fingerprint-suite',
|
|
111
116
|
},
|
|
112
117
|
{
|
|
113
|
-
label: '
|
|
114
|
-
href:
|
|
115
|
-
target: '_self',
|
|
116
|
-
rel: 'dofollow',
|
|
118
|
+
label: 'impit',
|
|
119
|
+
href: 'https://github.com/apify/impit',
|
|
117
120
|
},
|
|
118
121
|
{
|
|
119
|
-
label: '
|
|
120
|
-
href:
|
|
121
|
-
target: '_self',
|
|
122
|
-
rel: 'dofollow',
|
|
122
|
+
label: 'MCP CLI',
|
|
123
|
+
href: 'https://github.com/apify/mcpc',
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
|
-
label: '
|
|
126
|
-
href:
|
|
127
|
-
target: '_self',
|
|
128
|
-
rel: 'dofollow',
|
|
126
|
+
label: 'Actor whitepaper',
|
|
127
|
+
href: 'https://whitepaper.actor',
|
|
129
128
|
},
|
|
130
129
|
{
|
|
131
|
-
label: '
|
|
132
|
-
href:
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
label: 'proxy-chain',
|
|
131
|
+
href: 'https://github.com/apify/proxy-chain',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: 'Apify on GitHub',
|
|
135
|
+
href: 'https://github.com/apify',
|
|
135
136
|
},
|
|
136
137
|
],
|
|
137
138
|
},
|
|
@@ -162,14 +163,8 @@ const themeConfig = {
|
|
|
162
163
|
rel: 'dofollow',
|
|
163
164
|
},
|
|
164
165
|
{
|
|
165
|
-
label: '
|
|
166
|
-
href: `${absoluteUrl}/
|
|
167
|
-
target: '_self',
|
|
168
|
-
rel: 'dofollow',
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
label: 'Actors',
|
|
172
|
-
href: `${absoluteUrl}/actors`,
|
|
166
|
+
label: 'Platform',
|
|
167
|
+
href: `${absoluteUrl}/platform`,
|
|
173
168
|
target: '_self',
|
|
174
169
|
rel: 'dofollow',
|
|
175
170
|
},
|
|
@@ -215,40 +210,6 @@ const themeConfig = {
|
|
|
215
210
|
},
|
|
216
211
|
],
|
|
217
212
|
},
|
|
218
|
-
{
|
|
219
|
-
title: 'Open source',
|
|
220
|
-
items: [
|
|
221
|
-
{
|
|
222
|
-
label: 'Crawlee',
|
|
223
|
-
href: 'https://crawlee.dev',
|
|
224
|
-
rel: 'dofollow',
|
|
225
|
-
},
|
|
226
|
-
{
|
|
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
213
|
{
|
|
253
214
|
title: 'Other',
|
|
254
215
|
items: [
|
|
@@ -259,6 +220,13 @@ const themeConfig = {
|
|
|
259
220
|
target: '_self',
|
|
260
221
|
rel: 'dofollow',
|
|
261
222
|
},
|
|
223
|
+
{
|
|
224
|
+
label: 'Open source',
|
|
225
|
+
href: `${absoluteUrl}/open-source`,
|
|
226
|
+
position: 'left',
|
|
227
|
+
target: '_self',
|
|
228
|
+
rel: 'dofollow',
|
|
229
|
+
},
|
|
262
230
|
{
|
|
263
231
|
label: 'llms.txt',
|
|
264
232
|
href: `${absoluteUrl}/llms.txt`,
|
|
@@ -51,14 +51,7 @@ export default function DocItemContent({ children }) {
|
|
|
51
51
|
'/api/v2/logs',
|
|
52
52
|
'/api/v2/users',
|
|
53
53
|
'/api/client',
|
|
54
|
-
'/
|
|
55
|
-
'/actors',
|
|
56
|
-
'/storage',
|
|
57
|
-
'/proxy',
|
|
58
|
-
'/account',
|
|
59
|
-
'/integrations',
|
|
60
|
-
'/limits',
|
|
61
|
-
'/security',
|
|
54
|
+
'/platform',
|
|
62
55
|
'/sdk',
|
|
63
56
|
'/cli',
|
|
64
57
|
'/academy',
|
|
@@ -17,17 +17,7 @@ import './styles.css';
|
|
|
17
17
|
*/
|
|
18
18
|
function matchesCurrentInstance(href, baseUrl) {
|
|
19
19
|
if (baseUrl === '/') {
|
|
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
|
-
);
|
|
20
|
+
return href.startsWith('/academy') || href.startsWith('/platform');
|
|
31
21
|
}
|
|
32
22
|
|
|
33
23
|
return href.startsWith(baseUrl);
|