Erlang 如何控制edoc文件中的函数顺序?
我想为一个erlang模块生成edoc文件,这是我的代码 我想订购导出api接口,但我不能成功Erlang 如何控制edoc文件中的函数顺序?,erlang,edoc,Erlang,Edoc,我想为一个erlang模块生成edoc文件,这是我的代码 我想订购导出api接口,但我不能成功 generate_log_statistics/4 Analyse the log files and draw graph. prepare_sipp_cmd/3 Shows SIPp online help documentation of what config parameters there are. prepare_systeminfo_filenames/1 Prepare th
generate_log_statistics/4 Analyse the log files and draw graph.
prepare_sipp_cmd/3 Shows SIPp online help documentation of what config parameters there are.
prepare_systeminfo_filenames/1 Prepare the log files according which blades you want to monitor.
run_scenario/6 Run the SIPp scenario.
start_collect_system_infos/1 Start collecting the logs.
stop_collect_system_infos/1 Stop collecting the logs.
edoc中的这些导出api未进行订购。
我想:
排序函数
将其放在您的rebar.config中:
{edoc_opts, [{sort_functions, true}]}.
或者,您可以使用以下内容生成单个文档文件:
edoc:file("src/foo.erl", [{dir, "doc"}, {sort_functions, true}]).
“doc”是输出目录
实现特定的顺序
关闭函数排序,如上所述,但使用
{sort_functions,false}
并根据需要对源代码中的函数进行排序。我不使用钢筋,只使用源文件,我使用以下命令:edoc:files([“sbgEstSupport.erl”],[{sort_functions,false}])。
,但它无法工作。edoc:files([“sbgEstSupport.erl”],[{dir,“},{sort_函数,false}])。
edoc:file("src/foo.erl", [{dir, "doc"}, {sort_functions, true}]).