Skip to content

Commit dacb3aa

Browse files
committed
doc/starlight/changelog: add view on github button
1 parent 9334926 commit dacb3aa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/starlight/src/pages/changelog/[version].astro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
3+
import { LinkCard } from "@astrojs/starlight/components";
34
import { getCollection, render } from "astro:content";
45
56
export async function getStaticPaths() {
@@ -26,5 +27,11 @@ const { Content, headings } = await render(entry);
2627
pagefind: false, // We don't want to pollute our search with release-notes entries
2728
}}
2829
headings={headings}
29-
><Content />
30+
>
31+
<LinkCard
32+
title="View on GitHub"
33+
href={`https://github.com/RIOT-OS/RIOT/releases/tag/${entry.data.slug.replaceAll("-", ".")}`}
34+
description="The changelog can also be found on GitHub."
35+
/>
36+
<Content />
3037
</StarlightPage>

0 commit comments

Comments
 (0)