@apify/docs-theme 1.0.272 → 1.0.273
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
CHANGED
package/src/config.js
CHANGED
|
@@ -202,9 +202,9 @@ const themeConfig = {
|
|
|
202
202
|
],
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
|
-
label: '
|
|
206
|
-
href: `${absoluteUrl}/
|
|
207
|
-
|
|
205
|
+
label: 'For AI agents',
|
|
206
|
+
href: `${absoluteUrl}/agents`,
|
|
207
|
+
activeBaseRegex: '^/(agents|mcp)(/|$)',
|
|
208
208
|
position: 'right',
|
|
209
209
|
target: '_self',
|
|
210
210
|
rel: 'dofollow',
|
package/static/js/custom.js
CHANGED
|
@@ -139,8 +139,8 @@ window.addEventListener('popstate', () => {
|
|
|
139
139
|
// Background: Previously, mcp.apify.com had a 301 redirect to the docs page
|
|
140
140
|
// This clears cached redirects so users can access the new MCP configuration interface
|
|
141
141
|
function clearMcpRedirectCache() {
|
|
142
|
-
// Only run on the MCP documentation page
|
|
143
|
-
if (window.location.pathname
|
|
142
|
+
// Only run on the MCP documentation page (served at /mcp, formerly /integrations/mcp)
|
|
143
|
+
if (/(^|\/)mcp\/?$/.test(window.location.pathname)) {
|
|
144
144
|
// Clear cached redirects to mcp.apify.com
|
|
145
145
|
fetch('https://mcp.apify.com/', {
|
|
146
146
|
method: 'get',
|