ldoc.output was not set before the index
This commit is contained in:
parent
742370d3ff
commit
0b181d3b66
5
ldoc.lua
5
ldoc.lua
|
@ -139,10 +139,7 @@ local function read_ldoc_config (fname)
|
||||||
return directory, not_found
|
return directory, not_found
|
||||||
end
|
end
|
||||||
|
|
||||||
local function quote (s)
|
local quote = tools.quote
|
||||||
return "'"..s.."'"
|
|
||||||
end
|
|
||||||
|
|
||||||
--- processing command line and preparing for output ---
|
--- processing command line and preparing for output ---
|
||||||
|
|
||||||
local F
|
local F
|
||||||
|
|
|
@ -88,6 +88,7 @@ function html.generate_output(ldoc, args, project)
|
||||||
end
|
end
|
||||||
|
|
||||||
local css = ldoc.css
|
local css = ldoc.css
|
||||||
|
ldoc.output = args.output
|
||||||
|
|
||||||
-- in single mode there is one module and the 'index' is the
|
-- in single mode there is one module and the 'index' is the
|
||||||
-- documentation for that module.
|
-- documentation for that module.
|
||||||
|
@ -116,7 +117,6 @@ function html.generate_output(ldoc, args, project)
|
||||||
-- in single mode, we exclude any modules since the module has been done;
|
-- in single mode, we exclude any modules since the module has been done;
|
||||||
-- this step is then only for putting out any examples or topics
|
-- this step is then only for putting out any examples or topics
|
||||||
ldoc.css = '../'..css
|
ldoc.css = '../'..css
|
||||||
ldoc.output = args.output
|
|
||||||
for kind, modules in project() do
|
for kind, modules in project() do
|
||||||
kind = kind:lower()
|
kind = kind:lower()
|
||||||
if not ldoc.single or ldoc.single and kind ~= 'modules' then
|
if not ldoc.single or ldoc.single and kind ~= 'modules' then
|
||||||
|
|
Loading…
Reference in New Issue