Skip to content

Commit

Permalink
Move mermaid integration code to assets
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mrmanc committed Sep 5, 2022
1 parent 5ef875a commit 099f820
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/reveal.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% endfor %}
{% endif %}
{% if site.mermaid_diagrams %}
<link rel="stylesheet" href="{{ 'css/mermaid.css' | relative_url }}">
<link rel="stylesheet" href="{{ 'assets/css/mermaid.css' | relative_url }}">
{% endif %}
<!-- For syntax highlighting -->
{% if site.highlight_style_sheet %}
Expand Down Expand Up @@ -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/[email protected]/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 },
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 099f820

Please sign in to comment.