aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDer Teufel <der.teufel.mail@gmail.com>2022-09-26 15:46:01 +0200
committerDer Teufel <der.teufel.mail@gmail.com>2022-09-26 15:46:01 +0200
commit55a9db4c9de0df539ffb27b94ce0929c070acd2a (patch)
tree8188b11188d3fe4bd16845f91be5bc237ae30b87 /src
parent8849792789331faec0caaca18822227ecdb9bc62 (diff)
downloadzig-55a9db4c9de0df539ffb27b94ce0929c070acd2a.tar.gz
zig-55a9db4c9de0df539ffb27b94ce0929c070acd2a.zip
autodoc: Added `.html` to generated source view file names
Diffstat (limited to 'src')
-rw-r--r--src/Autodoc.zig2
1 files changed, 1 insertions, 1 deletions
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();