From 01a2a03e2e5d16dbf64efb9b2681b6cd12934c65 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman Date: Mon, 9 Mar 2026 23:13:06 -0400 Subject: [PATCH] Docs: Improved the navigation seperating out ToC from top nac bar --- docs/javascripts/toc-collapse.js | 374 ++---------------------------- docs/overrides/partials/tabs.html | 74 ++++++ docs/stylesheets/extra.css | 292 +++++++++++++++++------ mkdocs.yml | 3 + 4 files changed, 319 insertions(+), 424 deletions(-) create mode 100644 docs/overrides/partials/tabs.html diff --git a/docs/javascripts/toc-collapse.js b/docs/javascripts/toc-collapse.js index 363c518b6..bfe213dfa 100644 --- a/docs/javascripts/toc-collapse.js +++ b/docs/javascripts/toc-collapse.js @@ -10,6 +10,9 @@ * - When the reader scrolls past a section, any items that were only * auto-expanded (not user-pinned) collapse back down. * - Works with mkdocs-material instant-loading / SPA navigation. + * + * Page navigation is handled by the top navbar tabs + dropdowns. + * This script only manages the TOC (md-nav--secondary) in the left sidebar. */ (function () { "use strict"; @@ -68,11 +71,9 @@ // // Scans `containerEl` for
  • items with nested