mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
8906aa28e4
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`.
15 lines
609 B
XML
15 lines
609 B
XML
<section xmlns="http://docbook.org/ns/docbook"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
xml:id="sec-functions-library">
|
|
<title>Nixpkgs Library Functions</title>
|
|
|
|
<para>
|
|
Nixpkgs provides a standard library at <varname>pkgs.lib</varname>, or through <code>import <nixpkgs/lib></code>.
|
|
</para>
|
|
|
|
<!-- The index must have a root element to declare namespaces, but we
|
|
don't want to include it, so we select all of its children. -->
|
|
<xi:include href="./library/generated/index.xml" xpointer="xpointer(/root/*)" />
|
|
</section>
|