We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
index.html
v doc -f html -m -readme
1 parent 58a8fc6 commit 8a515c0Copy full SHA for 8a515c0
cmd/tools/vdoc/theme/doc.js
@@ -12,6 +12,9 @@
12
function setupScrollSpy() {
13
const mainContent = document.querySelector('#main-content');
14
const toc = mainContent.querySelector('.doc-toc');
15
+ if (!toc) {
16
+ return;
17
+ }
18
const sections = mainContent.querySelectorAll('section');
19
const sectionPositions = Array.from(sections).map((section) => section.offsetTop);
20
let lastActive = null;
0 commit comments