From f65903a181e9ab97367e0293cdfeb46e1ac8412e Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 22 Jan 2026 16:30:27 +0100 Subject: [PATCH] Mark changed options/commands with same emoji already used in CONTAINER.md --- src/ejabberd_commands_doc.erl | 4 ++-- src/ejabberd_doc.erl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ejabberd_commands_doc.erl b/src/ejabberd_commands_doc.erl index eebbdf406..6eac6b3a7 100644 --- a/src/ejabberd_commands_doc.erl +++ b/src/ejabberd_commands_doc.erl @@ -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]), diff --git a/src/ejabberd_doc.erl b/src/ejabberd_doc.erl index 036088bf5..b7ea9d976 100644 --- a/src/ejabberd_doc.erl +++ b/src/ejabberd_doc.erl @@ -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(_) -> "".