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
|
|
@ -29,6 +29,7 @@ proc shouldProcess(g: PGen): bool =
|
|||
template closeImpl(body: untyped) {.dirty.} =
|
||||
var g = PGen(p)
|
||||
let useWarning = sfMainModule notin g.module.flags
|
||||
let groupedToc = true
|
||||
if shouldProcess(g):
|
||||
body
|
||||
try:
|
||||
|
|
@ -38,7 +39,7 @@ template closeImpl(body: untyped) {.dirty.} =
|
|||
|
||||
proc close(graph: ModuleGraph; p: PPassContext, n: PNode): PNode =
|
||||
closeImpl:
|
||||
writeOutput(g.doc, useWarning)
|
||||
writeOutput(g.doc, useWarning, groupedToc)
|
||||
|
||||
proc closeJson(graph: ModuleGraph; p: PPassContext, n: PNode): PNode =
|
||||
closeImpl:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue