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
208 changes: 116 additions & 92 deletions .agents/references/components.md

Large diffs are not rendered by default.

216 changes: 111 additions & 105 deletions .agents/references/style-guide.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ export default defineConfig({
"/workers-ai/models/**",
"/markdown.zip",
"/style-guide/index.md",
"/videos/**",
"/agent-setup/",
"/videos/**",
],
}),
]
Expand Down
2 changes: 1 addition & 1 deletion src/components/ExternalResources.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import rehypeExternalLinks from "~/plugins/rehype/external-links";
type Props = z.infer<typeof props>;

const props = z.object({
type: z.enum(["apps", "videos"]),
type: z.enum(["apps"]),
tags: z.string().array().optional(),
products: z.string().array().optional(),
cloudflareOnly: z.boolean().default(true),
Expand Down
37 changes: 0 additions & 37 deletions src/components/YouTubeVideos.astro

This file was deleted.

1 change: 0 additions & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export { default as WorkersArchitectureDiagram } from "./WorkersArchitectureDiag
export { default as WorkersIsolateDiagram } from "./WorkersIsolateDiagram.astro";
export { default as WorkersTemplates } from "./WorkersTemplates.astro";
export { default as YouTube } from "./YouTube.astro";
export { default as YouTubeVideos } from "./YouTubeVideos.astro";

// Taken from Astro
export { default as ListCard } from "./astro/ListCard.astro";
Expand Down
8 changes: 1 addition & 7 deletions src/content/docs/ai-gateway/tutorials/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@ products:
- ai-gateway
---

import { GlossaryTooltip, ListTutorials, YouTubeVideos } from "~/components";
import { GlossaryTooltip, ListTutorials } from "~/components";

View <GlossaryTooltip term="tutorial">tutorials</GlossaryTooltip> to help you get started with AI Gateway.

## Docs

<ListTutorials />

## Videos

<YouTubeVideos products={["AI Gateway"]} />
2 changes: 1 addition & 1 deletion src/content/docs/cloudflare-one/video-tutorials.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ import { CardGrid, LinkCard } from "~/components";
<LinkCard
title="Set up Cloudflare Tunnel"
description="Set up Cloudflare Tunnel to create a secure link between your private environment and the Cloudflare edge."
href="/videos/set-up-cf-tunnel"
href="/videos/set-up-cf-tunnel/"
/>
</CardGrid>
8 changes: 1 addition & 7 deletions src/content/docs/d1/tutorials/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ products:
- d1
---

import { GlossaryTooltip, ListTutorials, YouTubeVideos } from "~/components";
import { GlossaryTooltip, ListTutorials } from "~/components";

View <GlossaryTooltip term="tutorial">tutorials</GlossaryTooltip> to help you get started with D1.

## Docs

<ListTutorials />

## Videos

<YouTubeVideos products={["D1"]} />
8 changes: 1 addition & 7 deletions src/content/docs/kv/tutorials/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ products:
- kv
---

import { GlossaryTooltip, ListTutorials, YouTubeVideos } from "~/components";
import { GlossaryTooltip, ListTutorials } from "~/components";

View <GlossaryTooltip term="tutorial">tutorials</GlossaryTooltip> to help you get started with KV.

## Docs

<ListTutorials />

## Videos

<YouTubeVideos products={["KV"]} />
9 changes: 1 addition & 8 deletions src/content/docs/pages/tutorials/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

pcx_content_type: navigation
title: Tutorials
description: Guided tutorials to help you build and deploy projects on Cloudflare Pages.
Expand All @@ -10,14 +9,8 @@ products:
- pages
---

import { GlossaryTooltip, ListTutorials, YouTubeVideos } from "~/components";
import { GlossaryTooltip, ListTutorials } from "~/components";

View <GlossaryTooltip term="tutorial">tutorials</GlossaryTooltip> to help you get started with Pages.

## Docs

<ListTutorials />

## Videos

<YouTubeVideos products={["Pages"]} />
9 changes: 1 addition & 8 deletions src/content/docs/queues/tutorials/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

pcx_content_type: navigation
title: Tutorials
description: Step-by-step Cloudflare Queues tutorials for common messaging patterns.
Expand All @@ -10,12 +9,6 @@ products:
- queues
---

import { ListTutorials, YouTubeVideos } from "~/components";

## Docs
import { ListTutorials } from "~/components";

<ListTutorials />

## Videos

<YouTubeVideos products={["Queues"]} />
12 changes: 1 addition & 11 deletions src/content/docs/r2/tutorials/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,8 @@ products:
- r2
---

import {
GlossaryTooltip,
ListTutorials,
YouTubeVideos,
} from "~/components";
import { GlossaryTooltip, ListTutorials } from "~/components";

View <GlossaryTooltip term="tutorial">tutorials</GlossaryTooltip> to help you get started with R2.

## Docs

<ListTutorials />

## Videos

<YouTubeVideos products={["R2"]} />
10 changes: 4 additions & 6 deletions src/content/docs/style-guide/components/external-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ products:
- style-guide
---

The `ExternalResources` component pulls from a central list of [apps](https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/apps/index.yaml) and [videos](https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/videos/index.yaml).
The `ExternalResources` component pulls from a central list of [apps](https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/apps/index.yaml).

## Import

Expand All @@ -21,10 +21,8 @@ import { ExternalResources } from "~/components";
import { ExternalResources } from "~/components";

## Demo apps
<ExternalResources type="apps" tags={["AI"]} products={["Pages"]} />

## Videos
<ExternalResources type="videos" tags={["AI"]} />
<ExternalResources type="apps" tags={["AI"]} products={["Pages"]} />
```

## Props
Expand All @@ -33,9 +31,9 @@ import { ExternalResources } from "~/components";

**required**

**type:** `"apps" | "videos"`
**type:** `"apps"`

The type of resources to show, apps or videos.
The type of resources to show.

### `tags`

Expand Down
26 changes: 0 additions & 26 deletions src/content/docs/style-guide/components/youtube-videos.mdx

This file was deleted.

8 changes: 1 addition & 7 deletions src/content/docs/vectorize/tutorials/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ products:
- vectorize
---

import { GlossaryTooltip, ListTutorials, YouTubeVideos } from "~/components";
import { GlossaryTooltip, ListTutorials } from "~/components";

View <GlossaryTooltip term="tutorial">tutorials</GlossaryTooltip> to help you get started with Vectorize.

## Docs

<ListTutorials />

## Videos

<YouTubeVideos products={["Vectorize"]} />
10 changes: 1 addition & 9 deletions src/content/docs/workers-ai/guides/tutorials/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,8 @@ products:
- workers-ai
---

import { GlossaryTooltip, ListTutorials, YouTubeVideos, Render } from "~/components";
import { GlossaryTooltip, ListTutorials, Render } from "~/components";

View <GlossaryTooltip term="tutorial">tutorials</GlossaryTooltip> to help you get started with Workers AI.

## Docs

<ListTutorials />

## Videos

Also, explore our video resources on Workers AI:

<YouTubeVideos products={["Workers AI"]} />
8 changes: 1 addition & 7 deletions src/content/docs/workers/tutorials/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ products:
- workers
---

import { GlossaryTooltip, ListTutorials, YouTubeVideos, Render } from "~/components";
import { GlossaryTooltip, ListTutorials, Render } from "~/components";

View <GlossaryTooltip term="tutorial">tutorials</GlossaryTooltip> to help you get started with Workers.

## Docs

<ListTutorials />

## Videos

<YouTubeVideos products={["Workers"]} />
Loading