diff options
author | Naïm Favier <n@monade.li> | 2022-12-12 13:17:47 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-12-22 11:31:11 +0100 |
commit | 5782c3d802d9c8dc8bfb2901d3dba6cc7d47056f (patch) | |
tree | e946c18f09489e6fede93f0950e0d62ac3a0e52a /doc/doc-support/lib-function-docs.nix | |
parent | ce952286ca8a37e8c63d9627aec2f0dc2c2913f2 (diff) |
doc/lib-functions: print libset name before description
Diffstat (limited to 'doc/doc-support/lib-function-docs.nix')
-rw-r--r-- | doc/doc-support/lib-function-docs.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/doc-support/lib-function-docs.nix b/doc/doc-support/lib-function-docs.nix index d3d90d98c9814..d6fa08aa96205 100644 --- a/doc/doc-support/lib-function-docs.nix +++ b/doc/doc-support/lib-function-docs.nix @@ -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" } |