diff --git a/src/components/AvailableChangelogFeeds.astro b/src/components/AvailableChangelogFeeds.astro new file mode 100644 index 00000000000000..cfde0f469f0eeb --- /dev/null +++ b/src/components/AvailableChangelogFeeds.astro @@ -0,0 +1,113 @@ +--- +import { Aside } from "@astrojs/starlight/components"; + +import AnchorHeading from "./AnchorHeading.astro"; +import RSSButton from "./RSSButton.astro"; +import Details from "./Details.astro"; + +import { getCollection } from "astro:content"; +import { getChangelogs } from "~/util/changelog"; + +const changelogs = await getChangelogs({}); +const productsInChangelog = changelogs.flatMap((entry) => + entry.data.products.map((product) => product.id), +); + +const products = await getCollection("products", (entry) => { + return productsInChangelog.includes(entry.id); +}); + +const productsByGroup = Object.entries( + Object.groupBy( + products.filter((product) => Boolean(product.data.product.group)), + (product) => product.data.product.group, + ), +).sort(); +--- + + + + +

+ This feed contains entries for all Cloudflare products in the changelog: +

+ + + +

+ Cloudflare also offers RSS feeds scoped to specific product areas or products + in the changelog. +

+ +{ + productsByGroup.map(([group, products]) => ( + <> + +

+ This feed is for all {group} products in the changelog:{" "} + +

+
+ +
+ {group === "Application security" && ( + + )} + {group === "Core platform" && ( + + )} + + )) +} diff --git a/src/components/RSSButton.astro b/src/components/RSSButton.astro new file mode 100644 index 00000000000000..b665311f510367 --- /dev/null +++ b/src/components/RSSButton.astro @@ -0,0 +1,27 @@ +--- +import { z } from "astro:schema"; +import { Icon } from "@astrojs/starlight/components"; + +const props = z + .object({ + changelog: z + .string() + .transform((val) => val.toLowerCase().replaceAll(" ", "-")), + }) + .or( + z.object({ + href: z.string(), + }), + ); + +const input = props.parse(Astro.props); +--- + + + Subscribe to RSS + + diff --git a/src/content/docs/fundamentals/new-features/available-rss-feeds.mdx b/src/content/docs/fundamentals/new-features/available-rss-feeds.mdx new file mode 100644 index 00000000000000..99b476a1857213 --- /dev/null +++ b/src/content/docs/fundamentals/new-features/available-rss-feeds.mdx @@ -0,0 +1,13 @@ +--- +title: Available RSS Feeds +pcx_content_type: reference +description: Read about the various RSS feeds available for Cloudflare's changelogs. +--- + +import AvailableChangelogFeeds from "~/components/AvailableChangelogFeeds.astro"; + +Cloudflare offers various RSS feeds as part of our [changelog](/changelog/), which helps you stay up to date on new features and functionality. + +For more details on how these feeds are structured, refer to [Consuming RSS Feeds](/fundamentals/new-features/consuming-rss-feeds/). + + diff --git a/src/content/docs/fundamentals/new-features/consuming-rss-feeds.mdx b/src/content/docs/fundamentals/new-features/consuming-rss-feeds.mdx new file mode 100644 index 00000000000000..16e1c43b0fb486 --- /dev/null +++ b/src/content/docs/fundamentals/new-features/consuming-rss-feeds.mdx @@ -0,0 +1,38 @@ +--- +title: Consuming RSS Feeds +pcx_content_type: reference +description: Learn how to consume our changelog RSS feeds. +--- + +Our [changelogs](/changelog/) are published to [various RSS feeds](/fundamentals/new-features/available-rss-feeds/) with HTML in the `` tag. + +In feeds with multiple products, such as the global or product-area feeds, the products associated with a given entry are in the `` tag. + +A single product will also appear in the custom `` tag for legacy reasons, but we recommend you use the `` + +## Example XML + +```xml + + + Cloudflare changelogs + Updates to various Cloudflare products + https://developers.cloudflare.com/changelog/ + + Agents, Workers, Workflows - Build AI Agents with Example Prompts + https://developers.cloudflare.com/changelog/2025-02-14-example-ai-prompts/ + https://developers.cloudflare.com/changelog/2025-02-14-example-ai-prompts/ + +

+ We've added an example prompt to help you get started with building AI agents and applications on Cloudflare ... +

+
+ Fri, 14 Feb 2025 19:00:00 GMT + Agents + Agents + Workers + Workflows +
+
+
+``` diff --git a/src/content/docs/fundamentals/new-features/index.mdx b/src/content/docs/fundamentals/new-features/index.mdx new file mode 100644 index 00000000000000..be50195e47d546 --- /dev/null +++ b/src/content/docs/fundamentals/new-features/index.mdx @@ -0,0 +1,12 @@ +--- +pcx_content_type: concept +title: New features +sidebar: + order: 5 +--- + +At Cloudflare, we are constantly innovating and improving our products. + +The best way to stay up to date with this innovation is to read our [changelog](/changelog/). + +If you prefer to consume these updates in another format, we also offer [RSS feeds](/fundamentals/new-features/available-rss-feeds/).