nixpkgs: Start documenting library functions in XML

Covers assert functions and about half of the attrsets functions.

Some internal consistency around IDs could be improved.
This commit is contained in:
Graham Christensen
2018-10-05 10:06:08 -04:00
parent f2b3bbe44e
commit f835f77e02
5 changed files with 1068 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
<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 &lt;nixpkgs/lib&gt;</code>.
</para>
<xi:include href="./library/asserts.xml" />
<xi:include href="./library/attrsets.xml" />
</section>