Skip to content

Commit 228f3d4

Browse files
authored
fix: Remove Claude integration (#1989)
1 parent a3ba541 commit 228f3d4

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

apify-docs-theme/src/theme/LLMButtons/index.jsx

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import clsx from 'clsx';
22
import React, { useCallback, useState } from 'react';
33

44
import {
5-
AnthropicIcon,
65
ChatGptIcon,
76
CheckIcon,
87
ChevronDownIcon,
@@ -38,13 +37,6 @@ const DROPDOWN_OPTIONS = [
3837
Icon: ChatGptIcon,
3938
value: 'openInChatGPT',
4039
},
41-
{
42-
label: 'Open in Claude',
43-
description: 'Ask questions about this page',
44-
showExternalIcon: true,
45-
Icon: AnthropicIcon,
46-
value: 'openInClaude',
47-
},
4840
{
4941
label: 'Open in Perplexity',
5042
description: 'Ask questions about this page',
@@ -78,27 +70,6 @@ const onOpenInChatGPTClick = () => {
7870
}
7971
};
8072

81-
const onOpenInClaudeClick = () => {
82-
if (window.analytics) {
83-
window.analytics.track('Clicked', {
84-
app: 'docs',
85-
button_text: 'Open in Claude',
86-
element: 'llm-buttons.openInClaude',
87-
});
88-
}
89-
90-
const prompt = getPrompt(window.location.href);
91-
92-
try {
93-
window.open(
94-
`https://claude.ai/new?q=${encodeURIComponent(prompt)}`,
95-
'_blank',
96-
);
97-
} catch (error) {
98-
console.error('Error opening Claude:', error);
99-
}
100-
};
101-
10273
const onOpenInPerplexityClick = () => {
10374
if (window.analytics) {
10475
window.analytics.track('Clicked', {
@@ -256,9 +227,6 @@ export default function LLMButtons({ isApiReferencePage = false }) {
256227
case 'openInChatGPT':
257228
onOpenInChatGPTClick();
258229
break;
259-
case 'openInClaude':
260-
onOpenInClaudeClick();
261-
break;
262230
case 'openInPerplexity':
263231
onOpenInPerplexityClick();
264232
break;

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)