Skip to content

Commit fc74f44

Browse files
committed
docs(rss): add auto-discovery section
1 parent 0380af0 commit fc74f44

File tree

1 file changed

+30
-1
lines changed
  • src/content/docs/docs/starlight/astro

1 file changed

+30
-1
lines changed

src/content/docs/docs/starlight/astro/rss.md

+30-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tableOfContents:
99
minHeadingLevel: 2
1010
maxHeadingLevel: 2
1111
rss: true
12-
pubDate: 2024-12-01
12+
pubDate: 2024-12-30
1313
---
1414

1515
- [Astro RSS Guide](https://docs.astro.build/guides/rss/)
@@ -243,3 +243,32 @@ pubDate: 2024-12-01
243243
});
244244
}
245245
```
246+
247+
## Enable [RSS Auto-discovery](https://www.rssboard.org/rss-autodiscovery)
248+
249+
- [Astro Docs](https://docs.astro.build/en/guides/rss/#enabling-rss-feed-auto-discovery)
250+
251+
Update the `defineConfig.integrations.starlight.head` in the project `astro.config.mjs` file with the following
252+
253+
```javascript title="astro.config.mjs" {6-16}
254+
export default defineConfig({
255+
// ...
256+
integrations: [
257+
starlight({
258+
title: 'Lucero',
259+
head: [
260+
{
261+
tag: 'link',
262+
attrs: {
263+
rel: 'alternate',
264+
type: 'application/rss+xml',
265+
title: 'Lucero',
266+
href: 'https://indyandie.github.io/lucero/rss.xml',
267+
},
268+
},
269+
],
270+
// ...
271+
}),
272+
],
273+
})
274+
```

0 commit comments

Comments
 (0)