nixos/doc/*: fix indentation

zowoq 31051812 3f20417b

+95 -95
+34 -34
nixos/doc/manual/configuration/gpu-accel.xml
··· 65 <title>AMD</title> 66 67 <para> 68 - Modern AMD <link 69 - xlink:href="https://en.wikipedia.org/wiki/Graphics_Core_Next">Graphics 70 - Core Next</link> (GCN) GPUs are supported through the 71 - <package>rocm-opencl-icd</package> package. Adding this package to 72 - <xref linkend="opt-hardware.opengl.extraPackages"/> enables OpenCL 73 - support: 74 75 - <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [ 76 - rocm-opencl-icd 77 - ];</programlisting> 78 </para> 79 </section> 80 ··· 100 support. For example, for Gen8 and later GPUs, the following 101 configuration can be used: 102 103 - <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [ 104 - intel-compute-runtime 105 - ];</programlisting> 106 107 </para> 108 </section> ··· 173 <title>AMD</title> 174 175 <para> 176 - Modern AMD <link 177 - xlink:href="https://en.wikipedia.org/wiki/Graphics_Core_Next">Graphics 178 - Core Next</link> (GCN) GPUs are supported through either radv, which is 179 - part of <package>mesa</package>, or the <package>amdvlk</package> package. 180 - Adding the <package>amdvlk</package> package to 181 - <xref linkend="opt-hardware.opengl.extraPackages"/> makes both drivers 182 - available for applications and lets them choose. A specific driver can 183 - be forced as follows: 184 185 - <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [ 186 - pkgs.<package>amdvlk</package> 187 - ]; 188 189 - # To enable Vulkan support for 32-bit applications, also add: 190 - <xref linkend="opt-hardware.opengl.extraPackages32"/> = [ 191 - pkgs.driversi686Linux.<package>amdvlk</package> 192 - ]; 193 194 - # For amdvlk 195 - <xref linkend="opt-environment.variables"/>.VK_ICD_FILENAMES = 196 - "/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json"; 197 - # For radv 198 - <xref linkend="opt-environment.variables"/>.VK_ICD_FILENAMES = 199 - "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json"; 200 - </programlisting> 201 </para> 202 </section> 203 </section>
··· 65 <title>AMD</title> 66 67 <para> 68 + Modern AMD <link 69 + xlink:href="https://en.wikipedia.org/wiki/Graphics_Core_Next">Graphics 70 + Core Next</link> (GCN) GPUs are supported through the 71 + <package>rocm-opencl-icd</package> package. Adding this package to 72 + <xref linkend="opt-hardware.opengl.extraPackages"/> enables OpenCL 73 + support: 74 75 + <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [ 76 + rocm-opencl-icd 77 + ];</programlisting> 78 </para> 79 </section> 80 ··· 100 support. For example, for Gen8 and later GPUs, the following 101 configuration can be used: 102 103 + <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [ 104 + intel-compute-runtime 105 + ];</programlisting> 106 107 </para> 108 </section> ··· 173 <title>AMD</title> 174 175 <para> 176 + Modern AMD <link 177 + xlink:href="https://en.wikipedia.org/wiki/Graphics_Core_Next">Graphics 178 + Core Next</link> (GCN) GPUs are supported through either radv, which is 179 + part of <package>mesa</package>, or the <package>amdvlk</package> package. 180 + Adding the <package>amdvlk</package> package to 181 + <xref linkend="opt-hardware.opengl.extraPackages"/> makes both drivers 182 + available for applications and lets them choose. A specific driver can 183 + be forced as follows: 184 185 + <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [ 186 + pkgs.<package>amdvlk</package> 187 + ]; 188 189 + # To enable Vulkan support for 32-bit applications, also add: 190 + <xref linkend="opt-hardware.opengl.extraPackages32"/> = [ 191 + pkgs.driversi686Linux.<package>amdvlk</package> 192 + ]; 193 194 + # For amdvlk 195 + <xref linkend="opt-environment.variables"/>.VK_ICD_FILENAMES = 196 + "/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json"; 197 + # For radv 198 + <xref linkend="opt-environment.variables"/>.VK_ICD_FILENAMES = 199 + "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json"; 200 + </programlisting> 201 </para> 202 </section> 203 </section>
+24 -24
nixos/doc/manual/release-notes/rl-2009.xml
··· 1593 <para> 1594 Agda has been heavily reworked. 1595 <itemizedlist> 1596 - <listitem> 1597 - <para> 1598 - <literal>agda.mkDerivation</literal> has been heavily changed and 1599 - is now located at <package>agdaPackages.mkDerivation</package>. 1600 - </para> 1601 - </listitem> 1602 - <listitem> 1603 - <para> 1604 - New top-level packages <package>agda</package> and 1605 - <literal>agda.withPackages</literal> have been added, the second 1606 - of which sets up agda with access to chosen libraries. 1607 - </para> 1608 - </listitem> 1609 - <listitem> 1610 - <para> 1611 - All agda libraries now live under 1612 - <literal>agdaPackages</literal>. 1613 - </para> 1614 - </listitem> 1615 - <listitem> 1616 - <para> 1617 - Many broken libraries have been removed. 1618 - </para> 1619 - </listitem> 1620 </itemizedlist> 1621 See the <link 1622 xlink:href="https://nixos.org/nixpkgs/manual/#agda">new
··· 1593 <para> 1594 Agda has been heavily reworked. 1595 <itemizedlist> 1596 + <listitem> 1597 + <para> 1598 + <literal>agda.mkDerivation</literal> has been heavily changed and 1599 + is now located at <package>agdaPackages.mkDerivation</package>. 1600 + </para> 1601 + </listitem> 1602 + <listitem> 1603 + <para> 1604 + New top-level packages <package>agda</package> and 1605 + <literal>agda.withPackages</literal> have been added, the second 1606 + of which sets up agda with access to chosen libraries. 1607 + </para> 1608 + </listitem> 1609 + <listitem> 1610 + <para> 1611 + All agda libraries now live under 1612 + <literal>agdaPackages</literal>. 1613 + </para> 1614 + </listitem> 1615 + <listitem> 1616 + <para> 1617 + Many broken libraries have been removed. 1618 + </para> 1619 + </listitem> 1620 </itemizedlist> 1621 See the <link 1622 xlink:href="https://nixos.org/nixpkgs/manual/#agda">new
+37 -37
nixos/doc/varlistentry-fixer.rb
··· 15 include REXML 16 17 if ARGV.length < 1 then 18 - $stderr.puts "Needs a filename." 19 - exit 1 20 end 21 22 filename = ARGV.shift ··· 51 # Generates: --optionnamevalue 52 # ^^ ^^ 53 doc.elements.each("//varlistentry/term") do |term| 54 - ["varname", "function", "option", "replaceable"].each do |prev_name| 55 - term.elements.each(prev_name) do |el| 56 - if el.next_element and 57 - el.next_element.name == "replaceable" and 58 - el.next_sibling_node.class == Element 59 - then 60 - $touched = true 61 - term.insert_after(el, Text.new(" ")) 62 - end 63 - end 64 - end 65 end 66 67 ··· 75 # Generates: -Ipath 76 # ^^ 77 doc.elements.each("//cmdsynopsis/arg") do |term| 78 - ["option", "replaceable"].each do |prev_name| 79 - term.elements.each(prev_name) do |el| 80 - if el.next_element and 81 - el.next_element.name == "replaceable" and 82 - el.next_sibling_node.class == Element 83 - then 84 - $touched = true 85 - term.insert_after(el, Text.new(" ")) 86 - end 87 - end 88 - end 89 end 90 91 # <cmdsynopsis> ··· 104 # Generates: [{--profile-name | -p }name] 105 # ^^^^ 106 doc.elements.each("//cmdsynopsis/arg") do |term| 107 - ["group"].each do |prev_name| 108 - term.elements.each(prev_name) do |el| 109 - if el.next_element and 110 - el.next_element.name == "replaceable" and 111 - el.next_sibling_node.class == Element 112 - then 113 - $touched = true 114 - term.insert_after(el, Text.new(" ")) 115 - end 116 - end 117 - end 118 end 119 120 121 if $touched then 122 - doc.context[:attribute_quote] = :quote 123 - doc.write(output: File.open(filename, "w")) 124 end
··· 15 include REXML 16 17 if ARGV.length < 1 then 18 + $stderr.puts "Needs a filename." 19 + exit 1 20 end 21 22 filename = ARGV.shift ··· 51 # Generates: --optionnamevalue 52 # ^^ ^^ 53 doc.elements.each("//varlistentry/term") do |term| 54 + ["varname", "function", "option", "replaceable"].each do |prev_name| 55 + term.elements.each(prev_name) do |el| 56 + if el.next_element and 57 + el.next_element.name == "replaceable" and 58 + el.next_sibling_node.class == Element 59 + then 60 + $touched = true 61 + term.insert_after(el, Text.new(" ")) 62 + end 63 + end 64 + end 65 end 66 67 ··· 75 # Generates: -Ipath 76 # ^^ 77 doc.elements.each("//cmdsynopsis/arg") do |term| 78 + ["option", "replaceable"].each do |prev_name| 79 + term.elements.each(prev_name) do |el| 80 + if el.next_element and 81 + el.next_element.name == "replaceable" and 82 + el.next_sibling_node.class == Element 83 + then 84 + $touched = true 85 + term.insert_after(el, Text.new(" ")) 86 + end 87 + end 88 + end 89 end 90 91 # <cmdsynopsis> ··· 104 # Generates: [{--profile-name | -p }name] 105 # ^^^^ 106 doc.elements.each("//cmdsynopsis/arg") do |term| 107 + ["group"].each do |prev_name| 108 + term.elements.each(prev_name) do |el| 109 + if el.next_element and 110 + el.next_element.name == "replaceable" and 111 + el.next_sibling_node.class == Element 112 + then 113 + $touched = true 114 + term.insert_after(el, Text.new(" ")) 115 + end 116 + end 117 + end 118 end 119 120 121 if $touched then 122 + doc.context[:attribute_quote] = :quote 123 + doc.write(output: File.open(filename, "w")) 124 end