From e07510e5047df8dd0d4067c43f5c7176a818ae14 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 4 Nov 2025 00:28:50 +0100 Subject: [PATCH] Make nix check .#linkcheck pass It's not quite perfect yet, with two kinds of excludes, but at least we won't regress! --- flake.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flake.nix b/flake.nix index 897889a71..37a51a575 100644 --- a/flake.nix +++ b/flake.nix @@ -327,6 +327,16 @@ # https://nixos.org/manual/nixpkgs/stable/index.html#tester-lycheeLinkCheck linkcheck = pkgs.testers.lycheeLinkCheck { site = self.packages.${system}.nix-manual + "/share/doc/nix/manual"; + extraConfig = { + exclude = [ + # Exclude auto-generated JSON schema documentation which has + # auto-generated fragment IDs that don't match the link references + ".*/protocols/json/.*\\.html" + # Exclude undocumented builtins + ".*/language/builtins\\.html#builtins-addErrorContext" + ".*/language/builtins\\.html#builtins-appendContext" + ]; + }; }; } // (import ./ci/gha/tests {