ldoc icon indicating copy to clipboard operation
ldoc copied to clipboard

@section lost under @submodule

Open jinq0123 opened this issue 8 years ago • 2 comments

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

jinq0123 avatar Sep 04 '17 03:09 jinq0123

I just hit the same issue. Is this a known limitation of ldoc? Or is it a user error?

AndreasMatthias avatar Apr 13 '21 22:04 AndreasMatthias

Well, I found a workaround:

  1. Do not use @submodule.
  2. Instead use @module and option merge = true.

AndreasMatthias avatar Apr 14 '21 11:04 AndreasMatthias