docs(schema): Minor improvements to spelling and formatting.

This commit is contained in:
ieQu1 2022-03-30 12:32:36 +02:00
parent edb91e2e4a
commit d23a88d0a9
4 changed files with 15 additions and 14 deletions

View File

@ -1377,7 +1377,7 @@ fields("sysmon_vm") ->
desc => desc =>
"The threshold, as percentage of processes, for how many\n" "The threshold, as percentage of processes, for how many\n"
" processes can simultaneously exist at the local node before the corresponding\n" " processes can simultaneously exist at the local node before the corresponding\n"
" alarm is set." " alarm is raised."
} }
)}, )},
{"process_low_watermark", {"process_low_watermark",
@ -1451,7 +1451,7 @@ fields("sysmon_os") ->
default => "80%", default => "80%",
desc => desc =>
"The threshold, as percentage of system CPU load,\n" "The threshold, as percentage of system CPU load,\n"
" for how much system cpu can be used before the corresponding alarm is set." " for how much system cpu can be used before the corresponding alarm is raised."
} }
)}, )},
{"cpu_low_watermark", {"cpu_low_watermark",
@ -1479,7 +1479,7 @@ fields("sysmon_os") ->
default => "70%", default => "70%",
desc => desc =>
"The threshold, as percentage of system memory,\n" "The threshold, as percentage of system memory,\n"
" for how much system memory can be allocated before the corresponding alarm is set." " for how much system memory can be allocated before the corresponding alarm is raised."
} }
)}, )},
{"procmem_high_watermark", {"procmem_high_watermark",
@ -1490,7 +1490,7 @@ fields("sysmon_os") ->
desc => desc =>
"The threshold, as percentage of system memory,\n" "The threshold, as percentage of system memory,\n"
" for how much system memory can be allocated by one Erlang process before\n" " for how much system memory can be allocated by one Erlang process before\n"
" the corresponding alarm is set." " the corresponding alarm is raised."
} }
)} )}
]; ];

View File

@ -421,7 +421,7 @@ fields("db") ->
, 'readOnly' => true , 'readOnly' => true
, desc => """ , desc => """
Select the backend for the embedded database.<br/> Select the backend for the embedded database.<br/>
<code>rlog</code> is the default backend, a new experimental backend <code>rlog</code> is the default backend,
that is suitable for very large clusters.<br/> that is suitable for very large clusters.<br/>
<code>mnesia</code> is a backend that offers decent performance in small clusters. <code>mnesia</code> is a backend that offers decent performance in small clusters.
""" """

View File

@ -24,12 +24,13 @@
-define(REDIS_DEFAULT_PORT, 6379). -define(REDIS_DEFAULT_PORT, 6379).
-define(PGSQL_DEFAULT_PORT, 5432). -define(PGSQL_DEFAULT_PORT, 5432).
-define(SERVERS_DESC, "A Node list for Cluster to connect to. The nodes should be split with ',', such as: 'Node[,Node]'<br>\nFor each Node should be:<br>"). -define(SERVERS_DESC, "A Node list for Cluster to connect to. The nodes should be separated with commas, such as: `Node[,Node].<br/>`
For each Node should be: ").
-define(SERVER_DESC(TYPE, DEFAULT_PORT), """ -define(SERVER_DESC(TYPE, DEFAULT_PORT), "
The IPv4 or IPv6 address or host name to connect to.<br> The IPv4 or IPv6 address or the hostname to connect to.<br/>
A host entry has the following form: 'Host[:Port]'<br> A host entry has the following form: `Host[:Port]`.<br/>
The """ ++ TYPE ++ " default port " ++ DEFAULT_PORT ++ " is used if '[:Port]' isn't present" The " ++ TYPE ++ " default port " ++ DEFAULT_PORT ++ " is used if `[:Port]` is not specified."
). ).
-define(THROW_ERROR(Str), erlang:throw({error, Str})). -define(THROW_ERROR(Str), erlang:throw({error, Str})).

View File

@ -169,7 +169,7 @@ desc("user_provided_function") ->
"Configuration for a built-in output."; "Configuration for a built-in output.";
desc("republish_args") -> desc("republish_args") ->
"The arguments of the built-in 'republish' output.<br>" "The arguments of the built-in 'republish' output.<br>"
"We can use variables in the args.<br>\n" "One can use variables in the args.<br>\n"
"The variables are selected by the rule. For example, if the rule SQL is defined as following:\n" "The variables are selected by the rule. For example, if the rule SQL is defined as following:\n"
"<code>\n" "<code>\n"
" SELECT clientid, qos, payload FROM \"t/1\"\n" " SELECT clientid, qos, payload FROM \"t/1\"\n"
@ -183,9 +183,9 @@ desc("republish_args") ->
" payload = \"msg: ${payload}\"\n" " payload = \"msg: ${payload}\"\n"
" }\n" " }\n"
"</code>\n" "</code>\n"
"When the rule is triggered by an MQTT message with payload = \"hello\", qos = 1,\n" "When the rule is triggered by an MQTT message with payload = `hello`, qos = 1,\n"
"clientid = \"Steve\", the rule will republish a new MQTT message to topic \"t/Steve\",\n" "clientid = `Steve`, the rule will republish a new MQTT message to topic `t/Steve`,\n"
"payload = \"msg: hello\", and qos = 1."; "payload = `msg: hello`, and `qos = 1`.";
desc(_) -> desc(_) ->
undefined. undefined.