diff options
Diffstat (limited to 'config/nimdoc.cfg')
-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: |