Skip to content

Commit

Permalink
🐛 Fix(slide): Remove unused dependencies (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
LocTran committed Oct 30, 2020
1 parent bc039b4 commit a3b33f1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions layout/includes/slide/script.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ script(src=url_for("https://cdn.jsdelivr.net/npm/reveal.js@latest/plugin/zoom/zo
script(src=url_for("https://cdn.jsdelivr.net/npm/reveal.js@latest/plugin/search/search.js"))
script(src=url_for("https://cdn.jsdelivr.net/npm/reveal.js@latest/plugin/notes/notes.js"))
script(src=url_for("https://cdn.jsdelivr.net/npm/reveal.js@latest/plugin/math/math.js"))
script(src=url_for("https://cdn.jsdelivr.net/npm/reveal.js@latest/plugin/markdown/markdown.js"))
script(src=url_for("https://cdn.jsdelivr.net/npm/reveal.js@latest/plugin/highlight/highlight.js"))
- var slide = page.slide || theme.slide
- var defaultSlide = theme.slide
- var mouseWheel = slide.mouseWheel || defaultSlide.mouseWheel
Expand Down Expand Up @@ -42,6 +44,9 @@ script.
smartypants: true
},
plugins: [
RevealMarkdown,
// Markdown
RevealHighlight
// Search
RevealSearch,
// Speaker notes
Expand All @@ -50,15 +55,5 @@ script.
RevealZoom,
// MathJax
RevealMath
],
dependencies: [
{ src: 'https://cdn.jsdelivr.net/npm/reveal.js@latest/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
// Syntax highlight for <code> elements
{ src: 'https://cdn.jsdelivr.net/npm/reveal.js@latest/plugin/highlight/highlight.js', async: true, callback: function() {
// issue #218
setTimeout(function () {
hljs.initHighlighting();
}, 0)
} },
]
});

0 comments on commit a3b33f1

Please sign in to comment.