Skip to content

Commit 77f05d1

Browse files
Update src/theme/DocItem/Content/index.js
Co-authored-by: František Nesveda <fnesveda@users.noreply.github.com>
1 parent 1427dd9 commit 77f05d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/theme/DocItem/Content/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export default function DocItemContent({ children }) {
2323
const syntheticTitle = useSyntheticTitle();
2424
const location = useLocation();
2525

26-
// Define the allowed API v2 paths that should show LLMButtons (tag/info pages)
26+
// Define the allowed paths that should show LLMButtons (tag/info pages)
2727
// The logic is handled here, and also in docusaurus.config.js (see docusaurus-plugin-openapi-docs)
28-
const allowedApiV2Paths = [
28+
const allowedPaths = [
2929
'/api/v2/getting-started',
3030
'/api/v2/actors',
3131
'/api/v2/actors-actor-versions',
@@ -49,7 +49,7 @@ export default function DocItemContent({ children }) {
4949
'/platform',
5050
];
5151

52-
const shouldShowLLMButtons = allowedApiV2Paths.some((path) => location.pathname.startsWith(path));
52+
const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path));
5353

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

0 commit comments

Comments
 (0)