From 41ddf9e5ae2f4a318813227e27eb5a29bdcf2571 Mon Sep 17 00:00:00 2001 From: patrikbraborec Date: Fri, 29 Aug 2025 10:20:10 +0200 Subject: [PATCH] fix: Disable LLM buttons on changelog pages --- apify-docs-theme/src/theme/DocItemContent/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 (