Skip to content

Commit f3fb5ac

Browse files
remove ChatGPT
1 parent b269e31 commit f3fb5ac

File tree

2 files changed

+8
-48
lines changed

2 files changed

+8
-48
lines changed

hugo_stats.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"classes": [
55
"--mount",
66
"--tmpfs",
7-
"-mr-20",
87
"-mt-0.5",
98
"-mt-8",
109
"-top-10",
@@ -193,7 +192,6 @@
193192
"border-blue",
194193
"border-divider-light",
195194
"border-gray-200",
196-
"border-gray-300",
197195
"border-gray-400",
198196
"border-green-400",
199197
"border-l-2",
@@ -239,9 +237,7 @@
239237
"dark:block",
240238
"dark:border-b-blue-600",
241239
"dark:border-divider-dark",
242-
"dark:border-gray-100",
243240
"dark:border-gray-400",
244-
"dark:border-gray-50",
245241
"dark:border-gray-700",
246242
"dark:border-green-400",
247243
"dark:border-l-magenta-dark",
@@ -266,7 +262,6 @@
266262
"dark:text-blue-700",
267263
"dark:text-divider-dark",
268264
"dark:text-gray",
269-
"dark:text-gray-100",
270265
"dark:text-gray-200",
271266
"dark:text-gray-300",
272267
"dark:text-gray-400",
@@ -554,7 +549,6 @@
554549
"text-gray-300",
555550
"text-gray-400",
556551
"text-gray-500",
557-
"text-gray-600",
558552
"text-gray-800",
559553
"text-left",
560554
"text-lg",
@@ -579,7 +573,6 @@
579573
"underline-offset-2",
580574
"w-2",
581575
"w-5",
582-
"w-56",
583576
"w-65",
584577
"w-8",
585578
"w-[1200px]",

layouts/partials/md-dropdown.html

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@
5757
<div class="text-base">Ask questions with Docs AI</div>
5858
</div>
5959
</button>
60-
<button
61-
onclick="openInChatGPT()"
62-
data-heap-id="search-docs-ai-button"
63-
class="sub-button"
64-
>
65-
<span class="icon-svg mt-[2px] text-base leading-none">
66-
{{ partial "icon" "/icons/openai.svg" }}
67-
</span>
68-
<div class="leading-tight">
69-
<div class="text-base">Open in ChatGPT</div>
70-
</div>
71-
</button>
72-
7360
<button
7461
onclick="openInClaude()"
7562
data-heap-id="search-docs-ai-button"
@@ -86,7 +73,7 @@
8673
</div>
8774
</details>
8875

89-
<script>
76+
<script>
9077
function getCurrentPlaintextUrl() {
9178
const url = window.location.href.split("#")[0].replace(/\/$/, "");
9279
return `${url}/index.md`;
@@ -131,31 +118,11 @@
131118
}
132119
}
133120

134-
function openInChatGPT() {
135-
const markdownUrl = getCurrentPlaintextUrl();
136-
const prompt = `Read ${markdownUrl} so I can ask questions about it.`;
137-
const encodedText = encodeURIComponent(prompt);
138-
const chatGPTUrl = `https://chat.openai.com/?q=${encodedText}`;
139-
window.open(chatGPTUrl, "_blank");
140-
}
141-
142-
function openInClaude() {
143-
const markdownUrl = getCurrentPlaintextUrl();
144-
const prompt = `Read ${markdownUrl} so I can ask questions about it.`;
145-
const encodedText = encodeURIComponent(prompt);
146-
const claudeUrl = `https://claude.ai/new?q=${encodedText}`;
147-
window.open(claudeUrl, '_blank');
148-
}
149-
150-
document.addEventListener("click", function (event) {
151-
const dropdown = document.getElementById("markdownDropdown");
152-
153-
if (!dropdown) return;
154-
155-
const isClickInside = dropdown.contains(event.target);
156-
157-
if (!isClickInside && dropdown.hasAttribute("open")) {
158-
dropdown.removeAttribute("open");
159-
}
160-
});
121+
function openInClaude() {
122+
const markdownUrl = getCurrentPlaintextUrl();
123+
const prompt = `Read ${markdownUrl} so I can ask questions about it.`;
124+
const encodedText = encodeURIComponent(prompt);
125+
const claudeUrl = `https://claude.ai/new?q=${encodedText}`;
126+
window.open(claudeUrl, '_blank');
127+
}
161128
</script>

0 commit comments

Comments
 (0)