Mark changed options/commands with same emoji already used in CONTAINER.md

This commit is contained in:
Badlop
2026-01-22 16:30:27 +01:00
parent f21bd9b96e
commit f65903a181
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -454,7 +454,7 @@ get_version_mark(Note) ->
XXYY = string:join([XX, YY], "."),
case string:find(Note, XXYY) of
nomatch -> "";
_ -> " 🟤"
_ -> " 🟠"
end.
make_command_name(Name, Note) ->
@@ -520,7 +520,7 @@ generate_md_output(File, RegExp, Languages, Cmds) ->
Version = binary_to_list(ejabberd_config:version()),
Header = ["# API Reference\n\n"
"This section describes API commands of ejabberd ", Version, ". "
"The commands that changed in this version are marked with 🟤.\n\n"],
"The commands that changed in this version are marked with 🟠.\n\n"],
Out = lists:map(fun(C) -> gen_doc(C, false, Langs) end, Cmds4),
{ok, Fh} = file:open(File, [write, {encoding, utf8}]),
io:format(Fh, "~ts~ts", [Header, Out]),
+3 -3
View File
@@ -80,7 +80,7 @@ man(Lang) ->
["TOP LEVEL OPTIONS",
"-----------------",
"This section describes top level options of ejabberd " ++ Version ++ ".",
"The options that changed in this version are marked with 🟤.",
"The options that changed in this version are marked with 🟠.",
io_lib:nl()] ++
lists:flatmap(
fun(Opt) ->
@@ -101,7 +101,7 @@ man(Lang) ->
"-------",
"[[modules]]",
"This section describes modules options of ejabberd " ++ Version ++ ".",
"The modules that changed in this version are marked with 🟤.",
"The modules that changed in this version are marked with 🟠.",
io_lib:nl()] ++
lists:flatmap(
fun({M, Descr, DocOpts, Backends, Example}) ->
@@ -176,7 +176,7 @@ get_version_mark(#{note := Note}) ->
XXYY = string:join([XX, YY], "."),
case string:find(Note, XXYY) of
nomatch -> "";
_ -> " 🟤"
_ -> " 🟠"
end;
get_version_mark(_) ->
"".