Skip to content

Commit 099f820

Browse files
committed
Move mermaid integration code to assets
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.
1 parent 5ef875a commit 099f820

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

_layouts/reveal.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% endfor %}
2222
{% endif %}
2323
{% if site.mermaid_diagrams %}
24-
<link rel="stylesheet" href="{{ 'css/mermaid.css' | relative_url }}">
24+
<link rel="stylesheet" href="{{ 'assets/css/mermaid.css' | relative_url }}">
2525
{% endif %}
2626
<!-- For syntax highlighting -->
2727
{% if site.highlight_style_sheet %}
@@ -123,7 +123,7 @@
123123
{ src: '{{ site.reveal_path }}plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
124124
{% if site.mermaid_diagrams %}
125125
{ src: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js'},
126-
{ src: '{{ 'js/mermaid/reveal-js-mermaid-plugin.js' | relative_url }}'},
126+
{ src: '{{ 'assets/js/mermaid/reveal-js-mermaid-plugin.js' | relative_url }}'},
127127
{% endif %}
128128
{% if site.reveal_notes_server %}
129129
{ src: '{{ site.reveal_path }}socket.io/socket.io.js', async: true },
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)