refactor: move config template file to rel dir

This commit is contained in:
Zaiming (Stone) Shi 2022-06-12 19:57:08 +02:00
parent 265c3303d9
commit 4fdd793071
2 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ schema_module() ->
gen_doc(File, SchemaModule, I18nFile, Lang) ->
Version = emqx_release:version(),
Title = "# " ++ emqx_release:description() ++ " " ++ Version ++ " Configuration",
BodyFile = filename:join([code:lib_dir(emqx_conf), "etc", "emqx_conf.md"]),
BodyFile = filename:join([rel, "emqx_conf.template.en.md"]),
{ok, Body} = file:read_file(BodyFile),
Opts = #{title => Title, body => Body, desc_file => I18nFile, lang => Lang},
Doc = hocon_schema_md:gen(SchemaModule, Opts),