| ... | ... | @@ -11,6 +11,7 @@ const max_doc_file_size = 10 * 1024 * 1024; |
| 11 | 11 | const exe_ext = std.build.Target(std.build.Target.Native).exeFileExt(); |
| 12 | 12 | const obj_ext = std.build.Target(std.build.Target.Native).oFileExt(); |
| 13 | 13 | const tmp_dir_name = "docgen_tmp"; |
| 14 | const test_out_path = tmp_dir_name ++ os.path.sep_str ++ "test" ++ exe_ext; |
| 14 | 15 | |
| 15 | 16 | pub fn main() !void { |
| 16 | 17 | var direct_allocator = std.heap.DirectAllocator.init(); |
| ... | ... | @@ -821,6 +822,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var |
| 821 | 822 | zig_exe, |
| 822 | 823 | "test", |
| 823 | 824 | tmp_source_file_name, |
| 825 | "--output", |
| 826 | test_out_path, |
| 824 | 827 | }); |
| 825 | 828 | try out.print("<pre><code class=\"shell\">$ zig test {}.zig", code.name); |
| 826 | 829 | switch (code.mode) { |
| ... | ... | @@ -863,6 +866,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var |
| 863 | 866 | "--color", |
| 864 | 867 | "on", |
| 865 | 868 | tmp_source_file_name, |
| 869 | "--output", |
| 870 | test_out_path, |
| 866 | 871 | }); |
| 867 | 872 | try out.print("<pre><code class=\"shell\">$ zig test {}.zig", code.name); |
| 868 | 873 | switch (code.mode) { |
| ... | ... | @@ -918,6 +923,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var |
| 918 | 923 | zig_exe, |
| 919 | 924 | "test", |
| 920 | 925 | tmp_source_file_name, |
| 926 | "--output", |
| 927 | test_out_path, |
| 921 | 928 | }); |
| 922 | 929 | switch (code.mode) { |
| 923 | 930 | builtin.Mode.Debug => {}, |