From 8a2ab9f5dfef7699e1acb523dbc81013b7ed1557 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Tue, 6 Apr 2021 12:50:40 +0100 Subject: [PATCH] Feature: add speaker notes to Reveal.js template Reference in https://revealjs.com/plugins/#built-in-plugins --- share/jupyter/nbconvert/templates/reveal/index.html.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/jupyter/nbconvert/templates/reveal/index.html.j2 b/share/jupyter/nbconvert/templates/reveal/index.html.j2 index 54971a229..2abbf3b99 100644 --- a/share/jupyter/nbconvert/templates/reveal/index.html.j2 +++ b/share/jupyter/nbconvert/templates/reveal/index.html.j2 @@ -123,16 +123,18 @@ require( waitSeconds: 15 }, [ - "{{ reveal_url_prefix }}/dist/reveal.js" + "{{ reveal_url_prefix }}/dist/reveal.js", + "{{ reveal_url_prefix }}/plugin/notes/notes.js" ], - function(Reveal){ + function(Reveal, RevealNotes){ // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration Reveal.initialize({ controls: true, progress: true, history: true, transition: "{{reveal_transition}}", + plugins: [RevealNotes] }); var update = function(event){