From 719de27efc4435f6cc285e1c681d6488460e843e 2013-07-05 18:34:23 From: Min RK Date: 2013-07-05 18:34:23 Subject: [PATCH] Merge pull request #3533 from damianavila/reveal_cdn Use a CDN to get reveal.js library add reveal.url_prefix configurable --- diff --git a/IPython/nbconvert/exporters/reveal.py b/IPython/nbconvert/exporters/reveal.py index 3caf4c6..d42f599 100644 --- a/IPython/nbconvert/exporters/reveal.py +++ b/IPython/nbconvert/exporters/reveal.py @@ -49,6 +49,13 @@ class RevealExporter(BasicHTMLExporter): @property def default_config(self): - c = Config({'CSSHTMLHeaderTransformer':{'enabled':True}}) + c = Config({ + 'CSSHTMLHeaderTransformer':{ + 'enabled':True + }, + 'RevealHelpTransformer':{ + 'enabled':True, + }, + }) c.merge(super(RevealExporter,self).default_config) return c diff --git a/IPython/nbconvert/templates/reveal.tpl b/IPython/nbconvert/templates/reveal.tpl index bad885e..ab035cc 100644 --- a/IPython/nbconvert/templates/reveal.tpl +++ b/IPython/nbconvert/templates/reveal.tpl @@ -12,19 +12,20 @@ - - + + + - + {% for css in resources.inlining.css -%} @@ -96,7 +97,7 @@ text-align: inherit; - @@ -111,9 +112,9 @@ to get enable social buttons. --> - + - +