diff --git a/.gitignore b/.gitignore index 2adee22..e699289 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /site/js/*function-plot.js +/site/js/*function-plot.js.map /dist /site/partials/examples.html /site/partials/recipes.html diff --git a/site/js/site.js b/site/js/site.js index d4929c9..20cbbea 100644 --- a/site/js/site.js +++ b/site/js/site.js @@ -1080,6 +1080,9 @@ function onSiteDependenciesLoaded() { } ] }) + + // Important to leave the space before this line! + // It's because the script site.cjs parses this file to create the examples } $('#recipes').load('partials/recipes.html') diff --git a/site/partials/examples.html b/site/partials/examples.html index 314d745..0d7ee2c 100644 --- a/site/partials/examples.html +++ b/site/partials/examples.html @@ -786,11 +786,11 @@ } ] }) -}) +} $('#recipes').load('partials/recipes.html') $('#examples').load('partials/examples.html', function () { -$(document).trigger('markupLoaded') +onSiteDependenciesLoaded() $('pre code').each(function (i, block) { hljs.highlightBlock(block) })