From bbf7be68baf5a56adced4b90fb790e2e3ef988e7 Mon Sep 17 00:00:00 2001 From: kodster28 Date: Wed, 14 May 2025 08:09:22 -0500 Subject: [PATCH] [Chore] Release notes - remove top-level page keep rss for now --- public/__redirects | 1 + src/pages/release-notes/index.astro | 184 ---------------------------- 2 files changed, 1 insertion(+), 184 deletions(-) delete mode 100644 src/pages/release-notes/index.astro diff --git a/public/__redirects b/public/__redirects index ce1505f6f16ee9..daa4e4d81ebd98 100644 --- a/public/__redirects +++ b/public/__redirects @@ -36,6 +36,7 @@ ## legacy /changelog/index.xml /release-notes/index.xml 301 +/release-notes/ /changelog/ 301 # 1dot1_redirect /1.1.1.1/1.1.1.1-for-families/ /1.1.1.1/setup/ 301 diff --git a/src/pages/release-notes/index.astro b/src/pages/release-notes/index.astro deleted file mode 100644 index f074c6b14d42f0..00000000000000 --- a/src/pages/release-notes/index.astro +++ /dev/null @@ -1,184 +0,0 @@ ---- -import StarlightPage, { - type StarlightPageProps, -} from "@astrojs/starlight/components/StarlightPage.astro"; -import { Aside } from "~/components"; -import { marked } from "marked"; -import { format } from "date-fns"; -import { getReleaseNotes } from "~/util/release-notes"; -import { getEntry } from "astro:content"; - -const { products, productAreas, releaseNotes } = await getReleaseNotes(); - -const props = { - frontmatter: { - title: "Release notes", - template: "splash", - noindex: true, - }, - hideBreadcrumbs: true, -} as StarlightPageProps; ---- - - - -

- Subscribe to all release notes via RSS. -

- -

- Unless otherwise noted, all dates refer to the release date of the change. -

-
- - - - - { - releaseNotes.map(([date, entries]) => ( -
-
-

{format(date, "do MMMM yyyy")}

-
-
- {entries?.map(async (entry) => { - let title = entry.title; - let description = entry.description || ""; - - if (entry.individual_page) { - const page = await getEntry( - "docs", - entry.individual_page.slice(1, -1), - ); - - if (!page) { - throw new Error( - `[Changelog] Unable to load page ${entry.individual_page}.`, - ); - } - - title = `${entry.product} - ${page.data.title}`; - description = `For more details, refer to the dedicated page for [${title}](${entry.individual_page}).`; - } - - return ( -
-

- {entry.product} -

- {title && ( -

- {title} -

- )} - -
- ); - })} -
-
- )) - } -
- - - -