better support for one-column style
This commit is contained in:
parent
aae0c9a5d1
commit
a41792c56c
|
@ -53,13 +53,15 @@
|
||||||
# if not ldoc.no_summary then
|
# if not ldoc.no_summary then
|
||||||
# local this_mod = module and module.name
|
# local this_mod = module and module.name
|
||||||
# for kind, mods, type in ldoc.kinds() do
|
# for kind, mods, type in ldoc.kinds() do
|
||||||
|
# if not ldoc.kinds_allowed or ldoc.kinds_allowed[type] then
|
||||||
<h2>$(kind)</h2>
|
<h2>$(kind)</h2>
|
||||||
<ul>
|
<ul>
|
||||||
# for mod in mods() do
|
# for mod in mods() do
|
||||||
# if mod.name == this_mod then -- highlight current module, link to others
|
# if mod.name == this_mod then -- highlight current module, link to others
|
||||||
<li><strong>$(mod.name)</strong></li>
|
<li><strong>$(mod.name)</strong></li>
|
||||||
# else
|
# else
|
||||||
<li><a href="$(ldoc.ref_to_module(mod))">$(mod.name)</a></li>
|
<li><a href="$(ldoc.ref_to_module(mod))">$(mod.name)</a></li>
|
||||||
|
# end
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
#end
|
#end
|
||||||
|
|
|
@ -267,3 +267,9 @@ dl.table dt, dl.function dt {border-top: 1px solid #ccc; padding-top: 1em;}
|
||||||
dl.table dd, dl.function dd {padding-bottom: 1em; margin: 10px 0 0 20px;}
|
dl.table dd, dl.function dd {padding-bottom: 1em; margin: 10px 0 0 20px;}
|
||||||
dl.table h3, dl.function h3 {font-size: .95em;}
|
dl.table h3, dl.function h3 {font-size: .95em;}
|
||||||
|
|
||||||
|
/* styles for prettification of source */
|
||||||
|
.keyword {font-weight: bold; color: #6666AA; }
|
||||||
|
.number { color: #AA6666; }
|
||||||
|
.string { color: #8888AA; }
|
||||||
|
.comment { color: #666600; }
|
||||||
|
.prepro { color: #006666; }
|
||||||
|
|
|
@ -92,6 +92,9 @@ function html.generate_output(ldoc, args, project)
|
||||||
-- 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.
|
||||||
ldoc.module = ldoc.single
|
ldoc.module = ldoc.single
|
||||||
|
if ldoc.single and args.one then
|
||||||
|
ldoc.kinds_allowed = {module = true, topic = true}
|
||||||
|
end
|
||||||
ldoc.root = true
|
ldoc.root = true
|
||||||
local out,err = template.substitute(module_template,{
|
local out,err = template.substitute(module_template,{
|
||||||
ldoc = ldoc,
|
ldoc = ldoc,
|
||||||
|
|
Loading…
Reference in New Issue