Add ejabberd version number to man pages
This commit is contained in:
parent
da18245d9a
commit
aa0ed37034
|
@ -69,10 +69,11 @@ man(Lang) ->
|
||||||
catch _:undef -> []
|
catch _:undef -> []
|
||||||
end
|
end
|
||||||
end, ejabberd_config:callback_modules(all)),
|
end, ejabberd_config:callback_modules(all)),
|
||||||
|
Version = binary_to_list(ejabberd_option:version()),
|
||||||
Options =
|
Options =
|
||||||
["TOP LEVEL OPTIONS",
|
["TOP LEVEL OPTIONS",
|
||||||
"-----------------",
|
"-----------------",
|
||||||
tr(Lang, ?T("This section describes top level options of ejabberd.")),
|
"This section describes top level options of ejabberd "++Version,
|
||||||
io_lib:nl()] ++
|
io_lib:nl()] ++
|
||||||
lists:flatmap(
|
lists:flatmap(
|
||||||
fun(Opt) ->
|
fun(Opt) ->
|
||||||
|
@ -92,7 +93,7 @@ man(Lang) ->
|
||||||
"MODULES",
|
"MODULES",
|
||||||
"-------",
|
"-------",
|
||||||
"[[modules]]",
|
"[[modules]]",
|
||||||
tr(Lang, ?T("This section describes options of all ejabberd modules.")),
|
"This section describes options of all modules in ejabberd "++Version,
|
||||||
io_lib:nl()] ++
|
io_lib:nl()] ++
|
||||||
lists:flatmap(
|
lists:flatmap(
|
||||||
fun({M, Descr, DocOpts, Backends, Example}) ->
|
fun({M, Descr, DocOpts, Backends, Example}) ->
|
||||||
|
@ -111,7 +112,7 @@ man(Lang) ->
|
||||||
"LISTENERS",
|
"LISTENERS",
|
||||||
"-------",
|
"-------",
|
||||||
"[[listeners]]",
|
"[[listeners]]",
|
||||||
tr(Lang, ?T("This section describes options of all ejabberd listeners.")),
|
"This section describes options of all listeners in ejabberd "++Version,
|
||||||
io_lib:nl(),
|
io_lib:nl(),
|
||||||
"TODO"],
|
"TODO"],
|
||||||
AsciiData =
|
AsciiData =
|
||||||
|
|
Loading…
Reference in New Issue