diff options
author | Alyssa Ross <alyssa.ross@unikie.com> | 2022-11-24 09:49:12 +0000 |
---|---|---|
committer | Alyssa Ross <alyssa.ross@unikie.com> | 2022-11-24 09:49:12 +0000 |
commit | c99d99c82b54b77fcb455514807b58468ec36fab (patch) | |
tree | d7c532d78932ef13eeeaac6c4b2e9f0bd045f4f0 | |
parent | ec1cdaee66abd81c72ebf38a4b922c07e4188944 (diff) | |
download | spectrum-c99d99c82b54b77fcb455514807b58468ec36fab.tar spectrum-c99d99c82b54b77fcb455514807b58468ec36fab.tar.gz spectrum-c99d99c82b54b77fcb455514807b58468ec36fab.tar.bz2 spectrum-c99d99c82b54b77fcb455514807b58468ec36fab.tar.lz spectrum-c99d99c82b54b77fcb455514807b58468ec36fab.tar.xz spectrum-c99d99c82b54b77fcb455514807b58468ec36fab.tar.zst spectrum-c99d99c82b54b77fcb455514807b58468ec36fab.zip |
nix: check for broken links in Documentation
Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
-rw-r--r-- | nix/checks.nix | 14 |
1 files changed, 14 insertions, 0 deletions
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" { |