##// END OF EJS Templates
HTML-Slides -> Slides-Reveal
HTML-Slides -> Slides-Reveal

File last commit:

r11744:133a6c11
r11744:133a6c11
Show More
slides.py
52 lines | 1.5 KiB | text/x-python | PythonLexer
"""
Exporter that exports Basic HTML.
"""
#-----------------------------------------------------------------------------
# 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
from IPython.nbconvert import transformers
from IPython.config import Config
from .exporter import Exporter
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
class SlidesExporter(Exporter):
"""
Exports slides
"""
file_extension = Unicode(
'html', config=True,
help="Extension of the file that should be written to disk"
)
flavor = Unicode('reveal', config=True, help="""Flavor of the data format to
use. I.E. 'reveal'""")
@property
def default_config(self):
c = Config({
'CSSHTMLHeaderTransformer':{
'enabled':True
},
'RevealHelpTransformer':{
'enabled':True,
},
})
c.merge(super(SlidesExporter,self).default_config)
return c