doc/lib-functions: remove warnings, add versions, cli#205643
doc/lib-functions: remove warnings, add versions, cli#205643infinisil merged 4 commits intoNixOS:masterfrom
versions, cli#205643Conversation
fricklerhandwerk
left a comment
There was a problem hiding this comment.
Looks good! Please implement @roberth's suggestions.
|
@ncfavier good point about the ordering, that indeed eluded me. I'm skeptical about changing the order haphazardly, as it (implicitly, but still) tells readers of the TOC something about relative importance and can be used to guide their attention. Even if it's more cumbersome I'd prefer to instead pass the sections around as a list. @roberth what do you think? |
I don't think the ordering was particularly good, but I guess it works?
Seems a bit fanciful for independent pieces of reference documentation. Perhaps it may be helpful (for the TOC) to start the section names with |
People will still tend to attempt reading it back to back in lack of other resources, so we may as well not be in the way of finding the most relevant things first. |
Done, but nixdoc escapes |
Building the nixpkgs manual currently triggers a bunch of deprecation warnings, because every attribute in `lib` is evaluated to see if it's an attrset to generate locations for. Instead, share the lib subsets to include in the documentation between `lib-function-docs` and `lib-function-locations` so they can coordinate. Also generate the list of sections instead of duplicating it in `library.xml`.
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tweag-nix-dev-update-42/24204/1 |

Building the nixpkgs manual currently triggers a bunch of deprecation warnings, because every attribute in
libis evaluated to see if it's an attrset to generate locations for.Instead, share the lib subsets to include in the documentation between
lib-function-docsandlib-function-locationsso they can coordinate.I also wanted to add
modules(the upcominglib.modules.typeCheck{,ing}might especially be worth documenting) but there are several obstacles:nixdocgenerates documentation for non-toplevel local functions likecollectStructuredModules(which then fail the build because they try to include location information that wasn't generated).Fixes #116472