From 008acd0547751c43f42172eab4879c566698dce3 Mon Sep 17 00:00:00 2001 From: Krzysztof Wolicki Date: Sat, 12 Oct 2024 06:27:30 +0200 Subject: [PATCH] Replace tidy with superhtml as HTML validator (#21664) Also add `$HOME/local/bin` to `PATH` in linux CI --- build.zig | 29 +++++++++++++---------------- ci/aarch64-linux-debug.sh | 4 ++-- ci/aarch64-linux-release.sh | 4 ++-- ci/x86_64-linux-debug.sh | 4 ++-- ci/x86_64-linux-release.sh | 4 ++-- 5 files changed, 21 insertions(+), 24 deletions(-) diff --git a/build.zig b/build.zig index a5f4cd5675..d42af9a0b7 100644 --- a/build.zig +++ b/build.zig @@ -32,20 +32,17 @@ pub fn build(b: *std.Build) !void { const skip_install_langref = b.option(bool, "no-langref", "skip copying of langref to the installation prefix") orelse skip_install_lib_files; const std_docs = b.option(bool, "std-docs", "include standard library autodocs") orelse false; const no_bin = b.option(bool, "no-bin", "skip emitting compiler binary") orelse false; - const enable_tidy = b.option(bool, "enable-tidy", "Check langref output HTML validity") orelse false; + const enable_superhtml = b.option(bool, "enable-superhtml", "Check langref output HTML validity") orelse false; const langref_file = generateLangRef(b); const install_langref = b.addInstallFileWithDir(langref_file, .prefix, "doc/langref.html"); - const check_langref = tidyCheck(b, langref_file); - if (enable_tidy) install_langref.step.dependOn(check_langref); - // Checking autodocs is disabled because tidy gives a false positive: - // line 304 column 9 - Warning: moved