nixos/doc/*: fix indentation

gstqt5
zowoq 2020-11-11 10:26:18 +10:00
parent 3f20417b4c
commit 31051812bc
3 changed files with 95 additions and 95 deletions

View File

@ -65,16 +65,16 @@ Platform Vendor Advanced Micro Devices, Inc.</screen>
<title>AMD</title> <title>AMD</title>
<para> <para>
Modern AMD <link Modern AMD <link
xlink:href="https://en.wikipedia.org/wiki/Graphics_Core_Next">Graphics xlink:href="https://en.wikipedia.org/wiki/Graphics_Core_Next">Graphics
Core Next</link> (GCN) GPUs are supported through the Core Next</link> (GCN) GPUs are supported through the
<package>rocm-opencl-icd</package> package. Adding this package to <package>rocm-opencl-icd</package> package. Adding this package to
<xref linkend="opt-hardware.opengl.extraPackages"/> enables OpenCL <xref linkend="opt-hardware.opengl.extraPackages"/> enables OpenCL
support: support:
<programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [ <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [
rocm-opencl-icd rocm-opencl-icd
];</programlisting> ];</programlisting>
</para> </para>
</section> </section>
@ -100,9 +100,9 @@ Platform Vendor Advanced Micro Devices, Inc.</screen>
support. For example, for Gen8 and later GPUs, the following support. For example, for Gen8 and later GPUs, the following
configuration can be used: configuration can be used:
<programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [ <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [
intel-compute-runtime intel-compute-runtime
];</programlisting> ];</programlisting>
</para> </para>
</section> </section>
@ -173,31 +173,31 @@ GPU1:
<title>AMD</title> <title>AMD</title>
<para> <para>
Modern AMD <link Modern AMD <link
xlink:href="https://en.wikipedia.org/wiki/Graphics_Core_Next">Graphics xlink:href="https://en.wikipedia.org/wiki/Graphics_Core_Next">Graphics
Core Next</link> (GCN) GPUs are supported through either radv, which is Core Next</link> (GCN) GPUs are supported through either radv, which is
part of <package>mesa</package>, or the <package>amdvlk</package> package. part of <package>mesa</package>, or the <package>amdvlk</package> package.
Adding the <package>amdvlk</package> package to Adding the <package>amdvlk</package> package to
<xref linkend="opt-hardware.opengl.extraPackages"/> makes both drivers <xref linkend="opt-hardware.opengl.extraPackages"/> makes both drivers
available for applications and lets them choose. A specific driver can available for applications and lets them choose. A specific driver can
be forced as follows: be forced as follows:
<programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [ <programlisting><xref linkend="opt-hardware.opengl.extraPackages"/> = [
pkgs.<package>amdvlk</package> pkgs.<package>amdvlk</package>
]; ];
# To enable Vulkan support for 32-bit applications, also add: # To enable Vulkan support for 32-bit applications, also add:
<xref linkend="opt-hardware.opengl.extraPackages32"/> = [ <xref linkend="opt-hardware.opengl.extraPackages32"/> = [
pkgs.driversi686Linux.<package>amdvlk</package> pkgs.driversi686Linux.<package>amdvlk</package>
]; ];
# For amdvlk # For amdvlk
<xref linkend="opt-environment.variables"/>.VK_ICD_FILENAMES = <xref linkend="opt-environment.variables"/>.VK_ICD_FILENAMES =
"/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json"; "/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json";
# For radv # For radv
<xref linkend="opt-environment.variables"/>.VK_ICD_FILENAMES = <xref linkend="opt-environment.variables"/>.VK_ICD_FILENAMES =
"/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json"; "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
</programlisting> </programlisting>
</para> </para>
</section> </section>
</section> </section>

View File

@ -1593,30 +1593,30 @@ services.transmission.settings.rpc-bind-address = "0.0.0.0";
<para> <para>
Agda has been heavily reworked. Agda has been heavily reworked.
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para> <para>
<literal>agda.mkDerivation</literal> has been heavily changed and <literal>agda.mkDerivation</literal> has been heavily changed and
is now located at <package>agdaPackages.mkDerivation</package>. is now located at <package>agdaPackages.mkDerivation</package>.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
New top-level packages <package>agda</package> and New top-level packages <package>agda</package> and
<literal>agda.withPackages</literal> have been added, the second <literal>agda.withPackages</literal> have been added, the second
of which sets up agda with access to chosen libraries. of which sets up agda with access to chosen libraries.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
All agda libraries now live under All agda libraries now live under
<literal>agdaPackages</literal>. <literal>agdaPackages</literal>.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
Many broken libraries have been removed. Many broken libraries have been removed.
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
See the <link See the <link
xlink:href="https://nixos.org/nixpkgs/manual/#agda">new xlink:href="https://nixos.org/nixpkgs/manual/#agda">new

View File

@ -15,8 +15,8 @@ require "rexml/document"
include REXML include REXML
if ARGV.length < 1 then if ARGV.length < 1 then
$stderr.puts "Needs a filename." $stderr.puts "Needs a filename."
exit 1 exit 1
end end
filename = ARGV.shift filename = ARGV.shift
@ -51,17 +51,17 @@ $touched = false
# Generates: --optionnamevalue # Generates: --optionnamevalue
# ^^ ^^ # ^^ ^^
doc.elements.each("//varlistentry/term") do |term| doc.elements.each("//varlistentry/term") do |term|
["varname", "function", "option", "replaceable"].each do |prev_name| ["varname", "function", "option", "replaceable"].each do |prev_name|
term.elements.each(prev_name) do |el| term.elements.each(prev_name) do |el|
if el.next_element and if el.next_element and
el.next_element.name == "replaceable" and el.next_element.name == "replaceable" and
el.next_sibling_node.class == Element el.next_sibling_node.class == Element
then then
$touched = true $touched = true
term.insert_after(el, Text.new(" ")) term.insert_after(el, Text.new(" "))
end end
end end
end end
end end
@ -75,17 +75,17 @@ end
# Generates: -Ipath # Generates: -Ipath
# ^^ # ^^
doc.elements.each("//cmdsynopsis/arg") do |term| doc.elements.each("//cmdsynopsis/arg") do |term|
["option", "replaceable"].each do |prev_name| ["option", "replaceable"].each do |prev_name|
term.elements.each(prev_name) do |el| term.elements.each(prev_name) do |el|
if el.next_element and if el.next_element and
el.next_element.name == "replaceable" and el.next_element.name == "replaceable" and
el.next_sibling_node.class == Element el.next_sibling_node.class == Element
then then
$touched = true $touched = true
term.insert_after(el, Text.new(" ")) term.insert_after(el, Text.new(" "))
end end
end end
end end
end end
# <cmdsynopsis> # <cmdsynopsis>
@ -104,21 +104,21 @@ end
# Generates: [{--profile-name | -p }name] # Generates: [{--profile-name | -p }name]
# ^^^^ # ^^^^
doc.elements.each("//cmdsynopsis/arg") do |term| doc.elements.each("//cmdsynopsis/arg") do |term|
["group"].each do |prev_name| ["group"].each do |prev_name|
term.elements.each(prev_name) do |el| term.elements.each(prev_name) do |el|
if el.next_element and if el.next_element and
el.next_element.name == "replaceable" and el.next_element.name == "replaceable" and
el.next_sibling_node.class == Element el.next_sibling_node.class == Element
then then
$touched = true $touched = true
term.insert_after(el, Text.new(" ")) term.insert_after(el, Text.new(" "))
end end
end end
end end
end end
if $touched then if $touched then
doc.context[:attribute_quote] = :quote doc.context[:attribute_quote] = :quote
doc.write(output: File.open(filename, "w")) doc.write(output: File.open(filename, "w"))
end end