ldoc
ldoc copied to clipboard
@section lost under @submodule
I use @submodule to merge doc, but @section information will lost.
--- Test.
-- test.lua
-- @module test
local M = {}
return M
--- Test.
-- test2.lua
-- @submodule test
--- Test2 functions
-- @section test2
--- test2.
function test2()
end
I just hit the same issue. Is this a known limitation of ldoc? Or is it a user error?
Well, I found a workaround:
- Do not use
@submodule. - Instead use
@moduleand optionmerge = true.