autodoc: Added .html to generated source view file names

This commit is contained in:
Der Teufel 2022-09-26 15:46:01 +02:00
parent 8849792789
commit 55a9db4c9d
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ var zigAnalysis;
const domHdrName = document.getElementById("hdrName");
const domHelpModal = document.getElementById("helpModal");
const domSearchPlaceholder = document.getElementById("searchPlaceholder");
const sourceFileUrlTemplate = "src/{{file}}#L{{line}}"
const sourceFileUrlTemplate = "src/{{file}}.html#L{{line}}"
const domLangRefLink = document.getElementById("langRefLink");
let searchTimer = null;

View File

@ -301,7 +301,7 @@ pub fn generateZirData(self: *Autodoc) !void {
var files_iterator = self.files.iterator();
while (files_iterator.next()) |entry| {
const new_html_path = entry.key_ptr.*.sub_file_path;
const new_html_path = try std.mem.concat(self.arena, u8, &.{entry.key_ptr.*.sub_file_path, ".html"});
const html_file = try createFromPath(html_dir, new_html_path);
defer html_file.close();