1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-25 03:57:11 -07:00

Better TOC.

This commit is contained in:
Cedric Beust 2015-12-01 20:15:48 -08:00
parent e52dfcc1da
commit ff89245e06
6 changed files with 16 additions and 9 deletions

View file

@ -105,7 +105,7 @@ function generateToc() {
//} else if (ind < currentLevel) {
// toc += '</ul>\n';
//}
toc += '<div class="toc-item"><a href="#' + section.id + '">' + content + '</a></div>\n';
toc += '<div class="toc-item toc-item-' + ind + '"><a href="#' + section.id + '">' + content + '</a></div>\n';
currentLevel = ind;
}
toc += "</ul>\n";