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 {...@@ -49,7 +49,7 @@ pub fn build(b: *std.Build) !void {
49 docgen_cmd.addArgs(&.{ "--zig", b.zig_exe });49 docgen_cmd.addArgs(&.{ "--zig", b.zig_exe });
50 docgen_cmd.addFileSourceArg(.{ .path = "doc/langref.html.in" });50 docgen_cmd.addFileSourceArg(.{ .path = "doc/langref.html.in" });
51 const langref_file = docgen_cmd.addOutputFileArg("langref.html");51 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");
53 if (!skip_install_lib_files) {53 if (!skip_install_lib_files) {
54 b.getInstallStep().dependOn(&install_langref.step);54 b.getInstallStep().dependOn(&install_langref.step);
55 }55 }
ci/aarch64-linux-debug.sh+1-1
...@@ -67,7 +67,7 @@ stage3-debug/bin/zig build test docs \...@@ -67,7 +67,7 @@ stage3-debug/bin/zig build test docs \
67 --zig-lib-dir "$(pwd)/../lib"67 --zig-lib-dir "$(pwd)/../lib"
6868
69# Look for HTML errors.69# 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
72# Produce the experimental std lib documentation.72# Produce the experimental std lib documentation.
73stage3-debug/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib73stage3-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 \...@@ -67,7 +67,7 @@ stage3-release/bin/zig build test docs \
67 --zig-lib-dir "$(pwd)/../lib"67 --zig-lib-dir "$(pwd)/../lib"
6868
69# Look for HTML errors.69# 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
72# Produce the experimental std lib documentation.72# Produce the experimental std lib documentation.
73stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib73stage3-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 \...@@ -66,7 +66,7 @@ stage3-debug/bin/zig build test docs \
66 --zig-lib-dir "$(pwd)/../lib"66 --zig-lib-dir "$(pwd)/../lib"
6767
68# Look for HTML errors.68# 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
71# Produce the experimental std lib documentation.71# Produce the experimental std lib documentation.
72stage3-debug/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib72stage3-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 \...@@ -67,7 +67,7 @@ stage3-release/bin/zig build test docs \
67 --zig-lib-dir "$(pwd)/../lib"67 --zig-lib-dir "$(pwd)/../lib"
6868
69# Look for HTML errors.69# 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
72# Produce the experimental std lib documentation.72# Produce the experimental std lib documentation.
73stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib73stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib