Skip to content

Commit ccee590

Browse files
committed
Add "updated" to version def & use EnhancedMarkdown for ChangelogList
1 parent 26292c9 commit ccee590

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

schemas/common-defs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $defs:
8181

8282
version:
8383
type: object
84-
description: Version information when the item got added/deprecated/removed.
84+
description: Version information when the item got added/updated/deprecated/removed.
8585
properties:
8686
added:
8787
type: string
@@ -92,6 +92,9 @@ $defs:
9292
deprecated:
9393
type: string
9494
description: Version when this item was deprecated in MTA.
95+
updated:
96+
type: string
97+
description: Version when this item was updated in MTA.
9598
replacement:
9699
type: string
97100
description: An optional replacement for this item.

web/src/components/ChangelogList.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
import { renderRevisionLink } from '@src/utils/general';
3+
import EnhancedMarkdown from './EnhancedMarkdown.astro';
4+
25
interface ChangelogEntry {
36
version: string;
47
description: string;
@@ -17,8 +20,8 @@ const { entries } = Astro.props;
1720
<div class="changelog-list">
1821
{entries.map(entry => (
1922
<li>
20-
<span class="changelog-version">{entry.version}</span>
21-
<span class="changelog-description">{entry.description}</span>
23+
<span class="changelog-version" set:html={renderRevisionLink(entry.version)}></span>
24+
<span class="changelog-description"><EnhancedMarkdown content={entry.description}/></span>
2225
</li>
2326
))}
2427
</div>
@@ -40,6 +43,7 @@ const { entries } = Astro.props;
4043
font-weight: bold;
4144
color: var(--sl-color-orange-high);
4245
display: block;
46+
text-decoration: none;
4347
}
4448

4549
.changelog-description {

0 commit comments

Comments
 (0)