diff --git a/documentation/index.html b/documentation/index.html index d3907c0..45f3593 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -40,25 +40,7 @@
-
' + + '' + ; + +function generateNavBar(index) { + var result = before; + for (var i = 0; i < content.length; i++) { + var cls = ""; + if (index == i) { + cls = 'class="active"'; + } + var c = content[i]; + result += '
  • ' + c.title + '
  • '; + } + result += after; + + + var navBarElement = document.getElementById("kobalt-navbar"); + navBarElement.innerHTML = result; +} + +// +// Table of contents +// + function countersToHeading(counters) { var result = ""; for (var i = 0; i < counters.length; i++) { @@ -56,7 +110,12 @@ function generateToc() { if (tocTag) { tocTag.innerHTML = toc; } else { - alert("Couldn't find an id " + tocId); + console.log("Couldn't find an id " + tocId); } } + +function generateKobalt(index) { + generateToc(); + generateNavBar(index); +} diff --git a/plug-in/index.html b/plug-in/index.html index c99d877..d278c3d 100644 --- a/plug-in/index.html +++ b/plug-in/index.html @@ -40,25 +40,7 @@
    -