diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-09-02 12:10:33 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-09-02 12:10:33 +0200 |
commit | b910b697f69cbe44ccc5e4ea56c30a97b47afc52 (patch) | |
tree | eef88ee5efa19af8c43a69a0393c20ae2cb2ee5f /nixos/doc | |
parent | 542a86037d57e4657919fb5130c7bf819d91d2c3 (diff) | |
parent | e5bd74879517e6283113d82bec6309b09152f5cd (diff) | |
download | nixlib-b910b697f69cbe44ccc5e4ea56c30a97b47afc52.tar nixlib-b910b697f69cbe44ccc5e4ea56c30a97b47afc52.tar.gz nixlib-b910b697f69cbe44ccc5e4ea56c30a97b47afc52.tar.bz2 nixlib-b910b697f69cbe44ccc5e4ea56c30a97b47afc52.tar.lz nixlib-b910b697f69cbe44ccc5e4ea56c30a97b47afc52.tar.xz nixlib-b910b697f69cbe44ccc5e4ea56c30a97b47afc52.tar.zst nixlib-b910b697f69cbe44ccc5e4ea56c30a97b47afc52.zip |
Merge master into staging
Diffstat (limited to 'nixos/doc')
-rw-r--r-- | nixos/doc/manual/Makefile | 2 | ||||
-rw-r--r-- | nixos/doc/manual/configuration/linux-kernel.xml | 11 | ||||
-rw-r--r-- | nixos/doc/manual/configuration/modularity.xml | 2 | ||||
-rw-r--r-- | nixos/doc/manual/development/assertions.xml | 4 | ||||
-rw-r--r-- | nixos/doc/manual/development/option-types.xml | 12 | ||||
-rw-r--r-- | nixos/doc/manual/development/writing-documentation.xml | 8 | ||||
-rw-r--r-- | nixos/doc/manual/installation/upgrading.xml | 2 | ||||
-rw-r--r-- | nixos/doc/manual/manual.xml | 2 | ||||
-rw-r--r-- | nixos/doc/manual/options-to-docbook.xsl | 2 |
9 files changed, 23 insertions, 22 deletions
diff --git a/nixos/doc/manual/Makefile b/nixos/doc/manual/Makefile index 5cbbf140869a..2e9adf70c396 100644 --- a/nixos/doc/manual/Makefile +++ b/nixos/doc/manual/Makefile @@ -11,7 +11,7 @@ manual-combined.xml: generated *.xml .PHONY: format format: - find . -iname '*.xml' -type f -print0 | xargs -0 -I{} -n1 \ + find ../../ -iname '*.xml' -type f -print0 | xargs -0 -I{} -n1 \ xmlformat --config-file "../xmlformat.conf" -i {} .PHONY: fix-misc-xml diff --git a/nixos/doc/manual/configuration/linux-kernel.xml b/nixos/doc/manual/configuration/linux-kernel.xml index f4d697c42dbd..2f766f2b32f7 100644 --- a/nixos/doc/manual/configuration/linux-kernel.xml +++ b/nixos/doc/manual/configuration/linux-kernel.xml @@ -66,14 +66,15 @@ nixpkgs.config.packageOverrides = pkgs: sets the kernel’s TCP keepalive time to 120 seconds. To see the available parameters, run <command>sysctl -a</command>. </para> - <section> + <section xml:id="sec-linux-config-customizing"> <title>Customize your kernel</title> <para> The first step before compiling the kernel is to generate an appropriate - <literal>.config</literal> configuration. Either you pass your own config via - the <literal>configfile</literal> setting of <literal>linuxManualConfig</literal>: - <screen><![CDATA[ + <literal>.config</literal> configuration. Either you pass your own config + via the <literal>configfile</literal> setting of + <literal>linuxManualConfig</literal>: +<screen><![CDATA[ custom-kernel = super.linuxManualConfig { inherit (super) stdenv hostPlatform; inherit (linux_4_9) src; @@ -117,7 +118,7 @@ You can edit the config with this snippet (by default <command>make menuconfig</ ]]></screen> </para> </section> - <section> + <section xml:id="sec-linux-config-developing-modules"> <title>Developing kernel modules</title> <para> diff --git a/nixos/doc/manual/configuration/modularity.xml b/nixos/doc/manual/configuration/modularity.xml index 3ff96f719ec5..298ffd661f67 100644 --- a/nixos/doc/manual/configuration/modularity.xml +++ b/nixos/doc/manual/configuration/modularity.xml @@ -74,7 +74,7 @@ The unique option `services.httpd.adminAddr' is defined multiple times, in `/etc argument is for: it contains the complete, merged system configuration. That is, <varname>config</varname> is the result of combining the configurations returned by every module - <footnote> + <footnote xml:id="footnote-nix-is-lazy"> <para> If you’re wondering how it’s possible that the (indirect) <emphasis>result</emphasis> of a function is passed as an diff --git a/nixos/doc/manual/development/assertions.xml b/nixos/doc/manual/development/assertions.xml index 17c38ffcc717..32f90cf2e7c4 100644 --- a/nixos/doc/manual/development/assertions.xml +++ b/nixos/doc/manual/development/assertions.xml @@ -20,7 +20,7 @@ NixOS module system. </para> - <section> + <section xml:id="sec-assertions-warnings"> <title>Warnings</title> <para> @@ -44,7 +44,7 @@ </programlisting> </section> - <section> + <section xml:id="sec-assertions-assertions"> <title>Assertions</title> <para> diff --git a/nixos/doc/manual/development/option-types.xml b/nixos/doc/manual/development/option-types.xml index 47dd09158e91..e6c9eae11a72 100644 --- a/nixos/doc/manual/development/option-types.xml +++ b/nixos/doc/manual/development/option-types.xml @@ -11,7 +11,7 @@ value definitions. </para> - <section> + <section xml:id="sec-option-types-basic"> <title>Basic Types</title> <para> @@ -196,7 +196,7 @@ </variablelist> </section> - <section> + <section xml:id="sec-option-types-value"> <title>Value Types</title> <para> @@ -257,7 +257,7 @@ </variablelist> </section> - <section> + <section xml:id="sec-option-types-composed"> <title>Composed Types</title> <para> @@ -483,7 +483,7 @@ config.mod.two = { foo = 2; bar = "two"; };</screen> </example> </section> - <section> + <section xml:id="sec-option-types-extending"> <title>Extending types</title> <para> @@ -543,14 +543,14 @@ nixThings = mkOption { </variablelist> </section> - <section> + <section xml:id="sec-option-types-custom"> <title>Custom Types</title> <para> Custom types can be created with the <literal>mkOptionType</literal> function. As type creation includes some more complex topics such as submodule handling, it is recommended to get familiar with - <filename + <filename xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/types.nix">types.nix</filename> code before creating a new type. </para> diff --git a/nixos/doc/manual/development/writing-documentation.xml b/nixos/doc/manual/development/writing-documentation.xml index 8ecdd1c770f2..2183937ad0da 100644 --- a/nixos/doc/manual/development/writing-documentation.xml +++ b/nixos/doc/manual/development/writing-documentation.xml @@ -10,7 +10,7 @@ sources and presenting it in an accessible style would be a worthy contribution to the project. </para> - <section> + <section xml:id="sec-writing-docs-building-the-manual"> <title>Building the Manual</title> <para> @@ -42,7 +42,7 @@ <filename>./result/share/doc/nixos/index.html</filename>. </para> </section> - <section> + <section xml:id="sec-writing-docs-editing-docbook-xml"> <title>Editing DocBook XML</title> <para> @@ -76,7 +76,7 @@ Issue</link> and someone will handle the conversion to XML for you. </para> </section> - <section> + <section xml:id="sec-writing-docs-creating-a-topic"> <title>Creating a Topic</title> <para> @@ -128,7 +128,7 @@ </itemizedlist> </para> </section> - <section> + <section xml:id="sec-writing-docs-adding-a-topic"> <title>Adding a Topic to the Book</title> <para> diff --git a/nixos/doc/manual/installation/upgrading.xml b/nixos/doc/manual/installation/upgrading.xml index 20355812ec63..85e5082575d3 100644 --- a/nixos/doc/manual/installation/upgrading.xml +++ b/nixos/doc/manual/installation/upgrading.xml @@ -109,7 +109,7 @@ nixos https://nixos.org/channels/nixos-unstable so in that case you will not be able to go back to your original channel. </para> </warning> - <section> + <section xml:id="sec-upgrading-automatic"> <title>Automatic Upgrades</title> <para> diff --git a/nixos/doc/manual/manual.xml b/nixos/doc/manual/manual.xml index e9338efbc025..a5efde32885c 100644 --- a/nixos/doc/manual/manual.xml +++ b/nixos/doc/manual/manual.xml @@ -8,7 +8,7 @@ <subtitle>Version <xi:include href="./generated/version" parse="text" /> </subtitle> </info> - <preface> + <preface xml:id="preface"> <title>Preface</title> <para> This manual describes how to install, use and extend NixOS, a Linux diff --git a/nixos/doc/manual/options-to-docbook.xsl b/nixos/doc/manual/options-to-docbook.xsl index 43a69806a2b0..2038b0dff63e 100644 --- a/nixos/doc/manual/options-to-docbook.xsl +++ b/nixos/doc/manual/options-to-docbook.xsl @@ -15,7 +15,7 @@ <xsl:template match="/expr/list"> - <appendix> + <appendix xml:id="appendix-configuration-options"> <title>Configuration Options</title> <variablelist xml:id="configuration-variable-list"> <xsl:for-each select="attrs"> |