Skip to content

Commit

Permalink
javascript/doc-structure/sitepage-2022: Make toc work with toc 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
r12a committed Apr 21, 2022
1 parent ef0d60a commit 829dc23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascript/doc-structure/sitepage-2022.js
Expand Up @@ -138,10 +138,10 @@ var mainNavigation = '<div id="search">'+g.siteSearch+'</div>'+
versionList+
g.disclaimer+
' </div>'
if (f.toc && f.toc === 'no') { } //do nothing
if (f.toc && f.toc === 'no') { console.log('Doing nothing wrt toc.') } //do nothing
else mainNavigation += '<nav class="noprint" id="level2toc">'+
' <h2 id="internal-links" class="notoc">'+s.onThisPage+'</h2>'+
' <div id="toclocation"> </div>'+
' <div id="toc"> </div>'+
' </nav>'+
' <nav id="relatedlinks"></nav>'+
' </div>'
Expand Down Expand Up @@ -252,7 +252,7 @@ function completePage () {
document.getElementById('relatedlinks').innerHTML = sidebarExtras
}
fillinTranslations()
if (document.getElementById("toclocation")) createtoc(false);
if (document.getElementById("toc")) createtoc(3);
getURLs()
}

Expand Down

0 comments on commit 829dc23

Please sign in to comment.