Show More
@@ -1,52 +1,52 b'' | |||||
1 | """ |
|
1 | """ | |
2 | Exporter that exports Basic HTML. |
|
2 | Contains slide show exporter | |
3 | """ |
|
3 | """ | |
4 |
|
4 | |||
5 | #----------------------------------------------------------------------------- |
|
5 | #----------------------------------------------------------------------------- | |
6 | # Copyright (c) 2013, the IPython Development Team. |
|
6 | # Copyright (c) 2013, the IPython Development Team. | |
7 | # |
|
7 | # | |
8 | # Distributed under the terms of the Modified BSD License. |
|
8 | # Distributed under the terms of the Modified BSD License. | |
9 | # |
|
9 | # | |
10 | # The full license is in the file COPYING.txt, distributed with this software. |
|
10 | # The full license is in the file COPYING.txt, distributed with this software. | |
11 | #----------------------------------------------------------------------------- |
|
11 | #----------------------------------------------------------------------------- | |
12 |
|
12 | |||
13 | #----------------------------------------------------------------------------- |
|
13 | #----------------------------------------------------------------------------- | |
14 | # Imports |
|
14 | # Imports | |
15 | #----------------------------------------------------------------------------- |
|
15 | #----------------------------------------------------------------------------- | |
16 |
|
16 | |||
17 | from IPython.utils.traitlets import Unicode |
|
17 | from IPython.utils.traitlets import Unicode | |
18 |
|
18 | |||
19 | from IPython.nbconvert import transformers |
|
19 | from IPython.nbconvert import transformers | |
20 | from IPython.config import Config |
|
20 | from IPython.config import Config | |
21 |
|
21 | |||
22 | from .exporter import Exporter |
|
22 | from .exporter import Exporter | |
23 |
|
23 | |||
24 | #----------------------------------------------------------------------------- |
|
24 | #----------------------------------------------------------------------------- | |
25 | # Classes |
|
25 | # Classes | |
26 | #----------------------------------------------------------------------------- |
|
26 | #----------------------------------------------------------------------------- | |
27 |
|
27 | |||
28 | class SlidesExporter(Exporter): |
|
28 | class SlidesExporter(Exporter): | |
29 | """ |
|
29 | """ | |
30 | Exports slides |
|
30 | Exports slides | |
31 | """ |
|
31 | """ | |
32 |
|
32 | |||
33 | file_extension = Unicode( |
|
33 | file_extension = Unicode( | |
34 | 'html', config=True, |
|
34 | 'html', config=True, | |
35 | help="Extension of the file that should be written to disk" |
|
35 | help="Extension of the file that should be written to disk" | |
36 | ) |
|
36 | ) | |
37 |
|
37 | |||
38 | default_template = Unicode('reveal', config=True, help="""Template of the |
|
38 | default_template = Unicode('reveal', config=True, help="""Template of the | |
39 | data format to use. I.E. 'reveal'""") |
|
39 | data format to use. I.E. 'reveal'""") | |
40 |
|
40 | |||
41 | @property |
|
41 | @property | |
42 | def default_config(self): |
|
42 | def default_config(self): | |
43 | c = Config({ |
|
43 | c = Config({ | |
44 | 'CSSHTMLHeaderTransformer':{ |
|
44 | 'CSSHTMLHeaderTransformer':{ | |
45 | 'enabled':True |
|
45 | 'enabled':True | |
46 | }, |
|
46 | }, | |
47 | 'RevealHelpTransformer':{ |
|
47 | 'RevealHelpTransformer':{ | |
48 | 'enabled':True, |
|
48 | 'enabled':True, | |
49 | }, |
|
49 | }, | |
50 | }) |
|
50 | }) | |
51 | c.merge(super(SlidesExporter,self).default_config) |
|
51 | c.merge(super(SlidesExporter,self).default_config) | |
52 | return c |
|
52 | return c |
General Comments 0
You need to be logged in to leave comments.
Login now