treewide: adjust some DocBook for conversion
The NixOS variant of Markdown doesn't make a distinction between `<code>` and `<literal>` or `<quote>` and... quotes, and doesn't support `<parameter>` or `<replaceable>`. These are infrequently used (apart from `<code>`) and don't add much, so just convert them to simpler forms to allow the options containing them to be converted to Markdown automatically. A few minor syntactic adjustments were also made to make `nix-doc-munge`'s job easier.
This commit is contained in:
parent
b5a65b91fb
commit
c1d8d2a3d1
30 changed files with 72 additions and 85 deletions
|
|
@ -28,7 +28,7 @@ let
|
|||
type = types.attrsOf types.str;
|
||||
description = ''
|
||||
Output name to EDID mapping.
|
||||
Use <code>autorandr --fingerprint</code> to get current setup values.
|
||||
Use <literal>autorandr --fingerprint</literal> to get current setup values.
|
||||
'';
|
||||
default = { };
|
||||
};
|
||||
|
|
@ -160,9 +160,9 @@ let
|
|||
<manvolnum>1</manvolnum>
|
||||
</citerefentry>
|
||||
option
|
||||
<parameter class="command">--scale-from</parameter>
|
||||
<literal>--scale-from</literal>
|
||||
will be used; when using factor method the option
|
||||
<parameter class="command">--scale</parameter>
|
||||
<literal>--scale</literal>
|
||||
will be used.
|
||||
</para><para>
|
||||
This option is a shortcut version of the transform option and they are mutually
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ in {
|
|||
example = [ "extglob" "-cdspell" ];
|
||||
description = ''
|
||||
Shell options to set. Prefix an option with
|
||||
<quote><literal>-</literal></quote> to unset.
|
||||
"<literal>-</literal>" to unset.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ in {
|
|||
default = false;
|
||||
description = ''
|
||||
Whether to manage <filename>.dir_colors</filename>
|
||||
and set <code>LS_COLORS</code>.
|
||||
and set <literal>LS_COLORS</literal>.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ in {
|
|||
}
|
||||
'';
|
||||
description = ''
|
||||
Color scheme options added to <code>FZF_DEFAULT_OPTS</code>. See
|
||||
Color scheme options added to <literal>FZF_DEFAULT_OPTS</literal>. See
|
||||
<link xlink:href="https://github.com/junegunn/fzf/wiki/Color-schemes"/>
|
||||
for documentation.
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ in {
|
|||
Attribute set of i3status-rust bars, each with their own configuration.
|
||||
Each bar <varname>name</varname> generates a config file suffixed with
|
||||
the bar's <varname>name</varname> from the attribute set, like so:
|
||||
<filename>config-<replaceable>name</replaceable>.toml</filename>.
|
||||
<filename>config-''${name}.toml</filename>.
|
||||
</para><para>
|
||||
This way, multiple config files can be generated, such as for having a
|
||||
top and a bottom bar.
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ in {
|
|||
default = { };
|
||||
description = ''
|
||||
Configuration to add to i3status <filename>config</filename>
|
||||
<code>general</code> section.
|
||||
<literal>general</literal> section.
|
||||
See
|
||||
<citerefentry>
|
||||
<refentrytitle>i3status</refentrytitle>
|
||||
|
|
@ -84,7 +84,7 @@ in {
|
|||
position = mkOption {
|
||||
type = with types; either int float;
|
||||
description = ''
|
||||
Position of this module in i3status <code>order</code>.
|
||||
Position of this module in i3status <literal>order</literal>.
|
||||
'';
|
||||
};
|
||||
settings = mkOption {
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@ with lib;
|
|||
Whether to enable msmtp.
|
||||
</para><para>
|
||||
If enabled then it is possible to use the
|
||||
<parameter class="command">--account</parameter> command line
|
||||
<literal>--account</literal> command line
|
||||
option to send a message for a given account using the
|
||||
<command>msmtp</command> or <command>msmtpq</command> tool.
|
||||
For example, <command>msmtp --account=private</command> would
|
||||
send using the account defined in
|
||||
<option>accounts.email.accounts.private</option>. If the
|
||||
<parameter class="command">--account</parameter> option is not
|
||||
<literal>--account</literal> option is not
|
||||
given then the primary account will be used.
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ let
|
|||
default = "inbox";
|
||||
description = ''
|
||||
Tag for notmuch to use for messages stored in the mailbox labeled with the
|
||||
<code>Inbox</code> name attribute.
|
||||
<literal>Inbox</literal> name attribute.
|
||||
</para><para>
|
||||
If set to an empty string, this mailbox <emphasis>and its child
|
||||
mailboxes</emphasis> are not synchronized with a tag.
|
||||
|
|
@ -82,7 +82,7 @@ let
|
|||
default = "deleted";
|
||||
description = ''
|
||||
Tag for notmuch to use for messages stored in the mailbox labeled with the
|
||||
<code>Trash</code> name attribute.
|
||||
<literal>Trash</literal> name attribute.
|
||||
</para><para>
|
||||
If set to an empty string, this mailbox <emphasis>and its child
|
||||
mailboxes</emphasis> are not synchronized with a tag.
|
||||
|
|
@ -94,7 +94,7 @@ let
|
|||
default = "sent";
|
||||
description = ''
|
||||
Tag for notmuch to use for messages stored in the mailbox labeled with the
|
||||
<code>Sent</code> name attribute.
|
||||
<literal>Sent</literal> name attribute.
|
||||
</para><para>
|
||||
If set to an empty string, this mailbox <emphasis>and its child
|
||||
mailboxes</emphasis> are not synchronized with a tag.
|
||||
|
|
@ -106,8 +106,8 @@ let
|
|||
default = "spam";
|
||||
description = ''
|
||||
Tag for notmuch to use for messages stored in the mailbox labeled with the
|
||||
<code>Junk</code> name attribute and/or with the <code>$Junk</code> keyword,
|
||||
<emphasis>except</emphasis> for messages with the <code>$NotJunk</code> keyword.
|
||||
<literal>Junk</literal> name attribute and/or with the <literal>$Junk</literal> keyword,
|
||||
<emphasis>except</emphasis> for messages with the <literal>$NotJunk</literal> keyword.
|
||||
</para><para>
|
||||
If set to an empty string, this mailbox, <emphasis>its child
|
||||
mailboxes</emphasis>, and these keywords are not synchronized with a tag.
|
||||
|
|
@ -119,7 +119,7 @@ let
|
|||
default = "important";
|
||||
description = ''
|
||||
Tag for notmuch to use for messages stored in the mailbox labeled with the
|
||||
<code>Important</code> name attribute and/or with the <code>$Important</code>
|
||||
<literal>Important</literal> name attribute and/or with the <literal>$Important</literal>
|
||||
keyword.
|
||||
</para><para>
|
||||
If set to an empty string, this mailbox, <emphasis>its child
|
||||
|
|
@ -131,7 +131,7 @@ let
|
|||
type = types.str;
|
||||
default = "phishing";
|
||||
description = ''
|
||||
Tag for notmuch to use for the IANA <code>$Phishing</code> keyword.
|
||||
Tag for notmuch to use for the IANA <literal>$Phishing</literal> keyword.
|
||||
</para><para>
|
||||
If set to an empty string, this keyword is not synchronized with a tag.
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ in {
|
|||
default = pkgs.ncmpcpp;
|
||||
defaultText = literalExpression "pkgs.ncmpcpp";
|
||||
description = ''
|
||||
Package providing the <code>ncmpcpp</code> command.
|
||||
Package providing the <literal>ncmpcpp</literal> command.
|
||||
'';
|
||||
example =
|
||||
literalExpression "pkgs.ncmpcpp.override { visualizerSupport = true; }";
|
||||
|
|
@ -75,7 +75,7 @@ in {
|
|||
null
|
||||
'';
|
||||
description = ''
|
||||
Value of the <code>mpd_music_dir</code> setting. On Linux platforms the
|
||||
Value of the <literal>mpd_music_dir</literal> setting. On Linux platforms the
|
||||
value of <varname>services.mpd.musicDirectory</varname> is used as the
|
||||
default if <varname>services.mpd.enable</varname> is
|
||||
<literal>true</literal>.
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ in {
|
|||
'';
|
||||
description = ''
|
||||
Extra configuration options added to the
|
||||
<code>mbnames</code> section.
|
||||
<literal>mbnames</literal> section.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -42,15 +42,13 @@ in {
|
|||
'';
|
||||
description = ''
|
||||
Settings written to <filename>$XDG_CONFIG_HOME/rtx/config.toml</filename>.
|
||||
</para><para>
|
||||
|
||||
See <link xlink:href="https://github.com/jdxcode/rtx#global-config-configrtxconfigtoml"/>
|
||||
for details on supported values.
|
||||
|
||||
<warning>
|
||||
<para>
|
||||
Modifying the <literal>tools</literal> section doesn't make RTX install them.
|
||||
You have to manually run <literal>rtx install</literal> to install the tools.
|
||||
</para>
|
||||
<para>Modifying the <literal>tools</literal> section doesn't make RTX install them.
|
||||
You have to manually run <literal>rtx install</literal> to install the tools.</para>
|
||||
</warning>
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -162,18 +162,18 @@ in {
|
|||
description = ''
|
||||
A list of repositories to use when resolving dependencies. Defined as a
|
||||
list of pre-defined repository or custom repository as a set of name to
|
||||
URL. The list will be used populate the <code>~/.sbt/repositories</code>
|
||||
URL. The list will be used populate the <literal>~/.sbt/repositories</literal>
|
||||
file in the order specified.
|
||||
|
||||
</para><para>
|
||||
|
||||
Pre-defined repositories must be one of <code>local</code>,
|
||||
<code>maven-local</code>, <code>maven-central</code>.
|
||||
Pre-defined repositories must be one of <literal>local</literal>,
|
||||
<literal>maven-local</literal>, <literal>maven-central</literal>.
|
||||
|
||||
</para><para>
|
||||
|
||||
Custom repositories are defined as
|
||||
<code language="nix">{ name-of-repo = "https://url.to.repo.com"}</code>.
|
||||
<literal>{ name-of-repo = "https://url.to.repo.com"}</literal>.
|
||||
|
||||
</para><para>
|
||||
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ let
|
|||
type = nullOr (enum [ "top" "bottom" ]);
|
||||
default = null;
|
||||
description = ''
|
||||
Decide if the bar is displayed in front (<code>"top"</code>)
|
||||
of the windows or behind (<code>"bottom"</code>).
|
||||
Decide if the bar is displayed in front (<literal>"top"</literal>)
|
||||
of the windows or behind (<literal>"bottom"</literal>).
|
||||
'';
|
||||
example = "top";
|
||||
};
|
||||
|
|
@ -152,7 +152,7 @@ in {
|
|||
default = pkgs.waybar;
|
||||
defaultText = literalExpression "pkgs.waybar";
|
||||
description = ''
|
||||
Waybar package to use. Set to <code>null</code> to use the default package.
|
||||
Waybar package to use. Set to <literal>null</literal> to use the default package.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -41,9 +41,9 @@ in {
|
|||
Configuration written to
|
||||
<filename>$XDG_CONFIG_HOME/yt-dlp/config</filename>.
|
||||
</para><para>
|
||||
Options must be specified in their <quote>long form</quote>, for
|
||||
example, <code>update = true;</code> instead of <code>U = true;</code>.
|
||||
Short options can be specified in the <code>extraConfig</code> option.
|
||||
Options must be specified in their "long form", for
|
||||
example, <literal>update = true;</literal> instead of <literal>U = true;</literal>.
|
||||
Short options can be specified in the <literal>extraConfig</literal> option.
|
||||
See <link xlink:href="https://github.com/yt-dlp/yt-dlp#configuration"/>
|
||||
for explanation about possible values.
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue