code: function activeLinks(sidebarContainer) {
    const linksContainer = sidebarContainer.querySelector('ul');
  
    linksContainer.addEventListener('click', e => {
      if (e.target.tagName === 'A') {
        Array.from(linksContainer.querySelectorAll('a')).forEach(item =>
          item.classList.remove('active')
        );
        e.target.classList.add('active');
      }
    });
  }
docs: The Following code is used to set active items On the documentation sidebar depending on the clicked item