github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/assets/js/markmap.js (about)

     1  {{ with .Site.Params.markmap }}
     2  {{ if .enable }}
     3  
     4  
     5  (function($) {
     6      var needMarkmap = false;
     7      $('.language-markmap').parent().replaceWith(function() {
     8          needMarkmap = true;
     9          return $('<div class="markmap">').text($(this).text());
    10      });
    11  
    12      const { markmap } = window;
    13      if(needMarkmap) {
    14          markmap.autoLoader.renderAll();
    15      }
    16  
    17  })(jQuery);
    18  {{ end }}
    19  {{ end }}