From c99d99c82b54b77fcb455514807b58468ec36fab Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 24 Nov 2022 09:49:12 +0000 Subject: nix: check for broken links in Documentation Signed-off-by: Alyssa Ross --- nix/checks.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nix/checks.nix b/nix/checks.nix index df21d69..bbaf78a 100644 --- a/nix/checks.nix +++ b/nix/checks.nix @@ -6,6 +6,20 @@ { recurseForDerivations = true; + doc-links = config.pkgs.callPackage ( + { lib, runCommand, ruby, wget }: + runCommand "spectrum-doc-links" { + doc = import ../Documentation { inherit config; }; + nativeBuildInputs = [ ruby wget ]; + } '' + mkdir root + ln -s $doc root/doc + ruby -run -e httpd -- --port 4000 root & + wget -r -nv --delete-after --no-parent --retry-connrefused http://localhost:4000/doc/ + touch $out + '' + ) {}; + rustfmt = config.pkgs.callPackage ( { lib, runCommand, rustfmt }: runCommand "spectrum-rustfmt" { -- cgit 1.4.1