flake: add docs-linkcheck package for validating hyperlinks

This commit is contained in:
raf 2024-11-25 18:55:01 +03:00
parent 7da133c3a1
commit dd8b0e272f
Signed by: NotAShelf
GPG key ID: AF26552424E53993

View file

@ -14,6 +14,20 @@
docs-html = docs.manual.html; docs-html = docs.manual.html;
docs-manpages = docs.manPages; docs-manpages = docs.manPages;
docs-json = docs.options.json; 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 # Build and open the built manual in your system browser
docs-html-wrapped = pkgs.writeScriptBin "docs-html-wrapped" '' docs-html-wrapped = pkgs.writeScriptBin "docs-html-wrapped" ''