Skip to content

Commit b2c15a4

Browse files
committed
link checks are now upstreamed
1 parent b3ba2a9 commit b2c15a4

1 file changed

Lines changed: 1 addition & 30 deletions

File tree

doc/flake.nix

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
outputs = inputs@{ self, flake-parts, nixpkgs, ... }:
1010
flake-parts.lib.mkFlake { inherit inputs; } {
11-
systems = nixpkgs.lib.systems.flakeExposed;
11+
systems = [ "x86_64-linux" "aarch64-darwin" ];
1212
imports = [ inputs.emanote.flakeModule ];
1313
perSystem = { self', pkgs, system, ... }: {
1414
emanote = {
@@ -20,35 +20,6 @@
2020
};
2121
};
2222
};
23-
24-
# Check that links are working
25-
checks.linkCheck =
26-
pkgs.runCommand "linkCheck"
27-
{
28-
buildInputs = [ pkgs.html-proofer ];
29-
} ''
30-
# Ensure that the htmlproofer is using the correct locale
31-
export LANG=en_US.UTF-8
32-
# Run htmlproofer
33-
htmlproofer --disable-external ${self'.packages.default}
34-
touch $out
35-
'';
36-
37-
apps = {
38-
# This is like `checks.doc-linkCheck`, but also does external link checks
39-
# (which is something we can't do in Nix due to sandboxing)
40-
linkCheck.program = pkgs.writeShellApplication {
41-
name = "linkCheck";
42-
runtimeInputs = [ pkgs.html-proofer ];
43-
text = ''
44-
set -x
45-
htmlproofer \
46-
--disable-external \
47-
--no-check-external-hash \
48-
${self'.packages.default}
49-
'';
50-
};
51-
};
5223
};
5324
};
5425
}

0 commit comments

Comments
 (0)