finally fixed issue #32 (sorry Eric). Can now dump non-modules like scripts
This commit is contained in:
parent
16981eeb3e
commit
eb00a499b2
4
ldoc.lua
4
ldoc.lua
|
@ -604,11 +604,11 @@ if args.style == '!' or args.template == '!' then
|
|||
utils.writefile(path.join(tmpdir,name),require('ldoc.html.'..name:gsub('%.','_')))
|
||||
end
|
||||
if args.style == '!' then
|
||||
tmpwrite(ldoc.templ)
|
||||
tmpwrite(ldoc.css)
|
||||
args.style = tmpdir
|
||||
end
|
||||
if args.template == '!' then
|
||||
tmpwrite(ldoc.css)
|
||||
tmpwrite(ldoc.templ)
|
||||
args.template = tmpdir
|
||||
end
|
||||
end
|
||||
|
|
|
@ -917,7 +917,7 @@ local function dump_tags (tags)
|
|||
end
|
||||
|
||||
function Module:dump(verbose)
|
||||
if self.type ~= 'module' then return end
|
||||
if not doc.project_level(self.type) then return end
|
||||
print '----'
|
||||
print(self.type..':',self.name,self.summary)
|
||||
if self.description then print(self.description) end
|
||||
|
|
Loading…
Reference in New Issue