group procs of the same name in TOC (#15487)
* group procs of the same name in TOC * correctly show `sink` parameters in TOC * no need to reinvent the wheel - `mgetorPut` exists * better setting of text color [ci skip] * fix CSS for better alignment
This commit is contained in:
parent
5967b6f60f
commit
112b11c154
8 changed files with 220 additions and 73 deletions
|
|
@ -24,6 +24,12 @@ doc.section.toc = """
|
|||
</li>
|
||||
"""
|
||||
|
||||
doc.section.toc2 = """
|
||||
<ul class="simple nested-toc-section">$plainName
|
||||
$content
|
||||
</ul>
|
||||
"""
|
||||
|
||||
# Chunk of HTML emitted for each entry in the HTML table of contents.
|
||||
# Available variables are:
|
||||
# * $desc: the actual docstring of the item.
|
||||
|
|
@ -54,6 +60,14 @@ doc.item.toc = """
|
|||
title="$header_plain">$name<span class="attachedType">$attype</span></a></li>
|
||||
"""
|
||||
|
||||
# This is used for TOC items which are grouped by the same name (e.g. procs).
|
||||
doc.item.tocTable = """
|
||||
<li><a class="reference" href="#$itemSymOrIDEnc"
|
||||
title="$header_plain">$itemSymOrID<span class="attachedType">$attype</span></a></li>
|
||||
"""
|
||||
|
||||
|
||||
|
||||
# HTML rendered for doc.item's seeSrc variable. Note that this will render to
|
||||
# the empty string if you don't pass anything through --git.url. Available
|
||||
# substitutaion variables here are:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue