@apify/docs-theme 1.0.205 → 1.0.207

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.205",
3
+ "version": "1.0.207",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -54,7 +54,13 @@ export default function DocItemContent({ children }) {
54
54
  '/cli',
55
55
  ];
56
56
 
57
- const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path));
57
+ // Define paths that should not show LLMButtons (e.g., changelog pages)
58
+ const disallowedPaths = [
59
+ '/changelog',
60
+ ];
61
+
62
+ const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path))
63
+ && !disallowedPaths.some((path) => location.pathname.includes(path));
58
64
 
59
65
  return (
60
66
  <div className={clsx(ThemeClassNames.docs.docMarkdown, 'markdown')}>
@@ -145,6 +145,9 @@ function clearMcpRedirectCache() {
145
145
  fetch('https://mcp.apify.com/', {
146
146
  method: 'get',
147
147
  cache: 'reload',
148
+ headers: {
149
+ Accept: 'text/html',
150
+ },
148
151
  }).then(() => {
149
152
  // Cache cleared successfully
150
153
  }).catch(() => {