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('%.','_')))
|
utils.writefile(path.join(tmpdir,name),require('ldoc.html.'..name:gsub('%.','_')))
|
||||||
end
|
end
|
||||||
if args.style == '!' then
|
if args.style == '!' then
|
||||||
tmpwrite(ldoc.templ)
|
tmpwrite(ldoc.css)
|
||||||
args.style = tmpdir
|
args.style = tmpdir
|
||||||
end
|
end
|
||||||
if args.template == '!' then
|
if args.template == '!' then
|
||||||
tmpwrite(ldoc.css)
|
tmpwrite(ldoc.templ)
|
||||||
args.template = tmpdir
|
args.template = tmpdir
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -917,7 +917,7 @@ local function dump_tags (tags)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Module:dump(verbose)
|
function Module:dump(verbose)
|
||||||
if self.type ~= 'module' then return end
|
if not doc.project_level(self.type) then return end
|
||||||
print '----'
|
print '----'
|
||||||
print(self.type..':',self.name,self.summary)
|
print(self.type..':',self.name,self.summary)
|
||||||
if self.description then print(self.description) end
|
if self.description then print(self.description) end
|
||||||
|
|
Loading…
Reference in New Issue