Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions apify-docs-theme/src/theme/LLMButtons/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import clsx from 'clsx';
import React, { useCallback, useState } from 'react';

import {
AnthropicIcon,
ChatGptIcon,
CheckIcon,
ChevronDownIcon,
Expand Down Expand Up @@ -38,13 +37,6 @@ const DROPDOWN_OPTIONS = [
Icon: ChatGptIcon,
value: 'openInChatGPT',
},
{
label: 'Open in Claude',
description: 'Ask questions about this page',
showExternalIcon: true,
Icon: AnthropicIcon,
value: 'openInClaude',
},
{
label: 'Open in Perplexity',
description: 'Ask questions about this page',
Expand Down Expand Up @@ -78,27 +70,6 @@ const onOpenInChatGPTClick = () => {
}
};

const onOpenInClaudeClick = () => {
if (window.analytics) {
window.analytics.track('Clicked', {
app: 'docs',
button_text: 'Open in Claude',
element: 'llm-buttons.openInClaude',
});
}

const prompt = getPrompt(window.location.href);

try {
window.open(
`https://claude.ai/new?q=${encodeURIComponent(prompt)}`,
'_blank',
);
} catch (error) {
console.error('Error opening Claude:', error);
}
};

const onOpenInPerplexityClick = () => {
if (window.analytics) {
window.analytics.track('Clicked', {
Expand Down Expand Up @@ -256,9 +227,6 @@ export default function LLMButtons({ isApiReferencePage = false }) {
case 'openInChatGPT':
onOpenInChatGPTClick();
break;
case 'openInClaude':
onOpenInClaudeClick();
break;
case 'openInPerplexity':
onOpenInPerplexityClick();
break;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.