You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to fix this in ldoc/html.lua in the function ldoc.source_ref() which I changed to this:
function ldoc.source_ref (fun)
local path
local ext
path, ext = tools.split_dotted_name(fun.module.file.filename)
local modname = fun.module.name
local pack,name = tools.split_dotted_name(modname)
if not pack then
name = modname
end
-- return (ldoc.single and "" or "../").."source/"..name..'.lua.html#'..fun.lineno
return (ldoc.single and "" or "../").."source/"..name..'.'..ext..'.html#'..fun.lineno
end
With the following in config.ld:
add_language_extension('ttslua','lua')
prettify_files=true
The output source is correctly generated as in:
output/source/vector.ttslua.html
However, the source code links generated in the output/modules/vector.html module file is to:
output/source/vector.lua.html
which is incorrect.
Perhaps I am missing a config setting?
The text was updated successfully, but these errors were encountered: