From ea76990bb6014ce9bb72ee2d7364987ad7272b06 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman Date: Mon, 16 Feb 2026 19:26:49 -0500 Subject: [PATCH] Docs: Fixed some bugs int he ToC's javascript --- docs/javascripts/toc-collapse.js | 22 +++++++----- docs/stylesheets/extra.css | 59 ++++++++++++++++++++++++++++---- 2 files changed, 66 insertions(+), 15 deletions(-) diff --git a/docs/javascripts/toc-collapse.js b/docs/javascripts/toc-collapse.js index e04bf49a5..20d3f6a5c 100644 --- a/docs/javascripts/toc-collapse.js +++ b/docs/javascripts/toc-collapse.js @@ -74,15 +74,19 @@ userPinned.clear(); autoExpanded.clear(); - // Mark all nav roots so CSS can scope styles - sidebar.querySelectorAll("nav.md-nav").forEach(function (nav) { - nav.classList.add("md-nav--integrated"); - }); - - // Find every
  • inside the actual TOC (md-nav--secondary) that has - // nested children. We scope to the secondary nav to avoid touching the - // page-level nav item that wraps the TOC — that item contains a