##// END OF EJS Templates
Added some changes covering Mathias's commentaries.
damianavila -
Show More
@@ -55,10 +55,6 b' class RevealExporter(BasicHTMLExporter):'
55 55 },
56 56 'RevealHelpTransformer':{
57 57 'enabled':True,
58 'url_prefix':'//cdn.jsdelivr.net/reveal.js/2.4.0',
59 # If you want to use a local reveal.js library, just
60 # comment the previous line and uncomment the next one.
61 #'url_prefix':'reveal.js',
62 58 },
63 59 })
64 60 c.merge(super(RevealExporter,self).default_config)
@@ -13,7 +13,7 b''
13 13 #-----------------------------------------------------------------------------
14 14
15 15 from .base import ConfigurableTransformer
16 from IPython.utils.traitlets import Bytes
16 from IPython.utils.traitlets import Unicode
17 17
18 18 #-----------------------------------------------------------------------------
19 19 # Classes and functions
@@ -21,7 +21,10 b' from IPython.utils.traitlets import Bytes'
21 21
22 22 class RevealHelpTransformer(ConfigurableTransformer):
23 23
24 url_prefix = Bytes("", config=True, help="url prefix to get reveal.js files")
24 url_prefix = Unicode('//cdn.jsdelivr.net/reveal.js/2.4.0',
25 config=True,
26 help="""If you want to use a local reveal.js library,
27 use 'url_prefix':'reveal.js' in your config object.""")
25 28
26 29 def call(self, nb, resources):
27 30 """
@@ -56,4 +59,3 b' class RevealHelpTransformer(ConfigurableTransformer):'
56 59 resources['reveal']['url_prefix'] = self.url_prefix
57 60
58 61 return nb, resources
59 No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now