diff --git a/package.json b/package.json
index 3bb9a288aa..e3a6f8f43f 100644
--- a/package.json
+++ b/package.json
@@ -33,7 +33,7 @@
"semver": "^7.6.0",
"sharp": "^0.33.2",
"shiki": "^1.1.7",
- "starlight-blog": "^0.7.0",
+ "starlight-blog": "^0.8.0",
"starlight-links-validator": "^0.8.0"
},
"engines": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3ce741b5ec..a45e2649d9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -48,8 +48,8 @@ importers:
specifier: ^1.1.7
version: 1.5.2
starlight-blog:
- specifier: ^0.7.0
- version: 0.7.0(@astrojs/starlight@0.23.0(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5)))(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5))
+ specifier: ^0.8.0
+ version: 0.8.2(@astrojs/starlight@0.23.0(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5)))(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5))
starlight-links-validator:
specifier: ^0.8.0
version: 0.8.0(@astrojs/starlight@0.23.0(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5)))(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5))
@@ -154,6 +154,9 @@ packages:
resolution: {integrity: sha512-Z9IYjuXSArkAUx3N6xj6+Bnvx8OdUSHA8YoOgyepp3+zJmtVYJIl/I18GozdJVW1p5u/CNpl3Km7/gwTJK85cw==}
engines: {node: ^18.17.1 || ^20.3.0 || >=21.0.0}
+ '@astrojs/rss@4.0.5':
+ resolution: {integrity: sha512-IyJVL6z09AQtxbgLaAwebT3T5YKe4oTHDesqydJv1KLHw+zEzzMCFuuNsEyxjiqu7df9+DDCpDXLj/WRiEUXvw==}
+
'@astrojs/rss@4.0.6':
resolution: {integrity: sha512-hpfHz6OZVD4ME1ZmpNQim0yV0AOetVFUHv0vmL8+Bw4GNcmL0ibGkGtMv+PY72HLJUVfDtizrBjfN5HHg+LScA==}
@@ -1797,6 +1800,11 @@ packages:
peerDependencies:
marked: '>=7.0.0'
+ marked-plaintify@1.0.1:
+ resolution: {integrity: sha512-KQhxtuVWf3Ij3YMiW4ArlgNOVmzOAlP0o/upsu2+h7Q4TCAwG4UvkYTteZF2sDDomXQnNSLmfyAhoR0gx2Orgw==}
+ peerDependencies:
+ marked: '>=7.0.0'
+
marked-smartypants@1.1.6:
resolution: {integrity: sha512-38rdxcV3+EHrvoHioSrgBDvOmFb+TNcszZggrl15qe4MEfQxBArfSgsGgFP0YqHlGy8Rgoyi4gN4ThBWzwNJeA==}
peerDependencies:
@@ -2396,8 +2404,8 @@ packages:
sprintf-js@1.0.3:
resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}
- starlight-blog@0.7.0:
- resolution: {integrity: sha512-QmCutR3qw1Nl7TFxbZ7Z17dczF1GpYI94Dy9S1OfZUFh3ThujFVVWzub6cwUnunow/NGVf2gwI/SUwC3OrVhfQ==}
+ starlight-blog@0.8.2:
+ resolution: {integrity: sha512-oIcc+gMOOR+aN8TQzZQDpstkuIPn1Lm3bG4NaQ8ntWvLueMns/rGXt8EC2/cGnEybYNMhV8/dciHk+2VB56WwQ==}
engines: {node: '>=18.14.1'}
peerDependencies:
'@astrojs/starlight': '>=0.22.1'
@@ -2835,6 +2843,11 @@ snapshots:
dependencies:
prismjs: 1.29.0
+ '@astrojs/rss@4.0.5':
+ dependencies:
+ fast-xml-parser: 4.3.6
+ kleur: 4.1.5
+
'@astrojs/rss@4.0.6':
dependencies:
fast-xml-parser: 4.3.6
@@ -4512,6 +4525,10 @@ snapshots:
dependencies:
marked: 12.0.2
+ marked-plaintify@1.0.1(marked@12.0.2):
+ dependencies:
+ marked: 12.0.2
+
marked-smartypants@1.1.6(marked@12.0.2):
dependencies:
marked: 12.0.2
@@ -5527,12 +5544,16 @@ snapshots:
sprintf-js@1.0.3: {}
- starlight-blog@0.7.0(@astrojs/starlight@0.23.0(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5)))(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5)):
+ starlight-blog@0.8.2(@astrojs/starlight@0.23.0(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5)))(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5)):
dependencies:
+ '@astrojs/rss': 4.0.5
'@astrojs/starlight': 0.23.0(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5))
astro: 4.8.6(@types/node@20.12.12)(typescript@5.4.5)
astro-remote: 0.3.2
github-slugger: 2.0.0
+ marked: 12.0.2
+ marked-plaintify: 1.0.1(marked@12.0.2)
+ ultrahtml: 1.5.3
starlight-links-validator@0.8.0(@astrojs/starlight@0.23.0(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5)))(astro@4.8.6(@types/node@20.12.12)(typescript@5.4.5)):
dependencies:
diff --git a/public/_redirects b/public/_redirects
index e844c7fd1c..3e37f3ae2c 100644
--- a/public/_redirects
+++ b/public/_redirects
@@ -4,6 +4,9 @@
/ko/* /:splat 302
/it/* /:splat 302
+# blog rss
+/blog.xml /blog/rss.xml 301
+
# Docs rework
/guides /start 301
diff --git a/src/content/docs/rss.mdx b/src/content/docs/rss.mdx
index d3d250b658..d3293b2ad7 100644
--- a/src/content/docs/rss.mdx
+++ b/src/content/docs/rss.mdx
@@ -6,5 +6,5 @@ i18nReady: true
import { LinkCard } from '@astrojs/starlight/components';
-
+
\ No newline at end of file
diff --git a/src/pages/blog.xml.ts b/src/pages/blog.xml.ts
deleted file mode 100644
index 96ae0cd3df..0000000000
--- a/src/pages/blog.xml.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-// This RSS includes only blog pages
-import rss from '@astrojs/rss';
-import { getCollection } from 'astro:content';
-import type { APIContext } from 'astro';
-
-// https://docs.astro.build/en/reference/api-reference/#endpoint-context
-export async function GET(context: APIContext) {
- const posts = await getCollection('docs', ({ id }) => {
- return id.startsWith('blog');
- });
-
- posts.sort((a, b) => {
- const dateA = a.data.date;
- const dateB = b.data.date;
- if (dateA && dateB) {
- if (dateA < dateB) return 1;
- if (dateA > dateB) return -1;
- return 0;
- } else return 0;
- });
-
- return rss({
- title: 'Tauri Blog',
- description: 'The cross-platform app building toolkit',
- site: context.site as URL,
- items: posts.map((post) => ({
- pubDate: post.data.date,
- description: post.data.excerpt,
- ...post.data,
- link: `/${post.slug}/`,
- })),
- });
-}