| ... | ... | @@ -5537,9 +5537,8 @@ fn findGuidePaths(self: *Autodoc, file: *File, str: []const u8) ![]const u8 { |
| 5537 | 5537 | fn addGuide(self: *Autodoc, file: *File, guide_path: []const u8, section: *Section) !void { |
| 5538 | 5538 | if (guide_path.len == 0) return error.MissingAutodocGuideName; |
| 5539 | 5539 | |
| 5540 | | const cur_mod_dir_path = file.pkg.root_src_directory.path orelse "."; |
| 5541 | 5540 | const resolved_path = try std.fs.path.resolve(self.arena, &[_][]const u8{ |
| 5542 | | cur_mod_dir_path, file.sub_file_path, "..", guide_path, |
| 5541 | file.sub_file_path, "..", guide_path, |
| 5543 | 5542 | }); |
| 5544 | 5543 | |
| 5545 | 5544 | var guide_file = try file.pkg.root_src_directory.handle.openFile(resolved_path, .{}); |