diff --git a/lib/docs/main.js b/lib/docs/main.js index 717aeb4d7f..c08378f5f3 100644 --- a/lib/docs/main.js +++ b/lib/docs/main.js @@ -51,7 +51,7 @@ var zigAnalysis; const domHdrName = document.getElementById("hdrName"); const domHelpModal = document.getElementById("helpModal"); const domSearchPlaceholder = document.getElementById("searchPlaceholder"); - const sourceFileUrlTemplate = "https://github.com/ziglang/zig/blob/master/lib/std/{{file}}#L{{line}}" + const sourceFileUrlTemplate = "/src-viewer/{{file}}#L{{line}}" let searchTimer = null; let searchTrimResults = true; @@ -974,7 +974,7 @@ var zigAnalysis; "switch(" + cond + ") {" + - '