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:
parent
ce952286ca
commit
5782c3d802
2 changed files with 12 additions and 11 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue