25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

Revert notes placement when generating markdown api commands documentation

This commit is contained in:
Paweł Chmielowski 2023-01-19 13:24:51 +01:00
parent b6dde41000
commit 758c87f564

View File

@ -415,14 +415,19 @@ gen_doc(#ejabberd_commands{name=Name, tags=Tags, desc=Desc, longdesc=LongDesc,
"" -> [];
_ -> ?TAG('div', "note-down", ?RAW(Note))
end,
{NotePre, NotePost} =
if HTMLOutput -> {[], NoteEl};
true -> {NoteEl, []}
end,
[?TAG(h1, atom_to_list(Name)),
[NotePre,
?TAG(h1, atom_to_list(Name)),
?TAG(p, ?RAW(Desc)),
NoteEl,
case LongDesc of
"" -> [];
_ -> ?TAG(p, ?RAW(LongDesc))
end,
NotePost,
?TAG(h2, <<"Arguments:">>), ArgsText,
?TAG(h2, <<"Result:">>), ResultText,
?TAG(h2, <<"Tags:">>), ?TAG(p, TagsText)]