Skip to content

Commit 14c904c

Browse files
Update create/changelogs.mdx
Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
1 parent 086a264 commit 14c904c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

create/changelogs.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,29 @@ The RSS feed publishes entries when you add new `Update` components and when mod
106106

107107
RSS feed entries contain pure Markdown only. Components, code, and HTML elements are excluded. Use the `rss` property to provide alternative text descriptions for RSS subscribers when your updates include content that is excluded.
108108

109+
#### Importing snippets with Update components
110+
111+
You can import snippets containing `Update` components into your changelog pages. Updates from imported snippets are automatically included in the RSS feed:
112+
113+
```mdx changelog.mdx
114+
---
115+
title: "Changelog"
116+
rss: true
117+
---
118+
119+
import Updates from "/snippets/updates.mdx";
120+
121+
<Updates />
122+
```
123+
124+
```mdx snippets/updates.mdx
125+
<Update label="January 2025" description="New features">
126+
Added support for dark mode across all pages.
127+
</Update>
128+
```
129+
130+
This approach lets you organize your changelog updates in separate snippet files while maintaining RSS feed functionality.
131+
109132
```xml Example RSS feed
110133
<?xml version="1.0" encoding="UTF-8"?>
111134
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">

0 commit comments

Comments
 (0)