@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/docs-theme",
3
- "version": "1.0.272",
3
+ "version": "1.0.273",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
package/src/config.js CHANGED
@@ -202,9 +202,9 @@ const themeConfig = {
202
202
  ],
203
203
  },
204
204
  {
205
- label: 'MCP',
206
- href: `${absoluteUrl}/integrations/mcp`,
207
- activeBasePath: 'integrations/mcp',
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',
@@ -57,6 +57,8 @@ export default function DocItemContent({ children }) {
57
57
  '/proxy',
58
58
  '/account',
59
59
  '/integrations',
60
+ '/agents',
61
+ '/mcp',
60
62
  '/security',
61
63
  '/sdk',
62
64
  '/cli',
@@ -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.includes('integrations/mcp')) {
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',