Condense sticky nav TOC to h1 only. Add deep TOC to top of each page. Adjust developer guide headings.
This commit is contained in:
@@ -417,7 +417,7 @@
|
||||
if(pageName === linkName) {
|
||||
var tocUl = $(this).closest('li').append('<ul>').find('ul');
|
||||
tocUl.removeClass(); // Classes are automatically added to <ul> elements by something else
|
||||
tocUl.toc({content: "#doco-content", headings: "h1,h2"});
|
||||
tocUl.toc({content: "#doco-content", headings: "h1"});
|
||||
tocUl.addClass('toc-content');
|
||||
if( $(window).height() > 499) {
|
||||
tocUl.sticky({topSpacing:$('nav').outerHeight(true), zIndex: 1000});
|
||||
|
||||
Reference in New Issue
Block a user