add header anchor links to the coure pages (#1958)

This commit is contained in:
trean
2025-10-22 15:41:28 +02:00
committed by GitHub
parent d2f00b5972
commit efc9013691
@@ -8,7 +8,7 @@ anchors.options.class = 'text-decoration-none';
document.addEventListener('DOMContentLoaded', function (event) {
anchors.add('.qdrant-post__body :is(h1, h2, h3, h4, h5, h6)');
if (/documentation|articles/.test(window.location?.pathname)) {
if (/documentation|articles|course/.test(window.location?.pathname)) {
anchors.add('.documentation-article > :is(h1, h2, h3, h4, h5, h6)');
}