Skip to content

Commit

Permalink
Deploying to gh-pages from @ 64e9d3f 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
rickshar committed Oct 15, 2024
1 parent 254f193 commit 85c4bcd
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@
margin-right: 0!important;
}
.page_toc {
top: 0;
position: static!important;
margin-top:20px!important;
}
.page_toc.scrolled {
position: fixed!important;
}
.markdown-section {
padding: 20px!important;
}
Expand Down Expand Up @@ -74,6 +78,9 @@
.sidebar-toggle {
top: 134px!important;
}
.sidebar-toggle.scrolled {
top: 20px!important;
}
.page_toc .lv3 {
display:none;
}
Expand All @@ -85,7 +92,7 @@
margin-left:300px!important;
}
}
</style>
</style>

</head>

Expand Down Expand Up @@ -161,6 +168,40 @@ <h2>Spot by NetApp Documentation</h2>
<script type="text/javascript"
src="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse@1.3.5/dist/docsify-sidebar-collapse.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script>

<!-- Sticky Nav -->
<script type="text/javascript">
(function () {
function tocPlugin(hook) {
hook.doneEach(function () {
const observer = new MutationObserver(function (mutations) {
mutations.forEach(function () {
const tocElement = document.querySelector(".page_toc");

// Moved function declaration outside the if block
function checkScroll() {
if (window.scrollY > 100) {
tocElement.classList.add("scrolled");
} else {
tocElement.classList.remove("scrolled");
}
}

if (tocElement) {
window.addEventListener("scroll", checkScroll);
observer.disconnect();
}
});
});
observer.observe(document.body, { childList: true, subtree: true });
});
}

window.$docsify.plugins = [].concat(tocPlugin, window.$docsify.plugins || []);
})();
</script>


</body>

</html>

0 comments on commit 85c4bcd

Please sign in to comment.