Show More
@@ -40,11 +40,3 b' class BasicHTMLExporter(Exporter):' | |||||
40 | template_file = Unicode( |
|
40 | template_file = Unicode( | |
41 | 'basichtml', config=True, |
|
41 | 'basichtml', config=True, | |
42 | help="Name of the template file to use") |
|
42 | help="Name of the template file to use") | |
43 |
|
||||
44 | default_transformers = List([transformers.coalesce_streams, |
|
|||
45 | transformers.ExtractFigureTransformer, |
|
|||
46 | transformers.CSSHTMLHeaderTransformer], |
|
|||
47 | config=True, |
|
|||
48 | help="""List of transformers available by default, by name, namespace, |
|
|||
49 | instance, or type.""") |
|
|||
50 | No newline at end of file |
|
@@ -128,11 +128,17 b' class Exporter(Configurable):' | |||||
128 | environment.""") |
|
128 | environment.""") | |
129 |
|
129 | |||
130 | default_transformers = List([nbtransformers.coalesce_streams, |
|
130 | default_transformers = List([nbtransformers.coalesce_streams, | |
131 |
nbtransformers. |
|
131 | nbtransformers.SVG2PDFTransformer, | |
|
132 | nbtransformers.ExtractFigureTransformer, | |||
|
133 | nbtransformers.CSSHTMLHeaderTransformer, | |||
|
134 | nbtransformers.RevealHelpTransformer, | |||
|
135 | nbtransformers.LatexTransformer, | |||
|
136 | nbtransformers.SphinxTransformer], | |||
132 | config=True, |
|
137 | config=True, | |
133 | help="""List of transformers available by default, by name, namespace, |
|
138 | help="""List of transformers available by default, by name, namespace, | |
134 | instance, or type.""") |
|
139 | instance, or type.""") | |
135 |
|
140 | |||
|
141 | ||||
136 | def __init__(self, config=None, extra_loaders=None, **kw): |
|
142 | def __init__(self, config=None, extra_loaders=None, **kw): | |
137 | """ |
|
143 | """ | |
138 | Public constructor |
|
144 | Public constructor |
@@ -68,14 +68,6 b' class LatexExporter(Exporter):' | |||||
68 | #Extension that the template files use. |
|
68 | #Extension that the template files use. | |
69 | template_extension = Unicode(".tplx", config=True) |
|
69 | template_extension = Unicode(".tplx", config=True) | |
70 |
|
70 | |||
71 | default_transformers = List([transformers.ExtractFigureTransformer, |
|
|||
72 | transformers.CSSHTMLHeaderTransformer, |
|
|||
73 | transformers.LatexTransformer, |
|
|||
74 | transformers.SVG2PDFTransformer], |
|
|||
75 | config=True, |
|
|||
76 | help="""List of transformers available by default, by name, namespace, |
|
|||
77 | instance, or type.""") |
|
|||
78 |
|
||||
79 |
|
71 | |||
80 | def _init_filters(self): |
|
72 | def _init_filters(self): | |
81 | """ |
|
73 | """ |
@@ -36,14 +36,6 b' class RevealExporter(BasicHTMLExporter):' | |||||
36 | 'reveal', config=True, |
|
36 | 'reveal', config=True, | |
37 | help="Name of the template file to use") |
|
37 | help="Name of the template file to use") | |
38 |
|
38 | |||
39 | default_transformers = List([transformers.coalesce_streams, |
|
|||
40 | transformers.ExtractFigureTransformer, |
|
|||
41 | transformers.CSSHTMLHeaderTransformer, |
|
|||
42 | transformers.RevealHelpTransformer], |
|
|||
43 | config=True, |
|
|||
44 | help="""List of transformers available by default, by name, namespace, |
|
|||
45 | instance, or type.""") |
|
|||
46 |
|
||||
47 |
|
39 | |||
48 | @property |
|
40 | @property | |
49 | def default_config(self): |
|
41 | def default_config(self): |
@@ -36,16 +36,7 b' class SphinxHowtoExporter(LatexExporter):' | |||||
36 | 'sphinx_howto', config=True, |
|
36 | 'sphinx_howto', config=True, | |
37 | help="Name of the template file to use") |
|
37 | help="Name of the template file to use") | |
38 |
|
38 | |||
39 | default_transformers = List([transformers.SVG2PDFTransformer, |
|
39 | ||
40 | transformers.ExtractFigureTransformer, |
|
|||
41 | transformers.CSSHTMLHeaderTransformer, |
|
|||
42 | transformers.LatexTransformer, |
|
|||
43 | transformers.SphinxTransformer], |
|
|||
44 | config=True, |
|
|||
45 | help="""List of transformers available by default, by name, namespace, |
|
|||
46 | instance, or type.""") |
|
|||
47 |
|
||||
48 |
|
||||
49 | @property |
|
40 | @property | |
50 | def default_config(self): |
|
41 | def default_config(self): | |
51 | c = Config({'SphinxTransformer': {'enabled':True}}) |
|
42 | c = Config({'SphinxTransformer': {'enabled':True}}) |
General Comments 0
You need to be logged in to leave comments.
Login now