Skip to content

Commit c3874a3

Browse files
authored
chore: Fix readme & repository link for iroh-content-discovery (#358)
1 parent fc33196 commit c3874a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/proto/[slug]/page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Protocol() {
1919
useEffect(() => {
2020
(async () => {
2121
let url = protocol.repository.replace("https://github.com", "https://raw.githubusercontent.com");
22-
url = `${url}/refs/heads/main/README.md`;
22+
url = `${url}/refs/heads/main/${protocol.readmePath ?? "README.md"}`;
2323
const res = await fetch(url);
2424
const text = await res.text()
2525
setMarkdown(text);

src/app/proto/protocols.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export const protocols = [
5353
"tagline": "A protocol to communicate with a content tracker for iroh-blobs.",
5454
"slug": "iroh-content-discovery",
5555
"documentation": "https://docs.rs/iroh-content-discovery/latest/iroh_content_discovery/",
56-
"repository": "https://github.com/tipragot/godot-iroh",
56+
"repository": "https://github.com/n0-computer/iroh-experiments/",
57+
"readmePath": "content-discovery/README.md",
5758
"version": "v0.1.0"
5859
},
5960
{

0 commit comments

Comments
 (0)