From e222c1fef2a2559f6c0c06b20a2a09827796d536 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 15 Aug 2024 14:10:13 +0200 Subject: [PATCH] doc: Check link fragments with lychee --- flake.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index cded6c3a9..bdb5942c8 100644 --- a/flake.nix +++ b/flake.nix @@ -167,13 +167,15 @@ ; }; - checks = forAllSystems (system: { + checks = forAllSystems (system: let pkgs = nixpkgsFor.${system}.native; in { + # https://nixos.org/manual/nixpkgs/stable/index.html#tester-lycheeLinkCheck + linkcheck = pkgs.testers.lycheeLinkCheck { + site = lib.getOutput "doc" pkgs.nix + "/share/doc/nix/manual"; + }; binaryTarball = self.hydraJobs.binaryTarball.${system}; installTests = self.hydraJobs.installTests.${system}; nixpkgsLibTests = self.hydraJobs.tests.nixpkgsLibTests.${system}; - rl-next = - let pkgs = nixpkgsFor.${system}.native; - in pkgs.buildPackages.runCommand "test-rl-next-release-notes" { } '' + rl-next = pkgs.buildPackages.runCommand "test-rl-next-release-notes" { } '' LANG=C.UTF-8 ${pkgs.changelog-d}/bin/changelog-d ${./doc/manual/rl-next} >$out ''; repl-completion = nixpkgsFor.${system}.native.callPackage ./tests/repl-completion.nix { };