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:
parent
e52dfcc1da
commit
ff89245e06
6 changed files with 16 additions and 9 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue