From 55a9db4c9de0df539ffb27b94ce0929c070acd2a Mon Sep 17 00:00:00 2001 From: Der Teufel Date: Mon, 26 Sep 2022 15:46:01 +0200 Subject: autodoc: Added `.html` to generated source view file names --- src/Autodoc.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Autodoc.zig b/src/Autodoc.zig index 54c0cc3e96..4d2220edf8 100644 --- a/src/Autodoc.zig +++ b/src/Autodoc.zig @@ -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(); -- cgit v1.2.3