From 469123eda19028ea784b78b6d21ae0d4e2c91ab3 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 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a70617b74..897889a71 100644 --- a/flake.nix +++ b/flake.nix @@ -320,7 +320,16 @@ checks = forAllSystems ( system: - (import ./ci/gha/tests { + let + pkgs = nixpkgsFor.${system}.native; + in + { + # https://nixos.org/manual/nixpkgs/stable/index.html#tester-lycheeLinkCheck + linkcheck = pkgs.testers.lycheeLinkCheck { + site = self.packages.${system}.nix-manual + "/share/doc/nix/manual"; + }; + } + // (import ./ci/gha/tests { inherit system; pkgs = nixpkgsFor.${system}.native; nixFlake = self;