doc: Add a summary next to the property/method title.
This commit is contained in:
parent
46c86351a0
commit
ec7cac5dbf
|
@ -444,10 +444,10 @@ local named_args = {
|
||||||
|
|
||||||
-- Sections which are hidden by default, but visible when clicked.
|
-- Sections which are hidden by default, but visible when clicked.
|
||||||
local summarize = {
|
local summarize = {
|
||||||
emits = {index = 1, title = "Signals" },
|
emits = {index = 1, title = "signals" },
|
||||||
propemits = {index = 2, title = "Signals" },
|
propemits = {index = 2, title = "signals" },
|
||||||
usebeautiful = {index = 3, title = "Theme variables"},
|
usebeautiful = {index = 3, title = "theme variables"},
|
||||||
propbeautiful = {index = 4, title = "Theme variables"}
|
propbeautiful = {index = 4, title = "theme variables"}
|
||||||
}
|
}
|
||||||
|
|
||||||
local delimiter_for_tag = {
|
local delimiter_for_tag = {
|
||||||
|
|
|
@ -471,3 +471,14 @@ pre .url { color: #272fc2; text-decoration: underline; }
|
||||||
.show_more {
|
.show_more {
|
||||||
display: default
|
display: default
|
||||||
}
|
}
|
||||||
|
.show_more_button {
|
||||||
|
display:block;
|
||||||
|
position: relative;
|
||||||
|
padding-top: 5px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
padding-right: 15px;
|
||||||
|
padding-left: 15px;
|
||||||
|
border: 1px solid rgb(210, 210, 220);
|
||||||
|
color: rgb(128, 128, 128);
|
||||||
|
border-radius: 7px;
|
||||||
|
}
|
||||||
|
|
|
@ -11,12 +11,12 @@
|
||||||
# end
|
# end
|
||||||
<script>
|
<script>
|
||||||
function show_extra(id) {
|
function show_extra(id) {
|
||||||
var cur = document.getElementById(id).className
|
var cur = document.getElementById("item"+id).className
|
||||||
|
|
||||||
if (cur == "hide_extra")
|
if (cur == "hide_extra") {
|
||||||
document.getElementById(id).className = "show_more"
|
document.getElementById("item"+id).className = "show_more"
|
||||||
else
|
document.getElementById("button"+id).className = "hide_extra"
|
||||||
document.getElementById(id).className = "hide_extra"
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -214,13 +214,21 @@
|
||||||
<span class="inheritance">
|
<span class="inheritance">
|
||||||
· Inherited from
|
· Inherited from
|
||||||
<a href="$(item.display_inheritance)">$(item.display_inheritance)</a>
|
<a href="$(item.display_inheritance)">$(item.display_inheritance)</a>
|
||||||
# end
|
</span>
|
||||||
|
# end -- display_inheritance
|
||||||
# if item.display_type then
|
# if item.display_type then
|
||||||
<span class="proptype">($(item.display_type))</span>
|
<span class="proptype">($(item.display_type))</span>
|
||||||
# end
|
# end
|
||||||
|
<span class="baseclass" $(nowrap)>
|
||||||
# if item.inherited then
|
# if item.inherited then
|
||||||
<span class="baseclass" $(nowrap)> · Inherited from $(item.baseclass)</span>
|
· Inherited from $(item.baseclass)
|
||||||
# end
|
# end
|
||||||
|
# if item.extra_summary then
|
||||||
|
# for _, col in ldoc.ipairs(item.extra_summary) do
|
||||||
|
· $(col.count.." "..col.title)
|
||||||
|
# end -- summary col
|
||||||
|
# end -- summary
|
||||||
|
</span>
|
||||||
# if ldoc.prettify_files and ldoc.is_file_prettified[item.module.file.filename] then
|
# if ldoc.prettify_files and ldoc.is_file_prettified[item.module.file.filename] then
|
||||||
<a style="float:right;" href="$(ldoc.source_ref(item))">line $(item.lineno)</a>
|
<a style="float:right;" href="$(ldoc.source_ref(item))">line $(item.lineno)</a>
|
||||||
# end
|
# end
|
||||||
|
@ -316,10 +324,14 @@
|
||||||
</ul>
|
</ul>
|
||||||
# end -- if usage
|
# end -- if usage
|
||||||
|
|
||||||
|
# if item.extra_summary then
|
||||||
<br />
|
<br />
|
||||||
<a class="deprecated_h2" onclick="show_extra('$("item"..item.uid)')">
|
<center id=button$(item.uid)>
|
||||||
|
<a class="show_more_button" onclick="show_extra('$(item.uid)')">
|
||||||
Click to display more
|
Click to display more
|
||||||
</a>
|
</a>
|
||||||
|
</center>
|
||||||
|
# end
|
||||||
|
|
||||||
<span id=item$(item.uid) class="hide_extra">
|
<span id=item$(item.uid) class="hide_extra">
|
||||||
# if ldoc.custom_tags then
|
# if ldoc.custom_tags then
|
||||||
|
|
Loading…
Reference in New Issue