@apify/docs-theme 1.0.271 → 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.271",
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',
@@ -590,6 +590,16 @@ html[data-theme='dark'] .markdown code {
590
590
  border-color: rgba(255, 255, 255, 0.1);
591
591
  }
592
592
 
593
+ /* Inline code in the first column of a table is an identifier - a tool name, an
594
+ environment variable, a field. Browsers treat a hyphen as a line-break
595
+ opportunity, so `fetch-actor-details` gets split across two lines in a narrow
596
+ column. Keep those identifiers whole; tables already scroll horizontally, and
597
+ the prose columns stay free to wrap. */
598
+ .markdown table th:first-child code,
599
+ .markdown table td:first-child code {
600
+ white-space: nowrap;
601
+ }
602
+
593
603
  article .card h2 {
594
604
  margin-top: 0;
595
605
  }
@@ -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',