Skip to content
Open
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
14 changes: 0 additions & 14 deletions .agents/references/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -741,20 +741,6 @@ To add or update stats, edit `src/components/PublicStats.astro`.

---

## ExternalResources

Pulls demo apps from the central `src/content/apps/index.yaml` collection, filtered by tags and products.

```mdx
import { ExternalResources } from "~/components";

<ExternalResources type="apps" tags={["AI"]} products={["Workers"]} />
```

Props: `type` (required, `"apps"`), `tags` (string array, filter by tag), `products` (string array, filter by product), `cloudflareOnly` (boolean, default `true`).

---

## ResourcesBySelector

Displays a filterable list of docs pages pulled by `pcx_content_type`, `tags`, and/or `products` frontmatter. Used on example and tutorial index pages.
Expand Down
2 changes: 1 addition & 1 deletion .agents/references/style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ All components are imported from `~/components`. Imports must appear after the f
| `DirectoryListing` | Auto-generated child page listing for nav/overview pages |
| `ListTutorials` | Auto-generated tutorial table for the current product |
| `ResourcesBySelector` | Filterable list of pages by `pcx_content_type`, tags, or products |
| `ExternalResources` | Demo apps from central YAML collection, filtered by tags/products |
| `PublicStats` | Inline live statistic (data centers, bandwidth, etc.) |
| `YouTube` | Embed a YouTube video by ID |
| `YouTubeVideos` | Grid of YouTube videos for a product from `src/content/videos/` |
| `Stream` | Embed a Cloudflare Stream video by ID or collection file |
| `APIRequest` | Generate a `curl` command from the Cloudflare OpenAPI schema |
| `CURL` | Generate a `curl` command for arbitrary URLs |
Expand Down
1 change: 1 addition & 0 deletions public/__redirects
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@
/email-routing/enable-email-routing/ /email-routing/get-started/enable-email-routing/ 301
/email-routing/get-started/email-addresses/ /email-routing/setup/email-routing-addresses/ 301
/email-routing/known-limitations/ /email-routing/postmaster/ 301
/email-routing/email-workers/demos/ /email-routing/email-workers/ 301
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a redirect for the deleted /style-guide/components/external-resources/ page as well (target /style-guide/components/index/).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a redirect for the deleted /style-guide/components/external-resources/ page as well (target /style-guide/components/index/).

# firewall
/firewall/api/cf-lists/ /waf/tools/lists/lists-api/ 301
/firewall/api/cf-lists/endpoints/ /waf/tools/lists/lists-api/endpoints/ 301
Expand Down
51 changes: 0 additions & 51 deletions src/components/ExternalResources.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 @@ -19,7 +19,6 @@ export { default as Description } from "./Description.astro";
export { default as Details } from "./Details.astro";
export { default as DirectoryListing } from "./DirectoryListing.astro";
export { default as Example } from "./Example.astro";
export { default as ExternalResources } from "./ExternalResources.astro";
export { default as ExtraFlagDetails } from "./ExtraFlagDetails.astro";
export { default as Feature } from "./Feature.astro";
export { default as FeatureTable } from "./FeatureTable.astro";
Expand Down
5 changes: 0 additions & 5 deletions src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { granularControlApplicationsCollectionConfig } from "./content/collectio
import { middlecacheLoader } from "./util/custom-loaders";

import {
appsSchema,
catalogModelsSchema,
changelogSchema,
baseSchema,
Expand Down Expand Up @@ -113,10 +112,6 @@ export const collections = {
loader: file("src/content/videos/index.yaml"),
schema: videosSchema,
}),
apps: defineCollection({
loader: file("src/content/apps/index.yaml"),
schema: appsSchema,
}),
"warp-releases": defineCollection({
loader: dataLoader("warp-releases"),
schema: warpReleasesSchema,
Expand Down
219 changes: 0 additions & 219 deletions src/content/apps/index.yaml

This file was deleted.

17 changes: 9 additions & 8 deletions src/content/docs/d1/demos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ products:
- d1
---

import { ExternalResources, GlossaryTooltip, ResourcesBySelector } from "~/components"
import { GlossaryTooltip, ResourcesBySelector } from "~/components";

Learn how you can use D1 within your existing application and architecture.

Expand All @@ -24,14 +24,15 @@ To simulate how read replication can improve a worst case latency scenario, sele
You can find this in the **Database location hint** dropdown.
:::

## Demos

Explore the following <GlossaryTooltip term="demo application">demo applications</GlossaryTooltip> for D1.

<ExternalResources type="apps" products={["D1"]} />

## Reference architectures

Explore the following <GlossaryTooltip term="reference architecture">reference architectures</GlossaryTooltip> that use D1:

<ResourcesBySelector types={["reference-architecture","design-guide","reference-architecture-diagram"]} products={["d1"]} />
<ResourcesBySelector
types={[
"reference-architecture",
"design-guide",
"reference-architecture-diagram",
]}
products={["d1"]}
/>
17 changes: 9 additions & 8 deletions src/content/docs/durable-objects/demos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ products:
- durable-objects
---

import { ExternalResources, GlossaryTooltip, ResourcesBySelector } from "~/components"
import { GlossaryTooltip, ResourcesBySelector } from "~/components";

Learn how you can use a <GlossaryTooltip term = "Durable Object">Durable Object</GlossaryTooltip> within your existing application and architecture.

## Demos

Explore the following <GlossaryTooltip term="demo application">demo applications</GlossaryTooltip> for Durable Objects.

<ExternalResources type="apps" products={["Durable Objects"]} />

## Reference architectures

Explore the following <GlossaryTooltip term="reference architecture">reference architectures</GlossaryTooltip> that use Durable Objects:

<ResourcesBySelector types={["reference-architecture","design-guide","reference-architecture-diagram"]} products={["durable-objects"]} />
<ResourcesBySelector
types={[
"reference-architecture",
"design-guide",
"reference-architecture-diagram",
]}
products={["durable-objects"]}
/>
Loading