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:
Miran 2020-10-05 17:03:14 +02:00 • committed by GitHub
commit 112b11c154
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 220 additions and 73 deletions

View file

@ -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: