doc: Use a more compact rendering for method return types.
This commit is contained in:
parent
79dd2d731a
commit
d408ec7846
|
@ -785,6 +785,8 @@ local function sanitize_return_type(item, ldoc)
|
||||||
|
|
||||||
item.display_type = item.display_type .. "</span>"
|
item.display_type = item.display_type .. "</span>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
item.compact_signature = true
|
||||||
end
|
end
|
||||||
|
|
||||||
local no_prefix = {
|
local no_prefix = {
|
||||||
|
|
|
@ -316,7 +316,7 @@ span.inheritance {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
td.summarytype {
|
.summarytype {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: #a4c7ff;
|
color: #a4c7ff;
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
|
|
|
@ -155,11 +155,16 @@
|
||||||
# local dn = display_name(item)
|
# local dn = display_name(item)
|
||||||
# if item.sanitize_type then item.sanitize_type(item, ldoc) end
|
# if item.sanitize_type then item.sanitize_type(item, ldoc) end
|
||||||
<tr>
|
<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="shortname" $(nowrap)><a href="#$(item.name)">$(dn)</a></td>
|
||||||
<td class="summarytype" nowrap>$(item.display_type)</td>
|
<td class="summarytype" nowrap>$(item.display_type)</td>
|
||||||
# else
|
# 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
|
# end
|
||||||
<td colspan="$(item.inherited and 1 or 2)" class="summary">$(M(item.summary,item))</td>
|
<td colspan="$(item.inherited and 1 or 2)" class="summary">$(M(item.summary,item))</td>
|
||||||
# if item.inherited then
|
# if item.inherited then
|
||||||
|
|
Loading…
Reference in New Issue