mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Make nix check .#linkcheck pass
It's not quite perfect yet, with two kinds of excludes, but at least we won't regress!
This commit is contained in:
parent
ae15d4eaf3
commit
e07510e504
1 changed files with 10 additions and 0 deletions
10
flake.nix
10
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue