Skip to content

Commit e07510e

Browse files
committed
Make nix check .#linkcheck pass
It's not quite perfect yet, with two kinds of excludes, but at least we won't regress!
1 parent ae15d4e commit e07510e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

flake.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,16 @@
327327
# https://nixos.org/manual/nixpkgs/stable/index.html#tester-lycheeLinkCheck
328328
linkcheck = pkgs.testers.lycheeLinkCheck {
329329
site = self.packages.${system}.nix-manual + "/share/doc/nix/manual";
330+
extraConfig = {
331+
exclude = [
332+
# Exclude auto-generated JSON schema documentation which has
333+
# auto-generated fragment IDs that don't match the link references
334+
".*/protocols/json/.*\\.html"
335+
# Exclude undocumented builtins
336+
".*/language/builtins\\.html#builtins-addErrorContext"
337+
".*/language/builtins\\.html#builtins-appendContext"
338+
];
339+
};
330340
};
331341
}
332342
// (import ./ci/gha/tests {

0 commit comments

Comments
 (0)