Skip to content

Commit 6235b59

Browse files
committed
UI: Link to release changelogs in the API docs
1 parent 5f68f14 commit 6235b59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/API/API.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ class Function extends React.Component {
1616
if (!since) throw new Error(message);
1717
}
1818

19+
// All of this should later be automated. For now, bite the bullet and do it manually...
20+
const releaseLink = `https://github.com/evo-lua/evo-runtime/releases/tag/${since}`;
1921
const sinceBlock = (since && (
2022
<>
21-
<span className={styles.sinceBlock}>Available since: {since}</span>
23+
<span className={styles.sinceBlock}>
24+
Available since: <a href={releaseLink}>{since}</a>
25+
</span>
2226
</>
2327
)) || (
2428
<>

0 commit comments

Comments
 (0)