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:
parent
b6dde41000
commit
758c87f564
@ -415,14 +415,19 @@ gen_doc(#ejabberd_commands{name=Name, tags=Tags, desc=Desc, longdesc=LongDesc,
|
|||||||
"" -> [];
|
"" -> [];
|
||||||
_ -> ?TAG('div', "note-down", ?RAW(Note))
|
_ -> ?TAG('div', "note-down", ?RAW(Note))
|
||||||
end,
|
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)),
|
?TAG(p, ?RAW(Desc)),
|
||||||
NoteEl,
|
|
||||||
case LongDesc of
|
case LongDesc of
|
||||||
"" -> [];
|
"" -> [];
|
||||||
_ -> ?TAG(p, ?RAW(LongDesc))
|
_ -> ?TAG(p, ?RAW(LongDesc))
|
||||||
end,
|
end,
|
||||||
|
NotePost,
|
||||||
?TAG(h2, <<"Arguments:">>), ArgsText,
|
?TAG(h2, <<"Arguments:">>), ArgsText,
|
||||||
?TAG(h2, <<"Result:">>), ResultText,
|
?TAG(h2, <<"Result:">>), ResultText,
|
||||||
?TAG(h2, <<"Tags:">>), ?TAG(p, TagsText)]
|
?TAG(h2, <<"Tags:">>), ?TAG(p, TagsText)]
|
||||||
|
Loading…
Reference in New Issue
Block a user