fix(ldoc.ltp): extra-header tag arrangement (#3318)

This commit is contained in:
Aire-One 2021-04-05 18:42:15 +02:00 committed by GitHub
parent 022be39a3f
commit 9807ccd5e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 16 deletions

View File

@ -193,8 +193,8 @@
# end -- for
</ul>
# end -- if usage
<div class="extra-header">
# if module.tags.supermodule or module.tags.knownusage then
<div class="extra-header">
# if module.tags.supermodule then
<div class="extra-header__section">
<h3>Class Hierarchy</h3>
<div class="inheritance">
@ -216,15 +216,16 @@
</li>
# end
</ul>
# end -- module.tags.supermodule
# end -- function draw_hierary_recursifly
# draw_hierary_recursifly(#hierarchy)
</div>
# end
</div>
# end -- module.tags.supermodule
# if module.tags.include then
$(M(ldoc.include_file(module.tags.include)))
# end
</div>
# if module.info then
<div class="extra-header__section">
<h3>Info:</h3>
@ -235,25 +236,19 @@
</ul>
</div>
# end -- if module.info
# if module.see then
<div class="extra-header__section">
# local li,il = use_li(module.see)
# local list_or_p =(#module.see > 1) and 'ul' or 'p'
<h3>See also:</h3>
# if #module.see > 1 then
<ul>
# else
<p>
# end
<$(list_or_p)>
# for see in iter(module.see) do
$(li)<a href="$(ldoc.href(see))">$(see.label)</a>$(il)
# end -- for
# if #module.see > 1 then
</ul>
# else
</p>
# end
</$(list_or_p)>
</div>
# end -- if see
# end -- if module.see
</div>