Skip to content

Commit d79b7d2

Browse files
authored
Merge pull request #191 from evo-lua/github-changelog-links
Link to release changelogs in the API docs
2 parents 5f68f14 + 6235b59 commit d79b7d2

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)