Skip to content

Commit

Permalink
fix: simplify TOC item creation in toc.html
Browse files Browse the repository at this point in the history
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
  • Loading branch information
leecalcote committed Jan 1, 2025
1 parent c09f413 commit 0c092cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_includes/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
var div_text = section.text().split('¶')[0];
var parent = $("#" + div_id)
var content = '<li id="link_' + div_id + '" class="md-nav__item"><a class="md-nav__link" href="#' + div_id + '" title="' + div_text +'">' + div_text +'</a></li>';
$(document).find(toc).append($('<div>').text(content).html());
$(document).find(toc).append(content);
}

// Add section code to subnavigation
Expand Down

0 comments on commit 0c092cb

Please sign in to comment.