doc: Use a more compact rendering for method return types.

This commit is contained in:
Emmanuel Lepage Vallee 2020-02-29 21:16:11 -05:00
parent 79dd2d731a
commit d408ec7846
3 changed files with 10 additions and 3 deletions

View File

@ -785,6 +785,8 @@ local function sanitize_return_type(item, ldoc)
item.display_type = item.display_type .. "</span>"
end
item.compact_signature = true
end
local no_prefix = {

View File

@ -316,7 +316,7 @@ span.inheritance {
font-weight: normal;
}
td.summarytype {
.summarytype {
background-color: white;
color: #a4c7ff;
font-size: 85%;

View File

@ -155,11 +155,16 @@
# local dn = display_name(item)
# if item.sanitize_type then item.sanitize_type(item, ldoc) end
<tr>
# if item.display_type then
# if item.display_type and not item.compact_signature then
<td class="shortname" $(nowrap)><a href="#$(item.name)">$(dn)</a></td>
<td class="summarytype" nowrap>$(item.display_type)</td>
# else
<td class="name" $(nowrap)><a href="#$(item.name)">$(dn)</a></td>
<td class="name" $(nowrap)>
<a href="#$(item.name)">$(dn)</a>
# if item.display_type and item.compact_signature then
<span class="summarytype">$(item.display_type)</span>
# end
</td>
# end
<td colspan="$(item.inherited and 1 or 2)" class="summary">$(M(item.summary,item))</td>
# if item.inherited then