1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-10 10:02:36 +09:00

doc/lib-functions: print libset name before description

This commit is contained in:
Naïm Favier 2022-12-12 13:17:47 +01:00
parent ce952286ca
commit 5782c3d802
No known key found for this signature in database
GPG key ID: 95AFCE8211908325
2 changed files with 12 additions and 11 deletions

View file

@ -9,7 +9,8 @@ with pkgs; stdenv.mkDerivation {
buildInputs = [ nixdoc ];
installPhase = ''
function docgen {
nixdoc -c "$1" -d "$2" -f "$1.nix" > "$out/$1.xml"
# TODO: wrap lib.$1 in <literal>, make nixdoc not escape it
nixdoc -c "$1" -d "lib.$1: $2" -f "$1.nix" > "$out/$1.xml"
echo "<xi:include href='$1.xml' />" >> "$out/index.xml"
}