Skip to content

Commit 7ea7fa3

Browse files
committed
Merge branch 'kathryn/changelogs-guide' of https://github.com/mintlify/docs into kathryn/changelogs-guide
2 parents 3afd6a5 + d55167e commit 7ea7fa3

File tree

5 files changed

+54
-23
lines changed

5 files changed

+54
-23
lines changed

changelog.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: "Product Updates"
33
description: "New updates and improvements"
4-
mode: "center"
54
---
65

76
<Update label="May 2025">

components/update.mdx

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,24 @@ Use the `Update` component to display changelog entries, version updates, and re
2222
### Features
2323
- Responsive design
2424
- Anchor for each update
25+
- Generated RSS feed entry for each update
2526
</Update>
2627

2728
## How to use
2829

2930
```mdx Update example
30-
<Update label="2024-10-12" description="v0.1.1">
31-
This is how you use a changelog with a label
32-
and a description.
33-
</Update>
34-
<Update label="2024-10-11" description="v0.1.0">
35-
This is how you use a changelog with a label
36-
and a description.
31+
<Update label="2024-10-11" description="v0.1.0" tags={["Mintlify"]}>
32+
This is how you use a changelog with a label, description,
33+
and tags.
3734
</Update>
3835
```
3936

40-
Use multiple `Update` components to create changelogs. Each `label` creates an anchor and an item in the table of contents.
37+
Use multiple `Update` components to create [changelogs](/guides/changelogs).
4138

4239
## Props
4340

4441
<ResponseField name="label" type="string" required>
45-
Label for the update. Appears to the left of the update and creates an anchor link.
42+
Label for the update. Appears to the left of the update and creates an anchor link. For this reason, labels should be unique.
4643
</ResponseField>
4744

4845
<ResponseField name="tags" type="string[]">
@@ -53,6 +50,21 @@ Use multiple `Update` components to create changelogs. Each `label` creates an a
5350
Description of the update. Appears below the label and tag.
5451
</ResponseField>
5552

56-
<ResponseField name="rss" type="object: { title: string; description: string; }">
57-
The title and description that will appear in the RSS feed entry. Learn more about [subscribable changelogs](/guides/changelogs).
53+
<ResponseField name="rss" type="object">
54+
Title and description that will appear in the RSS feed entry for the update.
55+
56+
```md
57+
<Update label="v1.0.1" rss={{ title: "v1.0.1 released", description: "Bug fixes and improvements" }}>
58+
# What's New in v1.0.1
59+
60+
* Bug fixes
61+
* Improvements
62+
</Update>
63+
```
64+
65+
<div style={{ border: '2px solid #ff00ff' }}>
66+
TODO: insert screenshot of RSS feed with title and description
67+
</div>
68+
69+
Learn more about [subscribable changelogs](/guides/changelogs#subscribable-changelogs).
5870
</ResponseField>

docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
"react-components",
119119
"settings/custom-scripts",
120120
"settings/seo",
121+
"guides/changelogs",
121122
"guides/hidden-pages",
122123
"settings/broken-links",
123124
"guides/monorepo",
@@ -492,4 +493,4 @@
492493
"destination": "authentication-personalization/personalization-setup"
493494
}
494495
]
495-
}
496+
}

guides/changelogs.mdx

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,17 @@ Adding a changelog page to your docs is as simple as adding an MDX file with [Up
88

99
Check out the [Mintlify changelog](/changelog) as an example: you can include links, images and text content, and demos of your new product features in each update.
1010

11+
# Table of contents
12+
13+
Each `Update` element label is automatically used to create a table of contents on the right side of the page:
14+
15+
<Frame caption="Table of contents">
16+
![Changelogs with table of contents](/images/changelog-toc.png)
17+
</Frame>
18+
1119
# Tag filters
1220

13-
Adding tags to your Update components will make a tag list appear on the right side of your changelog document which can be used for filtering Update items:
21+
Adding tags to your `Update` components will make a tag list appear on the right side of your changelog document which can be used for filtering entries:
1422

1523
```mdx
1624
<Update label="v0.0.10" tags={["Wintergreen", "Spearmint"]}>
@@ -26,20 +34,31 @@ Adding tags to your Update components will make a tag list appear on the right s
2634
</Update>
2735
```
2836

29-
![Changelogs with filters](/images/changelog-filters-1.png)
37+
<Frame caption="Tag filters">
3038
![Changelogs with activated filters](/images/changelog-filters-2.png)
39+
</Frame>
40+
41+
<Tip>
42+
Some page settings may automatically hide the table of contents and changelog filters: when your page has mode: 'custom', 'center', or 'wide'. Learn more about [page modes](/pages#page-mode).
43+
</Tip>
3144

3245
# Subscribable changelogs
3346

34-
Using the Update component on your changelog page also automatically creates a subscribable RSS feed for your changes at the page URL + "/rss.xml"
47+
Using the `Update` component on your changelog page also automatically creates a subscribable RSS feed for your changes at the page URL + "/rss.xml".
3548

36-
After publishing a new Update on the page, it will be automatically included in the RSS feed for that page. RSS feeds can be integrated with Slack, email, or other subscription tools for your users.
49+
<div style={{ border: '2px solid #ff00ff' }}>
50+
TODO: insert XML screenshot
51+
</div>
3752

38-
You can customize the text included for each Update item with the rss property:
53+
After publishing a new `Update` on the page, it will be automatically included in the RSS feed for that page. RSS feeds can be integrated with Slack, email, or other subscription tools for your users.
3954

40-
```mdx
41-
<Update label="v0.0.10" rss={title: "Version 0.0.10 is now live", description: "Including updates to AI models and more"} feedDescription=>
42-
Lorem ipsum dolor sit amet, consectetur adipiscing elit...
43-
</Update>
44-
```
55+
The `"rss"` property in docs.json accepts an array of pages where the RSS feed link will be added to the contextual menu:
4556

57+
```json
58+
"rss": {
59+
"pages": ["changelog", "status"]
60+
}
61+
```
62+
<div style={{ border: '2px solid #ff00ff' }}>
63+
TODO: insert changelog contextual menu screenshot
64+
</div>

images/changelog-toc.png

679 KB
Loading

0 commit comments

Comments
 (0)