diff --git a/apify-docs-theme/src/theme/DocItemContent/index.js b/apify-docs-theme/src/theme/DocItemContent/index.js index f7a45f2695..374e51ebe0 100644 --- a/apify-docs-theme/src/theme/DocItemContent/index.js +++ b/apify-docs-theme/src/theme/DocItemContent/index.js @@ -54,7 +54,13 @@ export default function DocItemContent({ children }) { '/cli', ]; - const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path)); + // Define paths that should not show LLMButtons (e.g., changelog pages) + const disallowedPaths = [ + '/changelog', + ]; + + const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path)) + && !disallowedPaths.some((path) => location.pathname.includes(path)); return (