Sha256: c5a177ee2f1fcd2f490f8de849ac1e3d3de1e313a1de0bf1dbc8955636e72b8b
Contents?: true
Size: 1.62 KB
Versions: 4
Compression:
Stored size: 1.62 KB
Contents
$(document).ready(function() { let highlight = new URL(location.href).searchParams.get("highlight"); SphinxRtdTheme.Navigation.reset = function() { const link = $(".wy-menu-vertical").find(`[href="${location.pathname}"]`); if (link.length > 0) { $(".wy-menu-vertical .current").removeClass("current"); link.addClass("current"); link.closest("li.toctree-l1").parent().addClass("current"); link.closest("li.toctree-l1").addClass("current"); link.closest("li.toctree-l2").addClass("current"); link.closest("li.toctree-l3").addClass("current"); link.closest("li.toctree-l4").addClass("current"); link.closest("li.toctree-l5").addClass("current"); } }; SphinxRtdTheme.Navigation.enable(true); if (highlight) { $(".section").find("*").each(function() { try { if (this.outerHTML.match(new RegExp(highlight, "im"))) { $(this).addClass("highlighted-box"); } } catch (e) { feedback(["highlight", e.message]); } }); $(".section").find(".highlighted-box").each(function() { if (($(this).find(".highlighted-box").length > 0)) { $(this).removeClass("highlighted-box"); } }); } for (let item in ui.admonition) { let content = $(`.language-${item}`).html(); $(`.language-${item}`).replaceWith(`<div class="admonition ${item}"><p class="admonition-title">${ui.admonition[item]}</p><p>${content}</p></div>`); } anchors.add(); });
Version data entries
4 entries across 4 versions & 1 rubygems