| ... | @@ -266,12 +266,12 @@ pub fn generateZirData(self: *Autodoc) !void { | ... | @@ -266,12 +266,12 @@ pub fn generateZirData(self: *Autodoc) !void { |
| 266 | // last thing (that can fail) that we do is flush | 266 | // last thing (that can fail) that we do is flush |
| 267 | buffer.flush() catch unreachable; | 267 | buffer.flush() catch unreachable; |
| 268 | } | 268 | } |
| | 269 | |
| 269 | // copy main.js, index.html | 270 | // copy main.js, index.html |
| 270 | const docs = try self.module.comp.zig_lib_directory.join(self.arena, &.{ "docs", std.fs.path.sep_str }); | 271 | var docs_dir = try self.module.comp.zig_lib_directory.handle.openDir("docs", .{}); |
| 271 | var docs_dir = std.fs.openDirAbsolute(docs, .{}) catch unreachable; | | |
| 272 | defer docs_dir.close(); | 272 | defer docs_dir.close(); |
| 273 | docs_dir.copyFile("main.js", output_dir, "main.js", .{}) catch unreachable; | 273 | try docs_dir.copyFile("main.js", output_dir, "main.js", .{}); |
| 274 | docs_dir.copyFile("index.html", output_dir, "index.html", .{}) catch unreachable; | 274 | try docs_dir.copyFile("index.html", output_dir, "index.html", .{}); |
| 275 | } | 275 | } |
| 276 | | 276 | |
| 277 | /// Represents a chain of scopes, used to resolve decl references to the | 277 | /// Represents a chain of scopes, used to resolve decl references to the |