Commit 0a0b3dda03

Loris Cro <kappaloris@gmail.com>
2022-08-16 16:19:54
autodoc: remove reference to github, replace with placeholder link
1 parent a0a1178
Changed files (1)
lib
docs
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 +
           ") {" +
-          '<a href="https://github.com/ziglang/zig/tree/master/lib/std/' +
+          '<a href="/src-viewer/' +
           file_name +
           "#L" +
           line +