mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Add header to generated markdown file
This commit is contained in:
parent
bdeb4a7e32
commit
621dff7307
@ -420,9 +420,10 @@ generate_md_output(File, RegExp, Languages) ->
|
||||
N1 =< N2
|
||||
end, Cmds2),
|
||||
Langs = binary:split(Languages, <<",">>, [global]),
|
||||
Header = <<"---\ntitle: Administration API reference\nbodyclass: nocomment\n---">>,
|
||||
Out = lists:map(fun(C) -> gen_doc(C, false, Langs) end, Cmds3),
|
||||
{ok, Fh} = file:open(File, [write]),
|
||||
io:format(Fh, "~s", [[Out]]),
|
||||
io:format(Fh, "~s~s", [Header, Out]),
|
||||
file:close(Fh),
|
||||
ok.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user