Skip to content

Commit 7253a5a

Browse files
ui(doc): add github icon (#968)
<img width="814" alt="Capture d’écran 2025-02-19 à 22 36 26" src="https://github.com/user-attachments/assets/2f7f8ea0-1808-433b-8abf-87e94a18893b" /> adding GH icon
1 parent 48c3a59 commit 7253a5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/routes/docs/[...id].tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { define } from "../../util.ts";
66
import { extract } from "@std/front-matter/yaml";
77

88
import TOC, { groupsNames } from "../../docs/toc.ts";
9+
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
910

1011
const groups = new Map<string, { id: string; title: string }[]>();
1112
for (const group of groupsNames) {
@@ -59,11 +60,12 @@ export default define.page<typeof handler>(function Page({ data }) {
5960
<Markdown source={data.content} />
6061
<p class="mt-6 text-sm">
6162
<a
62-
class="link"
63+
class="link inline-flex items-center gap-1"
6364
href={`https://github.com/jsr-io/jsr/blob/main/frontend/docs/${data.id}.md`}
6465
target="_blank"
6566
rel="noopener noreferrer"
6667
>
68+
<TbBrandGithub class="size-4" aria-hidden />
6769
Edit this page on GitHub
6870
</a>
6971
</p>

0 commit comments

Comments
 (0)