From 099f82053e55d93d54b6563b19d3e6511e434b83 Mon Sep 17 00:00:00 2001 From: Mark Crossfield Date: Mon, 5 Sep 2022 16:07:56 +0100 Subject: [PATCH] Move mermaid integration code to assets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While they work where they are, anyone wanting to use this as a remote theme needs the files to be in [Jekyll’s assets directory](https://jekyllrb.com/docs/themes/#assets) so that they are available when the theme is fetched. --- _layouts/reveal.html | 4 ++-- {css => assets/css}/mermaid.css | 0 {js => assets/js}/mermaid/LICENSE.txt | 0 {js => assets/js}/mermaid/reveal-js-mermaid-plugin.js | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename {css => assets/css}/mermaid.css (100%) rename {js => assets/js}/mermaid/LICENSE.txt (100%) rename {js => assets/js}/mermaid/reveal-js-mermaid-plugin.js (100%) diff --git a/_layouts/reveal.html b/_layouts/reveal.html index be84823..4341a8e 100644 --- a/_layouts/reveal.html +++ b/_layouts/reveal.html @@ -21,7 +21,7 @@ {% endfor %} {% endif %} {% if site.mermaid_diagrams %} - + {% endif %} {% if site.highlight_style_sheet %} @@ -123,7 +123,7 @@ { src: '{{ site.reveal_path }}plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, {% if site.mermaid_diagrams %} { src: 'https://cdn.jsdelivr.net/npm/mermaid@9.1.6/dist/mermaid.min.js'}, - { src: '{{ 'js/mermaid/reveal-js-mermaid-plugin.js' | relative_url }}'}, + { src: '{{ 'assets/js/mermaid/reveal-js-mermaid-plugin.js' | relative_url }}'}, {% endif %} {% if site.reveal_notes_server %} { src: '{{ site.reveal_path }}socket.io/socket.io.js', async: true }, diff --git a/css/mermaid.css b/assets/css/mermaid.css similarity index 100% rename from css/mermaid.css rename to assets/css/mermaid.css diff --git a/js/mermaid/LICENSE.txt b/assets/js/mermaid/LICENSE.txt similarity index 100% rename from js/mermaid/LICENSE.txt rename to assets/js/mermaid/LICENSE.txt diff --git a/js/mermaid/reveal-js-mermaid-plugin.js b/assets/js/mermaid/reveal-js-mermaid-plugin.js similarity index 100% rename from js/mermaid/reveal-js-mermaid-plugin.js rename to assets/js/mermaid/reveal-js-mermaid-plugin.js