Skip to content

Commit 84fcb58

Browse files
Add llm buttons only if we render html
1 parent 466a3bf commit 84fcb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/DocItem/Content/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function DocItemContent({ children }) {
4949
'/platform',
5050
];
5151

52-
const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path));
52+
const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path) && !location.pathname.endsWith('.md'));
5353

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

0 commit comments

Comments
 (0)