Update syntax of some options so they are better displayed in Docs

This commit is contained in:
Badlop 2020-05-12 21:21:28 +02:00
parent c861fa6a6a
commit 9d923e8e6d
3 changed files with 13 additions and 13 deletions

View File

@ -1605,7 +1605,7 @@ mod_doc() ->
"administrator changes their password again. It is possible to " "administrator changes their password again. It is possible to "
"define the reason of the ban. The new password also includes " "define the reason of the ban. The new password also includes "
"the reason and the date and time of the ban. See an example below."), "the reason and the date and time of the ban. See an example below."),
?T("- 'pushroster' (and 'pushroster-all'):"), ?T("- 'pushroster': (and 'pushroster-all')"),
?T("The roster file must be placed, if using Windows, on the " ?T("The roster file must be placed, if using Windows, on the "
"directory where you installed ejabberd: " "directory where you installed ejabberd: "
"C:/Program Files/ejabberd or similar. If you use other " "C:/Program Files/ejabberd or similar. If you use other "

View File

@ -1188,19 +1188,19 @@ mod_doc() ->
desc => desc =>
[?T("Specify a list of custom limits which override the " [?T("Specify a list of custom limits which override the "
"default ones defined in XEP-0033. Limits are defined " "default ones defined in XEP-0033. Limits are defined "
"per sender type and stanza type, where:"), "per sender type and stanza type, where:"), "",
?T("- The sender type can be: 'local' or 'remote'."), "", ?T("- 'sender' can be: 'local' or 'remote'."),
?T("- The stanza type can be: 'message' or 'presence'."), "", ?T("- 'stanza' can be: 'message' or 'presence'."),
?T("- The number can be a positive integer or the key word 'infinite'.")], ?T("- 'number' can be a positive integer or 'infinite'.")],
example => example =>
[{?T("Default values:"), ["# Default values:",
["local:", "local:",
" message: 100", " message: 100",
" presence: 100", " presence: 100",
"remote:", "remote:",
" message: 20", " message: 20",
" presence: 20"]} " presence: 20"]
]}}, }},
{name, {name,
#{desc => ?T("Service name to provide in the Info query to the " #{desc => ?T("Service name to provide in the Info query to the "
"Service Discovery. Default is '\"Multicast\"'.")}}, "Service Discovery. Default is '\"Multicast\"'.")}},

View File

@ -4303,17 +4303,17 @@ mod_doc() ->
#{value => "List of Key:Value", #{value => "List of Key:Value",
desc => desc =>
?T("This allows to define a list of key-value to choose " ?T("This allows to define a list of key-value to choose "
"defined node plugins on given PEP namespace."), "defined node plugins on given PEP namespace. "
"The following example will use 'node_tune' instead of "
"'node_pep' for every PEP node with the tune namespace:"),
example => example =>
[{?T("The following example will use 'node_tune' instead of "
"'node_pep' for every PEP node with the tune namespace:"),
["modules:", ["modules:",
" ...", " ...",
" mod_pubsub:", " mod_pubsub:",
" pep_mapping:", " pep_mapping:",
" http://jabber.org/protocol/tune: tune", " http://jabber.org/protocol/tune: tune",
" ..."] " ..."]
}]}}, }},
{plugins, {plugins,
#{value => "[Plugin, ...]", #{value => "[Plugin, ...]",
desc => [?T("To specify which pubsub node plugins to use. " desc => [?T("To specify which pubsub node plugins to use. "