diff options
author | Miran <narimiran@disroot.org> | 2020-10-05 17:03:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 17:03:14 +0200 |
commit | 112b11c154af1f56b8c842b5723e6097d40d9e60 (patch) | |
tree | ae6f038d5f2b5f7a6ec175ef9bc44474b41e7aa3 /config | |
parent | 5967b6f60f669f343ed089a4cd09f324cbfc5c69 (diff) | |
download | Nim-112b11c154af1f56b8c842b5723e6097d40d9e60.tar.gz |
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
Diffstat (limited to 'config')
-rw-r--r-- | config/nimdoc.cfg | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index 9a56fdaae..a6a402bab 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -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: |