From dd8b0e272f759c1385de2267195edffb52d8149d Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 25 Nov 2024 18:55:01 +0300 Subject: [PATCH] flake: add `docs-linkcheck` package for validating hyperlinks --- flake/packages.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/flake/packages.nix b/flake/packages.nix index 1f382927..cf1f81ac 100644 --- a/flake/packages.nix +++ b/flake/packages.nix @@ -14,6 +14,20 @@ docs-html = docs.manual.html; docs-manpages = docs.manPages; docs-json = docs.options.json; + docs-linkcheck = let + site = config.packages.docs; + in + pkgs.testers.lycheeLinkCheck { + inherit site; + remap = { + "https://notashelf.github.io/nvf/" = site; + }; + extraConfig = { + exclude = []; + include_mail = true; + include_verbatim = true; + }; + }; # Build and open the built manual in your system browser docs-html-wrapped = pkgs.writeScriptBin "docs-html-wrapped" ''