Merge pull request #12976 from der-teufel-programming/master

autodoc: Added `.html` to generated source view file names
This commit is contained in:
Loris Cro 2022-09-26 18:00:36 +02:00 committed by GitHub
commit 37cfe3dfd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();