Picks the correct symbol text for theindex embedded tocs.
This commit is contained in:
parent
5962119feb
commit
b1f26ae542
1 changed files with 3 additions and 2 deletions
|
|
@ -410,12 +410,13 @@ proc generateDocumentationTOC(entries: seq[TIndexEntry]):
|
|||
if rawLevel < 1:
|
||||
# This is a normal symbol, push it *inside* one level from the last one.
|
||||
levels[L].level = level + 1
|
||||
# Also, ignore the linkTitle and use directly the keyword.
|
||||
levels[L].text = entry.keyword
|
||||
else:
|
||||
# The level did change, update the level indicator.
|
||||
level = rawLevel
|
||||
levels[L].level = rawLevel
|
||||
|
||||
levels[L].text = rawText
|
||||
levels[L].text = rawText
|
||||
inc L
|
||||
|
||||
# Now generate hierarchical lists based on the precalculated levels.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue