Splits index into documents and APIs.
This commit is contained in:
parent
d33edd21f3
commit
400dd20858
2 changed files with 195 additions and 47 deletions
|
|
@ -570,10 +570,10 @@ proc genOutFile(d: PDoc): PRope =
|
|||
|
||||
# Generate entries also for other entries in the toc.
|
||||
for tocPart in d.tocPart:
|
||||
# Use to indicate the current level for the output HTML.
|
||||
# Use spaces to indicate the current level for the output HTML.
|
||||
assert tocPart.n.level >= 0
|
||||
setIndexTerm(d[], tocPart.refname, tocPart.header.stripTOCHTML,
|
||||
repeatStr(max(0, tocPart.n.level), " ") & tocPart.header)
|
||||
repeatChar(max(0, tocPart.n.level), ' ') & tocPart.header)
|
||||
|
||||
let bodyname = if d.hasToc: "doc.body_toc" else: "doc.body_no_toc"
|
||||
content = ropeFormatNamedVars(getConfigVar(bodyname), ["title",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue