Skip to content

Commit 0a0b3dd

Browse files
committed
autodoc: remove reference to github, replace with placeholder link
1 parent a0a1178 commit 0a0b3dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/docs/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var zigAnalysis;
5151
const domHdrName = document.getElementById("hdrName");
5252
const domHelpModal = document.getElementById("helpModal");
5353
const domSearchPlaceholder = document.getElementById("searchPlaceholder");
54-
const sourceFileUrlTemplate = "https://github.com/ziglang/zig/blob/master/lib/std/{{file}}#L{{line}}"
54+
const sourceFileUrlTemplate = "/src-viewer/{{file}}#L{{line}}"
5555

5656
let searchTimer = null;
5757
let searchTrimResults = true;
@@ -974,7 +974,7 @@ var zigAnalysis;
974974
"switch(" +
975975
cond +
976976
") {" +
977-
'<a href="https://github.com/ziglang/zig/tree/master/lib/std/' +
977+
'<a href="/src-viewer/' +
978978
file_name +
979979
"#L" +
980980
line +

0 commit comments

Comments
 (0)