nixos/documentation: add option to disable redirects

Related to issue #https://github.com/NixOS/nixpkgs/issues/412451
This commit is contained in:
Adrien Faure 2025-05-31 19:54:53 +02:00 committed by Valentin Gagarin
parent 3390360529
commit aeedfab1bf
2 changed files with 11 additions and 1 deletions

View file

@ -8,6 +8,7 @@
baseOptionsJSON ? null,
warningsAreErrors ? true,
prefix ? ../../..,
checkRedirects ? true,
}:
let
@ -146,7 +147,7 @@ rec {
nixos-render-docs -j $NIX_BUILD_CORES manual html \
--manpage-urls ${manpageUrls} \
--redirects ${./redirects.json} \
${if checkRedirects then "--redirects ${./redirects.json}" else ""} \
--revision ${escapeShellArg revision} \
--generator "nixos-render-docs ${pkgs.lib.version}" \
--stylesheet style.css \