Skip to content

Commit 1027b17

Browse files
committed
fix: update Agents toolkit nav links, icons, and remove CopyPageButton
1 parent 5b0f825 commit 1027b17

5 files changed

Lines changed: 12 additions & 246 deletions

File tree

src/components/AgentsToolkit.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
PiCopyDuotone,
33
PiArrowSquareOutLight,
4-
PiPlugsConnectedLight,
4+
PiSparkleDuotone,
55
PiCheckCircleLight,
66
} from "react-icons/pi";
77
import { useState, useRef, useCallback } from "react";
@@ -183,15 +183,15 @@ export default function AgentsToolkit() {
183183

184184
const handleViewAIOptions = () => {
185185
track("agents toolkit clicked", { value: "view ai options" });
186-
window.open("/style-guide/ai-tooling/", "_blank");
186+
window.open("/agent-setup/", "_blank");
187187
};
188188

189189
const listOptions: ListOption[] = [
190190
{
191191
key: "ai-options",
192-
label: "Setup your agent",
193-
tooltip: "Explore AI tooling options for Cloudflare docs",
194-
icon: PiPlugsConnectedLight,
192+
label: "Agent setup",
193+
tooltip: "Setup your agent with the necessary tools to build on Cloudflare",
194+
icon: PiSparkleDuotone,
195195
onClick: handleViewAIOptions,
196196
},
197197
{

src/components/CopyPageButton.tsx

Lines changed: 0 additions & 231 deletions
This file was deleted.

src/components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export { default as CompatibilityFlag } from "./CompatibilityFlag.astro";
1414
export { default as CompatibilityFlags } from "./CompatibilityFlags.astro";
1515
export { default as ComponentUsage } from "./ComponentUsage.astro";
1616
export { default as ComponentsUsage } from "./ComponentsUsage.astro";
17-
export { default as CopyPageButton } from "./CopyPageButton.tsx";
1817
export { default as CURL } from "./CURL.astro";
1918
export { default as DashButton } from "./DashButton.astro";
2019
export { default as Description } from "./Description.astro";

src/components/overrides/PageTitle.astro

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import "astro-breadcrumbs/breadcrumbs.css";
77
88
import Description from "~/components/Description.astro";
99
import LastReviewed from "~/components/LastReviewed.astro";
10-
import CopyPageButton from "~/components/CopyPageButton.tsx";
1110
import ComponentUsage from "~/components/ComponentUsage.astro";
1211
1312
import { getEntry } from "astro:content";
@@ -97,11 +96,7 @@ if (!hideBreadcrumbs) {
9796
)
9897
}
9998

100-
{
101-
frontmatter.template !== "splash" && (
102-
<CopyPageButton client:idle />
103-
)
104-
}
99+
105100
</div>
106101

107102
{!hideTitle && <Default />}

src/util/sidebar.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,25 @@ export async function generateSidebar(group: Group) {
109109
const product = directory.find((p) => p.id === group.label);
110110
if (product) {
111111
const links = [
112+
["Agent setup", "/agent-setup/"],
113+
["Cloudflare Skills", "https://github.com/cloudflare/skills"],
114+
["Code Mode MCP Server", "https://github.com/cloudflare/mcp"],
115+
["Domain-specific MCP Servers", "https://github.com/cloudflare/mcp-server-cloudflare"],
112116
[`${product.data.name} llms.txt`, `${product.data.entry.url}llms.txt`],
113117
[
114118
`${product.data.name} llms-full.txt`,
115119
`${product.data.entry.url}llms-full.txt`,
116120
],
117121
["Cloudflare Docs llms.txt", "/llms.txt"],
118122
["Cloudflare Docs llms-full.txt", "/llms-full.txt"],
119-
["Cloudflare Skills", "/style-guide/ai-tooling/#skills"],
120123
];
121124

122125
group.entries.push({
123126
type: "group",
124-
label: "LLM resources",
127+
label: "Agent resources",
125128
entries: links.map(([label, href]) => ({
126129
type: "link",
127-
label,
130+
label: label.concat(externalLinkArrow),
128131
href,
129132
isCurrent: false,
130133
attrs: {

0 commit comments

Comments
 (0)