@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 +1 -1
- package/src/config.js +3 -3
- package/src/theme/DocItemContent/index.js +2 -0
- package/src/theme/custom.css +10 -0
- package/static/js/custom.js +2 -2
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/src/theme/custom.css
CHANGED
|
@@ -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
|
}
|
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',
|