From 0146189b6551c1562823ed43ab3d3bca90a3a19b Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 7 Aug 2018 16:58:29 +0200 Subject: [PATCH] Add markdown options as specified in the docs git repo --- src/ejabberd_commands_doc.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_commands_doc.erl b/src/ejabberd_commands_doc.erl index fb507a61e..590e06ea9 100644 --- a/src/ejabberd_commands_doc.erl +++ b/src/ejabberd_commands_doc.erl @@ -459,7 +459,8 @@ generate_md_output(File, RegExp, Languages) -> end, Cmds2), Cmds4 = [maybe_add_policy_arguments(Cmd) || Cmd <- Cmds3], Langs = binary:split(Languages, <<",">>, [global]), - Header = <<"---\ntitle: Administration API reference\nbodyclass: nocomment\n---">>, + Header = <<"---\ntitle: Administration API reference\ntoc: true\nmenu: Administration API\norder: 40\n" + "// Autogenerated with 'ejabberdctl gen_markdown_doc_for_commands'\n---">>, Out = lists:map(fun(C) -> gen_doc(C, false, Langs) end, Cmds4), {ok, Fh} = file:open(File, [write]), io:format(Fh, "~s~s", [Header, Out]),