##// END OF EJS Templates
Also renamed local variables in nbconvertapp
Also renamed local variables in nbconvertapp

File last commit:

r12219:60e06808
r12258:5344c397
Show More
slides.py
52 lines | 1.5 KiB | text/x-python | PythonLexer
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744 """
Jonathan Frederic
Fix docstring
r11757 Contains slide show exporter
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744 """
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
from IPython.utils.traitlets import Unicode
Paul Ivanov
replace 'transformer' with 'preprocessor'
r12219 from IPython.nbconvert import preprocessors
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744 from IPython.config import Config
from .exporter import Exporter
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
class SlidesExporter(Exporter):
"""
Exports slides
"""
file_extension = Unicode(
Jonathan Frederic
Make extension more descript
r11759 'slides.html', config=True,
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744 help="Extension of the file that should be written to disk"
)
Jonathan Frederic
flavor=template
r11745 default_template = Unicode('reveal', config=True, help="""Template of the
data format to use. I.E. 'reveal'""")
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744
@property
def default_config(self):
c = Config({
Paul Ivanov
replace 'transformer' with 'preprocessor'
r12219 'CSSHTMLHeaderPreprocessor':{
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744 'enabled':True
},
Paul Ivanov
replace 'transformer' with 'preprocessor'
r12219 'RevealHelpPreprocessor':{
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744 'enabled':True,
},
})
c.merge(super(SlidesExporter,self).default_config)
return c