如果我有这样的 OTP 布局:
foo/
- apps/
- bar1/
- src/
- bar2
- src/
Run Code Online (Sandbox Code Playgroud)
如何为和生成 edoc ?bar1
bar2
如果我运行:
rebar3 edoc
Run Code Online (Sandbox Code Playgroud)
我得到的是和.html
中的单独文件,并且它们之间的链接都不起作用(即导出类型未正确链接)。bar1/doc
bar2/doc
谢谢。
编写了一个名为 的 rebar3 插件medoc
,它将确保 edoc 生成的文档正确链接并更新目录:
https://github.com/drozzy/medoc
运行为:
rebar3 medoc
Run Code Online (Sandbox Code Playgroud)
至于标准edoc
,这似乎还不是一个功能。一个中间解决方案是在您的钢筋配置中使用它:
{edoc_opts, [{dir, "doc"}]}
Run Code Online (Sandbox Code Playgroud)
但这不会正确更新目录(即您只会看到一个应用程序的目录)。