// Prepend a Material icon to selected top-level nav entries (section titles and // a couple of standalone links) in the sidebar, matched by exact label text. // Nav labels are plain text in mkdocs.yml, so the theme cannot carry an icon for // them — this adds it on the client side. (function () { var ICONS = { 'Getting started': "", 'User guide': "", 'Will-Executors': "", 'Protocol': "", 'Example inheritance plan': "", 'How BAL compares': "", 'Security & Privacy': "" }; function decorate() { document.querySelectorAll('.md-nav--primary label.md-nav__link, .md-nav--primary .md-nav__item--section > .md-nav__link, .md-nav--primary a.md-nav__link').forEach(function (label) { var span = label.querySelector('.md-ellipsis'); if (!span) return; var name = span.textContent.trim(); if (!ICONS[name] || label.querySelector('.nav-sec-ico')) return; var holder = document.createElement('span'); holder.className = 'nav-sec-ico'; holder.innerHTML = ICONS[name]; label.insertBefore(holder, label.firstChild); }); } if (document.readyState !== 'loading') decorate(); else document.addEventListener('DOMContentLoaded', decorate); })();