mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
autodoc: Added .html to generated source view file names
This commit is contained in:
parent
8849792789
commit
55a9db4c9d
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user