diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-09 01:00:45 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-09 01:00:45 -0500 |
| commit | 94e52dba85e4b81f5c4f2576c91df039604d06fb (patch) | |
| tree | 1f2dc6ff88128caa53d15518f8c4fddac5b27556 /doc | |
| parent | 5046aa9403e98fec7a744f35faa9d17925c9079d (diff) | |
| download | zig-94e52dba85e4b81f5c4f2576c91df039604d06fb.tar.gz zig-94e52dba85e4b81f5c4f2576c91df039604d06fb.zip | |
fix docgen and fix unnecessarily adding .root suffix to objects
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/docgen.zig | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/doc/docgen.zig b/doc/docgen.zig index cea456a98d..527802ec0d 100644 --- a/doc/docgen.zig +++ b/doc/docgen.zig @@ -1011,8 +1011,10 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var zig_exe, "build-exe", tmp_source_file_name, - "--output", - tmp_bin_file_name, + "--output-dir", + tmp_dir_name, + "--name", + code.name, }); try out.print("<pre><code class=\"shell\">$ zig build-exe {}.zig", code.name); switch (code.mode) { @@ -1085,8 +1087,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var zig_exe, "test", tmp_source_file_name, - "--output", - test_out_path, + "--output-dir", + tmp_dir_name, }); try out.print("<pre><code class=\"shell\">$ zig test {}.zig", code.name); switch (code.mode) { @@ -1122,8 +1124,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var "--color", "on", tmp_source_file_name, - "--output", - test_out_path, + "--output-dir", + tmp_dir_name, }); try out.print("<pre><code class=\"shell\">$ zig test {}.zig", code.name); switch (code.mode) { @@ -1179,8 +1181,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var zig_exe, "test", tmp_source_file_name, - "--output", - test_out_path, + "--output-dir", + tmp_dir_name, }); switch (code.mode) { builtin.Mode.Debug => {}, @@ -1239,10 +1241,10 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var tmp_source_file_name, "--color", "on", - "--output", - tmp_obj_file_name, - "--output-h", - output_h_file_name, + "--name", + code.name, + "--output-dir", + tmp_dir_name, }); if (!code.is_inline) { |
