authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-10 14:22:54-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-15 10:48:14-07:00
log2c326c87b16a0b8febf5347292ba61a592467d8c
tree4247d6bd27c96800b30914db8e1bdca70393f454
parentf4428e5804971f4bbb897b5d1d5583073bcb31aa

build.zig: install the langref to $prefix/doc/langref.html

and update the CI scripts to match.

5 files changed, 5 insertions(+), 5 deletions(-)

build.zig+1-1
......@@ -49,7 +49,7 @@ pub fn build(b: *std.Build) !void {
4949 docgen_cmd.addArgs(&.{ "--zig", b.zig_exe });
5050 docgen_cmd.addFileSourceArg(.{ .path = "doc/langref.html.in" });
5151 const langref_file = docgen_cmd.addOutputFileArg("langref.html");
52 const install_langref = b.addInstallFileWithDir(langref_file, .prefix, "langref.html");
52 const install_langref = b.addInstallFileWithDir(langref_file, .prefix, "doc/langref.html");
5353 if (!skip_install_lib_files) {
5454 b.getInstallStep().dependOn(&install_langref.step);
5555 }
ci/aarch64-linux-debug.sh+1-1
......@@ -67,7 +67,7 @@ stage3-debug/bin/zig build test docs \
6767 --zig-lib-dir "$(pwd)/../lib"
6868
6969# Look for HTML errors.
70tidy --drop-empty-elements no -qe "$ZIG_LOCAL_CACHE_DIR/langref.html"
70tidy --drop-empty-elements no -qe "stage3-debug/doc/langref.html"
7171
7272# Produce the experimental std lib documentation.
7373stage3-debug/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
ci/aarch64-linux-release.sh+1-1
......@@ -67,7 +67,7 @@ stage3-release/bin/zig build test docs \
6767 --zig-lib-dir "$(pwd)/../lib"
6868
6969# Look for HTML errors.
70tidy --drop-empty-elements no -qe "$ZIG_LOCAL_CACHE_DIR/langref.html"
70tidy --drop-empty-elements no -qe "stage3-release/doc/langref.html"
7171
7272# Produce the experimental std lib documentation.
7373stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
ci/x86_64-linux-debug.sh+1-1
......@@ -66,7 +66,7 @@ stage3-debug/bin/zig build test docs \
6666 --zig-lib-dir "$(pwd)/../lib"
6767
6868# Look for HTML errors.
69tidy --drop-empty-elements no -qe "$ZIG_LOCAL_CACHE_DIR/langref.html"
69tidy --drop-empty-elements no -qe "stage3-debug/doc/langref.html"
7070
7171# Produce the experimental std lib documentation.
7272stage3-debug/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
ci/x86_64-linux-release.sh+1-1
......@@ -67,7 +67,7 @@ stage3-release/bin/zig build test docs \
6767 --zig-lib-dir "$(pwd)/../lib"
6868
6969# Look for HTML errors.
70tidy --drop-empty-elements no -qe "$ZIG_LOCAL_CACHE_DIR/langref.html"
70tidy --drop-empty-elements no -qe "stage3-release/doc/langref.html"
7171
7272# Produce the experimental std lib documentation.
7373stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib