Skip to content

Commit aaa5552

Browse files
fix: Disable LLM buttons on changelog pages (#1863)
Related to: apify/workflows#215
1 parent f5f14e0 commit aaa5552

File tree

1 file changed

+7
-1
lines changed
  • apify-docs-theme/src/theme/DocItemContent

1 file changed

+7
-1
lines changed

apify-docs-theme/src/theme/DocItemContent/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ export default function DocItemContent({ children }) {
5454
'/cli',
5555
];
5656

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));
5864

5965
return (
6066
<div className={clsx(ThemeClassNames.docs.docMarkdown, 'markdown')}>

0 commit comments

Comments
 (0)