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

@ -78,6 +78,11 @@ proc renderType(n: PNode): string =
result = renderType(n[0]) & '['
for i in 1..<n.len: result.add(renderType(n[i]) & ',')
result[^1] = ']'
of nkCommand:
result = renderType(n[0])
for i in 1..<n.len:
if i > 1: result.add ", "
result.add(renderType(n[i]))
else: result = ""