diff options
author | Badlop <badlop@process-one.net> | 2020-04-08 18:46:00 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2020-04-08 18:47:50 +0200 |
commit | da18245d9adc607436e8ed180b5e9e39b7fe023d (patch) | |
tree | eba1e9407ae9d6a0665012612461e4205b7520b5 /src | |
parent | Don't make commands subsections, so Docs TOC plage is cleaner (diff) |
Indicate which ejabberd version is used to produce the page
Diffstat (limited to 'src')
-rw-r--r-- | src/ejabberd_commands_doc.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ejabberd_commands_doc.erl b/src/ejabberd_commands_doc.erl index 13be0e22..0bfdf10f 100644 --- a/src/ejabberd_commands_doc.erl +++ b/src/ejabberd_commands_doc.erl @@ -460,7 +460,8 @@ generate_md_output(File, RegExp, Languages) -> Cmds4 = [maybe_add_policy_arguments(Cmd) || Cmd <- Cmds3], Langs = binary:split(Languages, <<",">>, [global]), Header = <<"---\ntitle: Administration API reference\ntoc: true\nmenu: Administration API\norder: 40\n" - "// Autogenerated with 'ejabberdctl gen_markdown_doc_for_commands'\n---">>, + "// Autogenerated with 'ejabberdctl gen_markdown_doc_for_commands'\n---\n\n" + "This page documents API of ejabberd version ", (ejabberd_option:version())/binary>>, Out = lists:map(fun(C) -> gen_doc(C, false, Langs) end, Cmds4), {ok, Fh} = file:open(File, [write]), io:format(Fh, "~ts~ts", [Header, Out]), |