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
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"
}