module at-references now working! No-contents warning fixed

This commit is contained in:
steve donovan 2013-03-23 17:51:55 +02:00
parent a8ea31b01d
commit a7b01abd03
2 changed files with 3 additions and 1 deletions

View File

@ -73,6 +73,8 @@ function html.generate_output(ldoc, args, project)
function ldoc.href(see) function ldoc.href(see)
if see.href then -- explict reference, e.g. to Lua manual if see.href then -- explict reference, e.g. to Lua manual
return see.href return see.href
elseif doc.Module:class_of(see) then
return ldoc.ref_to_module(see)
else else
return ldoc.ref_to_module(see.mod)..'#'..see.name return ldoc.ref_to_module(see.mod)..'#'..see.name
end end

View File

@ -313,7 +313,7 @@ local function parse_file(fname, lang, package, args)
add_module(tags,module_found,old_style) add_module(tags,module_found,old_style)
tags = nil tags = nil
if not t then if not t then
F:warning(fname,' contains no items\n','warning',1) F:warning('contains no items','warning',1)
break; break;
end -- run out of file! end -- run out of file!
-- if we did bump into a doc comment, then we can continue parsing it -- if we did bump into a doc comment, then we can continue parsing it