From 920d71d91b72e94dcd94bab9d824c07baa45671a Mon Sep 17 00:00:00 2001 From: patrikbraborec Date: Tue, 26 Aug 2025 17:09:10 +0200 Subject: [PATCH 1/4] docs: Propagate LLM buttons to all docs --- src/theme/DocItem/Content/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/theme/DocItem/Content/index.js b/src/theme/DocItem/Content/index.js index 2d773b6f18..fedf7ec0fa 100644 --- a/src/theme/DocItem/Content/index.js +++ b/src/theme/DocItem/Content/index.js @@ -45,7 +45,10 @@ export default function DocItemContent({ children }) { '/api/v2/store', '/api/v2/logs', '/api/v2/users', + '/api/client', '/platform', + '/sdk', + '/cli' ]; const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path)); From d6020daf1f74d36b7055ad9ac22fdd2e9b253da1 Mon Sep 17 00:00:00 2001 From: patrikbraborec Date: Tue, 26 Aug 2025 17:19:01 +0200 Subject: [PATCH 2/4] Fix lint errors --- src/theme/DocItem/Content/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/DocItem/Content/index.js b/src/theme/DocItem/Content/index.js index fedf7ec0fa..9f0d1bc396 100644 --- a/src/theme/DocItem/Content/index.js +++ b/src/theme/DocItem/Content/index.js @@ -48,7 +48,7 @@ export default function DocItemContent({ children }) { '/api/client', '/platform', '/sdk', - '/cli' + '/cli', ]; const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path)); From e320b74746b36e40e3616dc7b412d71e0dbfe50f Mon Sep 17 00:00:00 2001 From: patrikbraborec Date: Wed, 27 Aug 2025 09:19:33 +0200 Subject: [PATCH 3/4] Add debug for LLM buttons --- src/theme/DocItem/Content/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/theme/DocItem/Content/index.js b/src/theme/DocItem/Content/index.js index 9f0d1bc396..0451183474 100644 --- a/src/theme/DocItem/Content/index.js +++ b/src/theme/DocItem/Content/index.js @@ -53,6 +53,8 @@ export default function DocItemContent({ children }) { const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path)); + console.log('debug: shouldShowLLMButtons', shouldShowLLMButtons); + return (
{syntheticTitle && {syntheticTitle}} From fba7af5aa72152f9595489b11f90f2722c9a0287 Mon Sep 17 00:00:00 2001 From: patrikbraborec Date: Wed, 27 Aug 2025 09:36:01 +0200 Subject: [PATCH 4/4] Remove debug log --- src/theme/DocItem/Content/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/theme/DocItem/Content/index.js b/src/theme/DocItem/Content/index.js index 0451183474..9f0d1bc396 100644 --- a/src/theme/DocItem/Content/index.js +++ b/src/theme/DocItem/Content/index.js @@ -53,8 +53,6 @@ export default function DocItemContent({ children }) { const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path)); - console.log('debug: shouldShowLLMButtons', shouldShowLLMButtons); - return (
{syntheticTitle && {syntheticTitle}}