fix #16901: sidebar groups now works with all routines, not just proc,func (#17416)

* fix #16901: sidebar groups now works with all routines, not just proc,func

* fix tests
This commit is contained in:
Timothee Cour
2021-03-18 23:17:09 -07:00
committed by GitHub
parent 9e1a2e9b63
commit 452366982d
3 changed files with 91 additions and 34 deletions

View File

@@ -1245,7 +1245,7 @@ proc genOutFile(d: PDoc, groupedToc = false): Rope =
renderTocEntries(d[], j, 1, tmp)
var toc = tmp.rope
for i in TSymKind:
var shouldSort = i in {skProc, skFunc} and groupedToc
var shouldSort = i in routineKinds and groupedToc
genSection(d, i, shouldSort)
toc.add(d.toc[i])
if toc != nil: