Skip to content

Commit 66bb7f4

Browse files
committed
Remove special inline TOC setup
1 parent 556d7d8 commit 66bb7f4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/content/assets/js/main.js

-14
Original file line numberDiff line numberDiff line change
@@ -204,19 +204,6 @@ function initCookieNotice() {
204204
notice.classList.add(activeClass);
205205
}
206206

207-
function setupInlineToc() {
208-
// Set up the inline TOC's ability to expand and collapse.
209-
const toggle = document.querySelectorAll('.site-toc--inline__toggle');
210-
toggle.forEach(function (toggle) {
211-
toggle.addEventListener('click', (_) => {
212-
const inlineToc = document.getElementById('site-toc--inline');
213-
if (inlineToc) {
214-
inlineToc.classList.toggle('toc-collapsed');
215-
}
216-
});
217-
});
218-
}
219-
220207
// A pattern to remove terminal command markers when copying code blocks.
221208
const terminalReplacementPattern = /^(\s*\$\s*)|(C:\\(.*)>\s*)/gm;
222209

@@ -354,5 +341,4 @@ document.addEventListener("DOMContentLoaded", function(_) {
354341
setupTabs();
355342

356343
adjustToc();
357-
setupInlineToc();
358344
});

0 commit comments

Comments
 (0)